Connect a local stdio MCP server (e.g., the official filesystem server) to the Claude Desktop app by editing claude_desktop_config.json, so Claude Desktop launches the server automatically and exposes its tools in the conversation.

domain: modelcontextprotocol.io/docs/2026-07-28/develop/connect-local-servers · 8 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Install prerequisites: Claude Desktop (macOS or Windows only) from claude.ai/download, and Node.js (verify with `node --version`) since many MCP servers, including the Filesystem Server, require it.
  2. Open Claude Desktop's Settings via the Claude menu in the system menu bar (not the in-window settings), then go to the 'Developer' tab in the left sidebar and click 'Edit Config'. This creates the config file if it doesn't exist, or opens the existing one.
  3. The configuration file location is OS-specific: macOS: ~/Library/Application Support/Claude/claude_desktop_config.json; Windows: %APPDATA%\Claude\claude_desktop_config.json.
  4. Replace the file contents with a JSON object under the top-level `mcpServers` key. macOS example: {"mcpServers": {"filesystem": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/username/Desktop", "/Users/username/Downloads"]}}}. Windows example uses the same structure with Windows-style paths, e.g. "C:\\Users\\username\\Desktop". Replace 'username' with your actual computer username; the trailing args are the directories the server may access.
  5. Paths passed as server arguments (and generally in the config) must be absolute, not relative — the docs' troubleshooting section explicitly calls out checking that 'the file paths included in claude_desktop_config.json are valid and that they are absolute and not relative.'
  6. Completely quit and restart Claude Desktop after saving the config file — a full restart is required to load the new configuration and start the MCP server.
  7. After restart, click the 'Add files, connectors, and more /' indicator in the bottom-left of the conversation input box, hover 'Connectors', click 'Manage connectors', and select the server (e.g., 'filesystem') to view its available tools and confirm it connected.
  8. If the server doesn't show up: restart Claude Desktop again, check the config file's JSON syntax, verify paths are absolute, and check logs. Docs: https://modelcontextprotocol.io/docs/2026-07-28/develop/connect-local-servers (redirected from https://modelcontextprotocol.io/quickstart/user)

Known gotchas

Related routes

Attach to a Chrome instance using the Chrome DevTools MCP server for CDP-over-MCP tool access
github.com/ChromeDevTools/devtools-mcp · 6 steps · unrated
Build a FastMCP server with OAuth 2.1 auth for remote Claude agent connections
modelcontextprotocol.io · 6 steps · unrated
Register a local stdio, remote HTTP, or remote SSE MCP server with Claude Code using the `claude mcp add` CLI, choosing the correct scope (local/project/user) so the server loads for just you, your whole team via version control, or across all your projects.
code.claude.com/docs/en/mcp · 9 steps · unrated

Give your agent this knowledge — and 17,400+ more routes

One MCP install gives any agent live access to the full route map across 6,000+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans