Fast MongoMcp
Provides tools for querying documents, managing collections, and interacting with a MongoDB database.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Fast MongoMcp
Educational project: This project was created purely for educational purposes, to explain how MCP servers work. It is not intended for production use.
License
This project is licensed under the MIT License.
An MCP (Model Context Protocol) server that exposes MongoDB operations as tools, enabling AI assistants to query documents, manage collections, and interact with a MongoDB database.
Related MCP server: MongoDB MCP Server
Installation
Create a virtual environment
python3 -m venv venv
source venv/bin/activate # on Windows: venv\Scripts\activateInstall dependencies
pip install -e .This installs the project in editable mode, meaning changes to the source files take effect immediately without reinstalling.
To also install development dependencies (pytest, mypy):
pip install -e ".[dev]"MongoDB
Start MongoDB with Docker
Run a local MongoDB instance for development and testing:
docker compose up -dEnvironment variables
Copy .env.example to .env and adjust the values as needed:
cp .env.example .envVariable | Description | Default |
| MongoDB server hostname |
|
| MongoDB server port |
|
| Authentication username | (empty) |
| Authentication password | (empty) |
| Database name to use |
|
Then export the variables before running the server:
export $(grep -v '^#' .env | xargs)Run server
python -m server.run_mongodb_mcp_serverRun MCP Inspector
fastmcp dev inspector server/run_mongodb_mcp_server.pyConnect to Claude Code
Add to .mcp.json in your project root:
{
"mcpServers": {
"mongodb": {
"type": "stdio",
"command": "python",
"args": ["-m", "server.run_mongodb_mcp_server"],
"cwd": "/absolute/path/to/example-mcp",
"env": {
"MONGODB_USERNAME": "admin",
"MONGODB_PASSWORD": "MyPassword123!",
"MONGODB_DATABASE": "mydb"
}
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Cross-tool persistent memory and context for AI assistants over MCP.
Astra DB tools for agents: schema, find, vector search, guarded writes, and interactive views.
Unified MCP Server is a remote MCP connector for AI agents and vertical AI products that provides access to 22,000+ authorized SaaS tools across 400+ integrations and 24 categories directly inside LLMs (Claude, GPT, Gemini, Cohere). Tools operate only on explicitly authorized customer connections, enabling agents to safely read and write against live third-party systems.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to query and introspect MongoDB databases through find, aggregate, and schema discovery operations. Supports read-only default mode with optional write capabilities and works with any MCP-compatible client via stdio or HTTP transports.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with MongoDB databases through natural language, supporting document CRUD, aggregation, collection listing, and statistics.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with MongoDB databases and MongoDB Atlas, supporting read-only and write operations, Atlas cluster management, and data exploration.145,421 npmApache 2.0
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with MongoDB 3.6+ databases, supporting collection listing, document queries, counting, and aggregations through natural language.51MIT