MCP Mongo Server
by kiliczsh
Connects AI clients to MongoDB for schema discovery, queries, aggregations, and controlled writes over stdio or HTTP.
Install MCP Mongo Server
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"kiliczsh-mcp-mongo-server": {
"command": "npx",
"args": [
"-y",
"mcp-mongo-server"
],
"env": {
"MCP_MONGODB_URI": "YOUR_VALUE_HERE",
"MCP_MONGODB_READONLY": "YOUR_VALUE_HERE",
"MCP_MONGODB_ALLOW_CROSS_DB": "YOUR_VALUE_HERE",
"MCP_MONGODB_ALLOW_SERVER_JS": "YOUR_VALUE_HERE",
"MCP_PORT": "YOUR_VALUE_HERE",
"MCP_HTTP_ALLOWED_ORIGINS": "YOUR_VALUE_HERE",
"MCP_HTTP_JSON_LIMIT": "YOUR_VALUE_HERE",
"MCP_HTTP_AUTH_TOKEN": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx -y mcp-mongo-serverNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 1mo ago.
Overview
Use cases
- Explore MongoDB collections through an AI client
- Inspect inferred document schemas
- Run read-only queries and aggregations
- Insert or update documents when writes are enabled
- Expose MongoDB tools over an HTTP endpoint
Key features
- Collection discovery and schema inference
- MongoDB queries and aggregation pipelines
- Read-only mode with write-path blocking
- Insert, update, and index operations
- Stdio and HTTP transports
- ObjectId and time conversion helpers
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 10d ago via OSV.dev · mcp-mongo-server (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How MCP Mongo Server works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about MCP Mongo Server
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/kiliczsh-mcp-mongo-server)<a href="https://allmcps.com/mcp/kiliczsh-mcp-mongo-server"><img src="https://allmcps.com/api/badge/kiliczsh-mcp-mongo-server?style=directory" alt="MCP Mongo Server on AllMCPs" /></a>