Filesystem MCP Server
Filesystem MCP Server official site ↗Last checked against the official docs:
What it does
Reference MCP server that lets an AI read, write, edit, move and search files and directories, restricted to the folders you pass it. Version 2.0.1 (25 Oct 2026) includes security fixes for how it checks paths.
Who it's for
People who want Claude Desktop or another chat app to work with files on their computer.
How to set it up
Install Node.js 24 or later. Version 2.0.0 raised the minimum from earlier Node versions to 24, and the README says the server needs Node 24+ when it runs through npx.
Add the server to your MCP client config, listing each folder the AI may access as an argument (at least one is required):
json{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "<absolute-path-to-folder>" ] } } }On Windows, the README launches npx through cmd /c:
json{ "mcpServers": { "filesystem": { "command": "cmd", "args": [ "/c", "npx", "-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\you\\Documents" ] } } }Only list folders you're happy for the AI to access. Folders passed on the command line work with every protocol version. MCP Roots, where a client sets the folders for you, only works with older (2025-era) clients and is deprecated; 2026-07-28 clients can't use it. With no folders on the command line, the server exits at startup if a 2025-era client doesn't support Roots, and answers every tool call with an error for a 2026-07-28 client. Restart the client after editing its config.
Already running a date-versioned release (2025.x or 2026.x)? The project warns that package managers rank 2.0.1 below those, so they won't offer it as an upgrade. Install it explicitly, or pin it in your config:
bashnpm install @modelcontextprotocol/server-filesystem@2.0.1
Check the official Filesystem MCP Server docs for the latest steps.
Install Filesystem MCP Server in your client
Runs on your computer. Needs: Node.js 24 or later. Sign-in or keys: None.
No one-click install for this one: the snippet has a placeholder (like an API key or a folder path) that you need to fill in first, so copy it below and edit it.
Claude Code
Run in a terminal
claude mcp add --transport stdio filesystem -- npx -y @modelcontextprotocol/server-filesystem '<absolute-path-to-folder>'Everything after -- is the server command. Run /mcp inside Claude Code to check it connected.
Claude Desktop
Settings → Developer → Edit Config (claude_desktop_config.json)
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<absolute-path-to-folder>"
]
}
}
}Fully quit and reopen Claude Desktop after saving.
Cursor
.cursor/mcp.json in a project, or ~/.cursor/mcp.json for all projects
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<absolute-path-to-folder>"
]
}
}
}VS Code
.vscode/mcp.json (note the top-level "servers" key)
{
"servers": {
"filesystem": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"<absolute-path-to-folder>"
]
}
}
}Codex
Run in a terminal, or edit ~/.codex/config.toml
CLI
codex mcp add filesystem -- npx -y @modelcontextprotocol/server-filesystem '<absolute-path-to-folder>'Or in ~/.codex/config.toml
[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "<absolute-path-to-folder>"]- Replace the path with a folder the AI may access. You can list more folders; at least one is required.
- On Windows, if you see
spawn npx ENOENT, see the Windows npx fix. - If the server shows as failed or disconnected, see fixing MCP error -32000.
- Compare every server's runtime and sign-in needs in the MCP server requirements table.
Checked against the official docs. Snippets use placeholders; keep real keys out of files you commit. Windsurf is not listed because we have not verified its format.
Set it up / Fixes
Step-by-step guides for getting Filesystem MCP Server running and fixing common errors.
Example prompts
Find every markdown file in my notes folder that mentions 'invoice'.Show me a directory tree of my project folder, excluding node_modules.Read my README and suggest a clearer intro, then preview the edit before applying it.Made Filesystem MCP Server? Add the badge
If you like, show that Filesystem MCP Server is listed and hand-checked here. It's optional: listings are free and we never ask for a link back.
Get the Markdown or HTML
Markdown (for a GitHub README)
[](https://www.pluginstackai.com/plugins/filesystem-mcp/)HTML (for a website)
<a href="https://www.pluginstackai.com/plugins/filesystem-mcp/"><img src="https://www.pluginstackai.com/badge/hand-checked.svg" alt="Hand-checked on PluginStack" width="226" height="28"></a>Free: MCP Starter Checklist
After you set this tool up, use the one-page checklist so your next MCP server doesn't fail on first connect.
More MCP Servers
- Vercel Labs
agent-browser
A browser automation CLI from Vercel Labs, built for AI agents. The agent drives a real browser one short shell command at a time: snapshot returns the page as compact text with a ref such as @e1 for each element, the agent clicks or fills a ref, then takes a new snapshot to check the result. The browser stays open between commands. It uses Chrome for Testing by default and can also attach to a Chrome you already have running. It ships version-matched skills for agents, and agent-browser mcp runs it as an MCP server over stdio. Native binaries for macOS, Linux and Windows. Apache-2.0 licensed.
- Vercel Labs
agent-desktop
Computer use for AI agents from Vercel Labs: it lets an agent see and operate desktop apps on macOS, Windows and Linux through the operating system's accessibility tree instead of screenshots and pixel matching. snapshot returns an app's UI as JSON with a ref for each element, the agent clicks or types on a ref, then takes a new snapshot to check the result. There is no model inside; the loop runs in your agent. It ships as a CLI and a C library, and agent-desktop mcp serves every command as an MCP tool over stdio. Apache-2.0 licensed.
- Apify
Apify MCP Server
Apify's official MCP server. It lets an agent search Apify Store and run its ready-made scrapers and automation tools (called Actors) for websites, search engines, maps, social media and e-commerce, then read the results from your Apify datasets. By default it loads Actor search and run tools, Apify docs search, and the Web Search and Web Fetch Actors. The hosted server at mcp.apify.com signs you in with OAuth. MIT licensed; running Actors uses your Apify plan (a free plan includes $5 of monthly usage; most Store Actors charge per event).
- Brave
Brave Search MCP Server
Brave's official MCP server for the Brave Search API. It adds web, local, place, image, video and news search tools, plus LLM context and AI summarization. Version 2.x uses stdio by default, with HTTP as an option. MIT licensed.
- Google (Chrome DevTools)
Chrome DevTools MCP
Lets a coding agent control and inspect a live Chrome browser through Chrome DevTools (Google now calls it "Chrome DevTools for agents"; the package is chrome-devtools-mcp). It can record performance traces, read network requests and console messages (with source-mapped stack traces) and automate pages with Puppeteer. A CLI is included for use without MCP. Apache-2.0.
- Cloudflare
Cloudflare MCP Servers
Cloudflare's official remote MCP servers. The recommended Cloudflare API MCP server (https://mcp.cloudflare.com/mcp, maintained in the cloudflare/mcp repo) reaches the whole Cloudflare API through a few code-mode tools, and the repo also lists product servers for docs, containers, Browser Run and more. All are hosted by Cloudflare, so there is nothing to install. Apache-2.0.