Merge pull request #3659 from ShionEria/fix/issue-3460-windows-npx-docs

docs: add Windows npx wrapper examples
This commit is contained in:
Cliff Hall
2026-04-17 18:59:54 -04:00
committed by GitHub
5 changed files with 178 additions and 1 deletions

View File

@@ -187,6 +187,19 @@ However, running a server on its own isn't very useful, and should instead be co
}
```
On Windows, wrap `npx` with `cmd /c`:
```json
{
"mcpServers": {
"memory": {
"command": "cmd",
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-memory"]
}
}
}
```
Additional examples of using the Claude Desktop as an MCP client might look like:
```json
@@ -215,6 +228,8 @@ Additional examples of using the Claude Desktop as an MCP client might look like
}
```
On Windows, apply the same wrapper to each `npx`-based entry above by changing `"command"` to `"cmd"` and prepending `"/c", "npx"` to the existing `args`. Leave `uvx` entries unchanged.
## 🛠️ Creating Your Own Server
Interested in creating your own MCP server? Visit the official documentation at [modelcontextprotocol.io](https://modelcontextprotocol.io/introduction) for comprehensive guides, best practices, and technical details on implementing MCP servers.