MCP service for MongoDB operations
Mongo MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. MCP service for MongoDB operations.
A Machine Chat Protocol (MCP) service for MongoDB operations. This service provides a comprehensive set of tools that allow Large Language Models (LLMs) to interact with MongoDB databases through complete CRUD operations, administrative tasks, and advanced features.
The server ships on PyPI as run, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.
Once Mongo is connected, these are the calls the assistant has available:
list_databases — List all databasescreate_database — Create new databasedrop_database — Delete databaseget_database_stats — Get database statisticslist_collections — List all collections in a databasecreate_collection — Create new collection (with optional settings)drop_collection — Delete collectionrename_collection — Rename collectionget_collection_stats — Get collection statisticslist_indexes — List all indexes for a collectioncreate_index — Create regular indexcreate_text_index — Create text search indexYou will need 3 environment variables: MONGODB_URI, MONGODB_DEFAULT_DB, LOG_LEVEL. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Mongo's toolset — list_databases, create_database, drop_database and 11 more — is a fair guide to whether it matches your workflow.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| list_databases | List all databases |
| create_database | Create new database |
| drop_database | Delete database |
| get_database_stats | Get database statistics |
| list_collections | List all collections in a database |
| create_collection | Create new collection (with optional settings) |
| drop_collection | Delete collection |
| rename_collection | Rename collection |
| get_collection_stats | Get collection statistics |
| list_indexes | List all indexes for a collection |
| create_index | Create regular index |
| create_text_index | Create text search index |
| create_compound_index | Create compound index |
| drop_index | Delete index |
{
"mcpServers": {
"mongo-mcp-441126098": {
"command": "uvx",
"args": ["run"],
"env": {
"MONGODB_URI": "your-value",
"MONGODB_DEFAULT_DB": "your-value",
"LOG_LEVEL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MONGODB_URI | Configuration value read at startup. | Optional |
| MONGODB_DEFAULT_DB | Configuration value read at startup. | Optional |
| LOG_LEVEL | Configuration value read at startup. | Optional |
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.