Hey y'all, a few of the MCP server packages are missing required dependencies in their package.json files, causing runtime errors when ran via npx.
What I'm seeing
> npx @modelcontextprotocol/server-filesystem@latest
node:internal/modules/esm/resolve:839
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'zod-to-json-schema' imported
from /Users/.../@modelcontextprotocol/server-filesystem/dist/index.js
Affected Packages
@modelcontextprotocol/server-filesystem
@modelcontextprotocol/server-github
@modelcontextprotocol/server-google-maps
I'm not seeing any errors having added the sqlite, postgres, and memory servers. There may be missing deps for other MCP packages.
Missing deps:
Different packages are missing different dependencies but I've seen at least these two missing:
zod-to-json-schema
node-fetch
Suggested Fix
I believe the fix is just to declare these dependencies in the package.json.
Reproduction
- Run the package via npx:
npx @modelcontextprotocol/server-filesystem
- Observe dependency errors
Environment
- Node.js version: 22.9.0
- npm version: 10.8.3
- OS: macOS

Hey y'all, a few of the MCP server packages are missing required dependencies in their
package.jsonfiles, causing runtime errors when ran vianpx.What I'm seeing
Affected Packages
@modelcontextprotocol/server-filesystem@modelcontextprotocol/server-github@modelcontextprotocol/server-google-mapsI'm not seeing any errors having added the
sqlite,postgres, andmemoryservers. There may be missing deps for other MCP packages.Missing deps:
Different packages are missing different dependencies but I've seen at least these two missing:
zod-to-json-schemanode-fetchSuggested Fix
I believe the fix is just to declare these dependencies in the package.json.
Reproduction
npx @modelcontextprotocol/server-filesystemEnvironment