How do I connect to MongoDB?
Pass the MongoDB URI as a command-line argument, e.g., `npx -y mcp-mongo-server mongodb://localhost:27017/database`, or set the `MCP_MONGODB_URI` environment variable.
@kiliczsh
Basic information
A Model Context Protocol Server for MongoDB
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongodb": {
"command": "npx",
"args": [
"-y",
"github:kiliczsh/mcp-mongo-server",
"mongodb://muhammed:kilic@localhost:27017/database"
]
},
"mongodb-readonly": {
"command": "npx",
"args": [
"-y",
"github:kiliczsh/mcp-mongo-server",
"mongodb://muhammed:kilic@localhost:27017/database",
"--read-only"
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
Fetch the live tool list by running this server in a temporary sandbox using the button above.
MCP MongoDB Server is a Model Context Protocol server that enables LLMs to interact with MongoDB databases. It provides capabilities for inspecting collection schemas and executing MongoDB operations through a standardized interface.
Start the server via npx with a MongoDB URI: npx -y mcp-mongo-server mongodb://localhost:27017/database. Use the --read-only flag to prevent write operations. Alternatively, set the MCP_MONGODB_URI and MCP_MONGODB_READONLY environment variables.
Pass the MongoDB URI as a command-line argument, e.g., `npx -y mcp-mongo-server mongodb://localhost:27017/database`, or set the `MCP_MONGODB_URI` environment variable.
Yes, use the `--read-only` flag or set `MCP_MONGODB_READONLY` to `"true"`. Read-only mode also uses secondary read preference.
The server provides tools for query, aggregate, update, insert, and more. See the [Available Tools](docs/tools.md) documentation.
ObjectId handling has three configurable modes: auto, none, and force for string-to-ObjectId conversion.
Yes, MCP MongoDB Server is released under the MIT license.
Postgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.

Connect Karma.Domains to ChatGPT, Claude, Cursor, VS Code, or another MCP client — and find a domain in plain language. The same auctions, expired, backorder, and buy-now data you use in the app, plus saved filters, note
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently

Model Context Protocol Servers

Access millions of official legal and regulatory source documents from 155+ jurisdictions via MCP. Lawstronaut supports AI agents with structured legal research, legal data, laws, regulations, cases, guidance, official s
Comments