Mastra MCP Windows Fix (Claude Code Extension)

Hey everyone! Just wanted to share a fix for anyone running into issues with the Mastra MCP server on Windows 10 using the VSCode/Cursor Claude Code extension. The Problem The MCP server kept failing to connect with this error:
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '@mastra/core/base'
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '@mastra/core/base'
The Fix In your .mcp.json, pin the package to version 0.13.31:
{
"mcpServers": {
"mastra": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "-y", "@mastra/mcp-docs-server@0.13.31"],
"env": {}
}
}
}
{
"mcpServers": {
"mastra": {
"type": "stdio",
"command": "cmd",
"args": ["/c", "npx", "-y", "@mastra/mcp-docs-server@0.13.31"],
"env": {}
}
}
}
Key points for Windows: - Use "command": "cmd" with the /c wrapper - Pin to @0.13.31 - Restart VSCode after saving Quick Question Does pinning to version 0.13.31 mean we get outdated docs, or does it still pull the latest documentation from the live site?
3 Replies
Mastra Triager
GitHub
[DISCORD:1428654079155900557] Mastra MCP Windows Fix (Claude Code E...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1428654079155900557 Hey everyone! Just wanted to share a fix for anyone running into issues with the Mastr...
Bhupesh Gupta
Bhupesh Gupta4d ago
good
Abhi Aiyer
Abhi Aiyer4d ago
Thanks for this!

Did you find this page helpful?