MCP Server with MongoDB Integration
@sven-olding
About MCP Server with MongoDB Integration
No overview available yet
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-mongo": {
"command": "uv",
"args": [
"pip",
"install",
"-e",
"."
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP Server with MongoDB Integration?
This MCP server provides tools for querying MongoDB data. It connects to a MongoDB instance, allowing users to run queries and list collections through the Model Context Protocol.
How to use MCP Server with MongoDB Integration?
Install dependencies with uv pip install -e ., then run python main.py. The server connects to mongodb://localhost:27017 by default; override the connection using environment variables MONGODB_URI and MONGODB_DATABASE. Two tools are available: query_mongodb and list_collections.
Key features of MCP Server with MongoDB Integration
- Query MongoDB collections with a filter and optional limit.
- List all collections in the database.
- Default connection to localhost:27017.
- Customizable MongoDB URI and database via environment variables.
- Simple command-line invocation with minimal setup.
Use cases of MCP Server with MongoDB Integration
- Retrieve documents from a MongoDB collection using a query filter.
- List all collections in a database to explore its structure.
- Integrate MongoDB queries into an MCP-driven AI agent workflow.
- Prototype and test MongoDB queries without a full application.
FAQ from MCP Server with MongoDB Integration
What is the default MongoDB connection?
The server connects to mongodb://localhost:27017 by default. You can change the URI and database name by setting the MONGODB_URI and MONGODB_DATABASE environment variables.
What tools does the server provide?
It provides two tools: query_mongodb (requires collection and query parameters, optional limit) and list_collections (no parameters required).
How do I install and run the server?
Install dependencies with uv pip install -e ., then run python main.py. Ensure uv and Python are installed.
Can I limit the number of results returned?
Yes, the query_mongodb tool accepts an optional limit parameter (default 10).
More Databases MCP servers
MongoDB Lens
furey🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
mcp-server-duckdb
ktanaka101A Model Context Protocol (MCP) server implementation for DuckDB, providing database interaction capabilities

PostgreSQL
modelcontextprotocolModel Context Protocol Servers
PostgreSQL Model Context Protocol (PG-MCP) Server
stuzeroDbhub
bytebaseZero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.
Comments