MCP MongoDB Server
A community MCP server, published on npm as mcp-mongo-server, that gives an AI client access to a MongoDB database from a connection string.
What it does
A community MCP server, published on npm as mcp-mongo-server, that gives an AI client access to a MongoDB database from a connection string. It lists collections, samples documents to infer their schemas, runs queries and aggregation pipelines with optional explain plans, counts documents, and can insert and update documents and create indexes. A read-only flag blocks every write path, including $out and $merge stages, and named connections can each carry their own database list and read-only setting. It runs over stdio by default or as an HTTP endpoint with an optional bearer token. Node.js 20 or newer is needed.
Capabilities
- Infer collection schemas from sample documents
- Run queries and aggregation pipelines with explain plans
- Insert and update documents and create indexes
- Restrict all writes with a read-only mode
- Serve several named MongoDB connections
About
- Publisher
- kiliczsh
- Tool
- MongoDB
Install
- Run this to add it to Any client:
npx -y mcp-mongo-server mongodb://localhost:27017/mydatabase --read-only
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | MCP server | |
| Tool | MongoDB | |
| Publisher | kiliczsh | source |
| Official status | Community (not published by the tool's vendor) | source |
| Connection | Local or remote | source |
| Can change data | Yes | source |
| Needs an API key or sign-in | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Jul 29, 2026Version 3.2.1284 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository npm: mcp-mongo-server |
Sources
- README (README.md)github.com/kiliczsh/mcp-mongo-server · Backs: Can change data, Connection, Needs an API key or sign-inNov 12, 2026
- Licence file (LICENSE)github.com/kiliczsh/mcp-mongo-server · Backs: LicenceNov 12, 2026
- GitHub repositorygithub.com/kiliczsh/mcp-mongo-server · Backs: Official status, Publisher, Activity, LicenceNov 10, 2026
- npm package recordnpmjs.com/package/mcp-mongo-serverNov 14, 2026