Filesystem
MCP server by modelcontextprotocol Community
Filesystem is a reference MCP server for secure file operations with configurable access controls. It lets an assistant read, write, search and edit files in directories you allow. It suits developers who want file access for an assistant or who are learning how MCP servers are built.
Install Filesystem
Built from the published package, never by AI.
claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystemRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem{
"mcpServers": {
"filesystem": {
"args": [
"-y",
"@modelcontextprotocol/server-filesystem"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add filesystem npx -y @modelcontextprotocol/server-filesystemGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the filesystem block.
About
Filesystem is a reference MCP server from the modelcontextprotocol organization. The repository lists it under Reference Servers as secure file operations with configurable access controls. The declared description says it can read, write, search and edit files, with access limited to allowed directories or client Roots.
The repository shows it started with npx using the @modelcontextprotocol/server-filesystem package, with one or more allowed directory paths passed in the client configuration. Like the other servers in the repository, it serves stdio by default and can also serve Streamable HTTP. The repository describes its servers as educational examples rather than production-ready solutions, so developers should assess their own security needs. It is aimed at developers building MCP servers and at people who want an assistant to work with files.
Written from the project's README and checked against it.
What you need
- npx to launch the server with @modelcontextprotocol/server-filesystem
- A directory path to allow access to, set in the client configuration
Try asking
- Read the README in my allowed project folder and summarize it
- Search the allowed directory for files that mention a config setting
- Edit the notes file in the allowed folder to fix the heading
Good to know
- Reference implementation meant for learning, not production-ready
- Access is limited to allowed directories or client Roots
- Developers must add safeguards based on their own threat model
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Let an assistant read and edit files in a project folder
- Search files inside an allowed directory
- Study how a reference MCP server is built
Alternatives to Filesystem
All alternatives →Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.
Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.
Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.
Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.
pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.
Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.
Compare with MR Office, kordoc or Desktop Commander
Filesystem: common questions
Is the Filesystem MCP server production ready?
The repository says its servers are reference implementations meant as educational examples, not production-ready solutions. Developers should evaluate their own security requirements before using them.
How does the Filesystem server limit what the assistant can access?
Its declared description says access is limited to allowed directories or client Roots. The client configuration passes the allowed directory paths to the server.
Which transports does the Filesystem server support?
The repository says every server serves stdio by default and can also serve Streamable HTTP. Stdio is the mode used in the client configuration example.
How do I install Filesystem?
In Claude Code run claude mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Filesystem the official server?
Filesystem is a community project by modelcontextprotocol, not verified by a company domain.
Is Filesystem free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is Filesystem safe to use?
It scores 88 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Filesystem?
Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.
Does Filesystem work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
