A mongo mcp that can be used to automate the database query with llm
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"mongo-agent-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# MongoDB MCP A MongoDB Model Context Protocol (MCP) Server that allows AI agents and MCP clients to interact with MongoDB databases through standardized tools. ## Features * List all collections * Discover collection schemas * Fetch collection data * Query documents * Insert documents * Update documents * Delete documents * MongoDB Atlas support * Local MongoDB support * MCP stdio transport support --- # Installation ## Using pip ```bash pip install mongo-mcp ``` ## Using uv ```bash uv add mongo-mcp ``` --- # Prerequisites * Python 3.10+ * MongoDB Local Instance or MongoDB Atlas Cluster Examples: ```txt mongodb://localhost:27017 ``` or ```txt mongodb+srv://username:password@cluster.mongodb.net ``` --- # Configuration MongoDB MCP uses environment variables to connect to your database. Create a `.env` file: ```env MONGODB_URI=mongodb://localhost:27017 DATABASE_NAME=shipbihar ``` ## Environment Variables | Variable | Description | Required | | ------------- | ------------------------- | -------- | | MONGODB_URI | MongoDB connection string | Yes | | DATABASE_NAME | Database name | Yes | --- # Running the MCP Server ```bash mongo_mcp ``` or ```bash python -m mongo_mcp.main ``` The MCP server will start using stdio transport. --- # MCP Client Configuration Example MCP configuration: ```json { "mcpServers": { "mongodb": { "command": "mongo_mcp", "env": { "MONGODB_URI": "mongodb://localhost:27017", "DATABASE_NAME": "shipbihar" } } } } ``` --- # Available Tools ## all_collections Returns all collections in the configured database. Example Output: ```json [ "users", "orders", "shipments" ] ``` --- ## fetch_collection_schema Returns an inferred schema from a sample document. Example: ```json { "_id": "O…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.