Connect to local MCP servers changeddocs/2026-07-28/develop/connect-local-servers
Upstream edited this page at 29 Nov 2026 02:03 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 29 Nov 2026 02:07 UTC.
Upstream edited
Recorded here
Lines+13added
Lines−7removed
From line
26
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits10to this page, all time
The whole hunk
from line 26, old and new numbered
/
from line 26
2626node --version
2727```
2828
29If Node.js is not installed, download it from [nodejs.org](https://nodejs.org/). We recommend the LTS (Long Term Support) version for stability.
29If Node.js is not installed, download it from [nodejs.org](https://nodejs.org/). We recommend the LTS (Long Term Support) version for stability. The Filesystem Server requires Node.js 24 or later.
3030
3131## Understanding MCP Servers
3232
from line 78
7878 "command": "npx",
7979 "args": [
8080 "-y",
81 "@modelcontextprotocol/server-filesystem",
81 "@modelcontextprotocol/[email protected]",
8282 "/Users/username/Desktop",
8383 "/Users/username/Downloads"
8484 ]
from line 94
9494 "command": "npx",
9595 "args": [
9696 "-y",
97 "@modelcontextprotocol/server-filesystem",
97 "@modelcontextprotocol/[email protected]",
9898 "C:\\Users\\username\\Desktop",
9999 "C:\\Users\\username\\Downloads"
100100 ]
from line 112
112112> * `"filesystem"`: A friendly name for the server that appears in Claude Desktop
113113> * `"command": "npx"`: Uses Node.js's npx tool to run the server
114114> * `"-y"`: Automatically confirms the installation of the server package
115> * `"@modelcontextprotocol/server-filesystem"`: The package name of the Filesystem Server
115> * `"@modelcontextprotocol/[email protected]"`: The package name and exact version of the Filesystem Server
116116> * The remaining arguments: Directories the server is allowed to access
117117
118> [!NOTE]
119>
120> **Pin the Version**
121>
122> Always specify an exact version, as shown above. Check the package's [npm page](https://www.npmjs.com/package/@modelcontextprotocol/server-filesystem) for the current version, and update the pin when a security fix is released. The pin doesn't cover the package's dependencies. See [Local Server Security](https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/local-server-security.md#check-provenance-before-you-install).
123
118124> [!WARNING]
119125>
120126> **Security Consideration**
from line 172
166172> 5. In your command line, try manually running the server (replacing `username` as you did in `claude_desktop_config.json`) to see if you get any errors:
167173>
168174> ```bash macOS/Linux theme={null}
169> npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /Users/username/Downloads
175> npx -y @modelcontextprotocol/[email protected] /Users/username/Desktop /Users/username/Downloads
170176> ```
171177>
172178> ```powershell Windows theme={null}
173> npx -y @modelcontextprotocol/server-filesystem C:\Users\username\Desktop C:\Users\username\Downloads
179> npx -y @modelcontextprotocol/[email protected] C:\Users\username\Desktop C:\Users\username\Downloads
174180> ```
175181
176182> [accordion] Getting logs from Claude Desktop
from line 230
224230> "command": "npx",
225231> "args": [
226232> "-y",
227> "@modelcontextprotocol/server-filesystem",
233> "@modelcontextprotocol/[email protected]",
228234> "C:\\Users\\username\\Desktop",
229235> "C:\\Users\\username\\Downloads"
230236> ],
No line in this hunk matches that.