Skip to content

Commit 4503e2d

Browse files
authored
Merge pull request #3659 from ShionEria/fix/issue-3460-windows-npx-docs
docs: add Windows npx wrapper examples
2 parents 7e6b780 + e21dbea commit 4503e2d

5 files changed

Lines changed: 178 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,19 @@ However, running a server on its own isn't very useful, and should instead be co
187187
}
188188
```
189189

190+
On Windows, wrap `npx` with `cmd /c`:
191+
192+
```json
193+
{
194+
"mcpServers": {
195+
"memory": {
196+
"command": "cmd",
197+
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-memory"]
198+
}
199+
}
200+
}
201+
```
202+
190203
Additional examples of using the Claude Desktop as an MCP client might look like:
191204

192205
```json
@@ -215,6 +228,8 @@ Additional examples of using the Claude Desktop as an MCP client might look like
215228
}
216229
```
217230

231+
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.
232+
218233
## 🛠️ Creating Your Own Server
219234

220235
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.

src/everything/README.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@ Add to your `claude_desktop_config.json`:
3131
}
3232
```
3333

34+
On Windows, use `cmd /c` to launch `npx`:
35+
36+
```json
37+
{
38+
"mcpServers": {
39+
"everything": {
40+
"command": "cmd",
41+
"args": [
42+
"/c",
43+
"npx",
44+
"-y",
45+
"@modelcontextprotocol/server-everything"
46+
]
47+
}
48+
}
49+
}
50+
```
51+
3452
## Usage with VS Code
3553

3654
For quick installation, use one of the one-click install buttons below...
@@ -62,6 +80,19 @@ Alternatively, you can add the configuration to a file called `.vscode/mcp.json`
6280
}
6381
```
6482

83+
On Windows, use:
84+
85+
```json
86+
{
87+
"servers": {
88+
"everything": {
89+
"command": "cmd",
90+
"args": ["/c", "npx", "-y", "@modelcontextprotocol/server-everything"]
91+
}
92+
}
93+
}
94+
```
95+
6596
## Running from source with [HTTP+SSE Transport](https://modelcontextprotocol.io/specification/2024-11-05/basic/transports#http-with-sse) (deprecated as of [2025-03-26](https://modelcontextprotocol.io/specification/2025-03-26/basic/transports))
6697

6798
```shell
@@ -103,4 +134,3 @@ npx @modelcontextprotocol/server-everything sse
103134
```shell
104135
npx @modelcontextprotocol/server-everything streamableHttp
105136
```
106-

src/filesystem/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,26 @@ Note: all directories must be mounted to `/projects` by default.
250250
}
251251
```
252252

253+
On Windows, use `cmd /c` to launch `npx`:
254+
255+
```json
256+
{
257+
"mcpServers": {
258+
"filesystem": {
259+
"command": "cmd",
260+
"args": [
261+
"/c",
262+
"npx",
263+
"-y",
264+
"@modelcontextprotocol/server-filesystem",
265+
"/Users/username/Desktop",
266+
"/path/to/other/allowed/dir"
267+
]
268+
}
269+
}
270+
}
271+
```
272+
253273
## Usage with VS Code
254274

255275
For quick installation, click the installation buttons below...
@@ -308,6 +328,25 @@ Note: all directories must be mounted to `/projects` by default.
308328
}
309329
```
310330

331+
On Windows, use:
332+
333+
```json
334+
{
335+
"servers": {
336+
"filesystem": {
337+
"command": "cmd",
338+
"args": [
339+
"/c",
340+
"npx",
341+
"-y",
342+
"@modelcontextprotocol/server-filesystem",
343+
"${workspaceFolder}"
344+
]
345+
}
346+
}
347+
}
348+
```
349+
311350
## Build
312351

313352
Docker build:

src/memory/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,24 @@ Add this to your claude_desktop_config.json:
159159
}
160160
```
161161

162+
On Windows, use `cmd /c` to launch `npx`:
163+
164+
```json
165+
{
166+
"mcpServers": {
167+
"memory": {
168+
"command": "cmd",
169+
"args": [
170+
"/c",
171+
"npx",
172+
"-y",
173+
"@modelcontextprotocol/server-memory"
174+
]
175+
}
176+
}
177+
}
178+
```
179+
162180
#### NPX with custom setting
163181

164182
The server can be configured using the following environment variables:
@@ -180,6 +198,27 @@ The server can be configured using the following environment variables:
180198
}
181199
```
182200

201+
On Windows, use:
202+
203+
```json
204+
{
205+
"mcpServers": {
206+
"memory": {
207+
"command": "cmd",
208+
"args": [
209+
"/c",
210+
"npx",
211+
"-y",
212+
"@modelcontextprotocol/server-memory"
213+
],
214+
"env": {
215+
"MEMORY_FILE_PATH": "/path/to/custom/memory.jsonl"
216+
}
217+
}
218+
}
219+
}
220+
```
221+
183222
- `MEMORY_FILE_PATH`: Path to the memory storage JSONL file (default: `memory.jsonl` in the server directory)
184223

185224
# VS Code Installation Instructions
@@ -216,6 +255,24 @@ Alternatively, you can add the configuration to a file called `.vscode/mcp.json`
216255
}
217256
```
218257

258+
On Windows, use:
259+
260+
```json
261+
{
262+
"servers": {
263+
"memory": {
264+
"command": "cmd",
265+
"args": [
266+
"/c",
267+
"npx",
268+
"-y",
269+
"@modelcontextprotocol/server-memory"
270+
]
271+
}
272+
}
273+
}
274+
```
275+
219276
#### Docker
220277

221278
```json

src/sequentialthinking/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,24 @@ Add this to your `claude_desktop_config.json`:
8989
}
9090
```
9191

92+
On Windows, use `cmd /c` to launch `npx`:
93+
94+
```json
95+
{
96+
"mcpServers": {
97+
"sequential-thinking": {
98+
"command": "cmd",
99+
"args": [
100+
"/c",
101+
"npx",
102+
"-y",
103+
"@modelcontextprotocol/server-sequential-thinking"
104+
]
105+
}
106+
}
107+
}
108+
```
109+
92110
#### docker
93111

94112
```json
@@ -143,6 +161,24 @@ For NPX installation:
143161
}
144162
```
145163

164+
On Windows, use:
165+
166+
```json
167+
{
168+
"servers": {
169+
"sequential-thinking": {
170+
"command": "cmd",
171+
"args": [
172+
"/c",
173+
"npx",
174+
"-y",
175+
"@modelcontextprotocol/server-sequential-thinking"
176+
]
177+
}
178+
}
179+
}
180+
```
181+
146182
For Docker installation:
147183

148184
```json

0 commit comments

Comments
 (0)