docs: add Windows npx wrapper examples

This commit is contained in:
ShionElia
2026-03-21 04:10:32 +00:00
parent f4244583a6
commit e21dbea731
5 changed files with 178 additions and 1 deletions

View File

@@ -1600,6 +1600,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
@@ -1628,6 +1641,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.