by AnthropicVerified
Read, write, and manage local files and directories through AI assistants with sandboxed access.
npx mcp-server-filesystemAdd the following to your client configuration file.
{
"mcpServers": {
"mcp-server-filesystem": {
"command": "npx",
"args": [
"-y",
"@mcp/mcp-server-filesystem"
]
}
}
}{
"mcpServers": {
"mcp-server-filesystem": {
"command": "npx",
"args": [
"-y",
"@mcp/mcp-server-filesystem"
]
}
}
}{
"mcpServers": {
"mcp-server-filesystem": {
"command": "npx",
"args": [
"-y",
"@mcp/mcp-server-filesystem"
]
}
}
}| Client | Status |
|---|---|
| claude-code | Full Support |
| cursor | Full Support |
| vscode | Full Support |
Run the install command above or copy the configuration snippet for your preferred MCP client.
Add any required API keys or authentication tokens to your MCP client configuration. Check the GitHub README for setup details.
Once configured, the server's tools become available in your AI assistant. You can access features like file read and write and directory listing.
Filesystem MCP Server is an MCP (Model Context Protocol) server created by Anthropic that allows AI coding assistants to interact with external services and data sources programmatically. Read, write, and manage local files and directories through AI assistants with sandboxed access. The server communicates via the stdio transport type and is licensed under MIT.
MCP servers like Filesystem MCP Server extend the capabilities of AI assistants beyond code generation and into real-world integrations. Instead of manually switching between your AI assistant and external tools, the MCP protocol lets the assistant call structured APIs directly — reading data, triggering actions, and maintaining context across interactions. This reduces context switching and allows developers to stay in their IDE or terminal while the assistant handles the integration layer.
With 5 documented capabilities — including file read and write, directory listing, file search — Filesystem MCP Server is one of the more feature-rich MCP servers in its category. Its 18.5K GitHub stars indicate strong community adoption and interest.
Use Filesystem MCP Server when you want your AI coding assistant to interact with your local or remote file systems directly from the chat or terminal interface, without manual copy-pasting.
If you find yourself constantly switching between your AI assistant and external tools,Filesystem MCP Server eliminates that friction. The assistant can read context, take actions, and report results — all within a single conversation thread.
MCP servers work well for semi-automated workflows where the AI handles repetitive integration tasks — fetching data, updating records, posting notifications — while you focus on higher-level decisions and code architecture.
Filesystem MCP Server works across 3 compatible clients, including claude-code, cursor, vscode. This means you can use the same server configuration regardless of which AI coding tool your team prefers.
Several MCP servers offer overlapping functionality. The right choice depends on your specific integration needs, the AI clients you use, and your preference for community vs. official support. Here is how Filesystem MCP Server compares:
Puppeteer MCP Server by Anthropic is less popular by GitHub stars (18.5K vs 18.5K). Both servers are maintained by the same organization — evaluate documentation quality and recent commit activity when choosing.
Git MCP Server by Anthropic is less popular by GitHub stars (18.5K vs 18.5K). Both servers are maintained by the same organization — evaluate documentation quality and recent commit activity when choosing.
GitHub MCP Server by GitHub is less popular by GitHub stars (12K vs 18.5K). Both servers are maintained by different teams — evaluate documentation quality and recent commit activity when choosing.
Playwright MCP Server by Microsoft is less popular by GitHub stars (4.2K vs 18.5K). Both servers are maintained by different teams — evaluate documentation quality and recent commit activity when choosing.
Filesystem MCP Server allows AI coding assistants like Claude Code, Cursor, and VS Code Copilot toread, write, and manage local files and directories through ai assistants with sandboxed access through the Model Context Protocol. Instead of manually performing these actions yourself, the AI assistant invokes server tools directly during your conversation.
Run `npx mcp-server-filesystem` in your terminal, or copy one of the JSON configuration snippets above into your MCP client settings file. Most clients (Claude Desktop, VS Code, Cursor) use a JSON config file — see the Configuration section for client-specific snippets.
Yes, Filesystem MCP Server is free and open source under the MIT license. You can use it, modify it, and contribute to it via the GitHub repository. Note that while the server itself is free, the external services it connects to (such as APIs or cloud platforms) may have their own usage costs.
Filesystem MCP Server has been tested with claude-code, cursor, vscode (full support). Any MCP-compatible client should work, but verify specific tool support in the client's documentation. The compatibility table above shows the latest status.
Share your experience with Filesystem MCP Server and help other developers.