Timeout in client while connecting to MCP server on Windows
I see
693-110d9774cbce8f0f.js:18 Could not attach to MCP server sqlite: eE: MCP error -2: Request timed out
693-110d9774cbce8f0f.js:18 Could not attach to MCP server filesystem: eE: MCP error -2: Request timed out
Despite MCP logs with
2024-11-27T07:00:20.484Z [info] Attempting to connect to MCP server sqlite...
2024-11-27T07:00:20.487Z [info] Attempting to connect to MCP server filesystem...
2024-11-27T07:00:20.507Z [info] Connected to MCP server sqlite!
2024-11-27T07:00:20.514Z [info] Connected to MCP server filesystem!
I ran the inspector fine but that didn't really add much clarity. Seems like a client issue? Posting for visibility in case other folks are seeing the same thing.
I can successfully call "list tools" from the inspector so everything seems OK on the server end! Here's my setup for the sqlite tool
Here's my config. At C:\Users\username\AppData\Roaming\Claude\claude_desktop_config.json
{
"mcpServers": {
"sqlite": {
"command": "C:\\ProgramData\\chocolatey\\bin\\uvx.exe",
"args": [
"mcp-server-sqlite",
"--db-path",
"C:\\Users\\username\\test.db"
]
},
"filesystem": {
"command": "C:\\Program Files\\nodejs\\node.exe",
"args": [
"C:\\Users\\username\\AppData\\Roaming\\npm\\node_modules\\@modelcontextprotocol\\server-filesystem\\dist\\index.js",
"~"
]
}
}
}
The servers show up in the app fine.
+1, able to replicate here as well for any servers in windows that rely on node.
windows?? double“\” change to single“/” ,try it! I fix it by this way
Does this issue still occur for you with Claude Desktop v0.7.5?
Hi @jspahrsummers, I think this is fixed! I'm using this config on Claude Desktop (latest? can't figure out how to see the version...) and it's working just fine. Note the servers are running on Windows, but I do most of my work on WSL (hence the weird file path).
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"\\\\wsl.localhost\\Ubuntu\\home"
]
},
"memory": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-memory"
]
},
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search"
],
"env": {
"BRAVE_API_KEY": ""
}
}
}
}