Skip to content

Commit 277a8ad

Browse files
committed
Include PATH and NODE_PATH env when using with Claude Desktop
1 parent 17b3ba0 commit 277a8ad

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,32 @@ Add the following to `claude_desktop_config.json`:
1515
"-y",
1616
"mcp-server-sqlite-npx",
1717
"/absolute/path/to/database.db"
18-
]
18+
],
19+
"env": {
20+
"PATH": "/absolute/path/to/executables",
21+
"NODE_PATH": "/absolute/path/to/node_modules"
22+
}
23+
}
24+
}
25+
}
26+
```
27+
28+
Here's a full example when using nvm:
29+
30+
```json
31+
{
32+
"mcpServers": {
33+
"sqlite-": {
34+
"command": "/Users/johnny/.nvm/versions/node/v22.12.0/bin/npx",
35+
"args": [
36+
"-y",
37+
"mcp-server-sqlite-npx",
38+
"/Users/johnny/projects/database.db"
39+
],
40+
"env": {
41+
"PATH": "/Users/johnny/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/usr/bin:/bin",
42+
"NODE_PATH": "/Users/johnny/.nvm/versions/node/v22.12.0/lib/node_modules"
43+
}
1944
}
2045
}
2146
}

0 commit comments

Comments
 (0)