What are the prerequisites?
Node.js v18 or higher, a MongoDB instance (local or remote), and an MCP client such as Claude Desktop or Cursor.ai.
@1RB
Basic information
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongo-mcp-1rb": {
"command": "node",
"args": [
"--version",
"#",
"Should",
"show",
"v18.0.0",
"or",
"higher"
]
}
}
}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.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
An MCP server that enables LLMs to interact directly with MongoDB databases through natural language. It allows querying collections, inspecting schemas, and managing data seamlessly, targeting developers using MCP clients like Claude Desktop or Cursor.ai.
Configure your MCP client with the command npx mongo-mcp <connection-string> (or node dist/index.js for local development). Alternatively, install via Smithery using npx -y @smithery/cli install mongo-mcp --client claude. Ensure Node.js 18+ and a running MongoDB instance (local or remote) are available.
Node.js v18 or higher, a MongoDB instance (local or remote), and an MCP client such as Claude Desktop or Cursor.ai.
Provide the MongoDB connection string as a command argument, for example: `npx mongo-mcp mongodb://<username>:<password>@<host>:<port>/<database>?authSource=admin`.
Create a dedicated MongoDB user with minimal permissions, never use admin credentials, enable access logging, set appropriate read/write permissions on collections, and consider IP allow‑listing.
Verify the connection string, ensure the MongoDB server is running and reachable, and check network permissions. For authentication issues, confirm the username, password, and `authSource` parameter.
Query tools: `listCollections`, `find`, `insertOne`, `updateOne`, `deleteOne`. Index tools: `createIndex`, `dropIndex`, `indexes`. All follow the MCP specification with Zod‑valid
A MCP (model context protocol) server that gives the LLM access to and knowledge about relational databases like SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL.
Zero-dependency, token-efficient database MCP server for Postgres, MySQL, SQL Server, MariaDB, SQLite.

nuzur is a model-first database platform for MySQL and PostgreSQL. The MCP server lets any AI assistant or agent (Claude, Cursor, Gemini, or anything else that speaks MCP) design your schema, query your data, generate mi
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
Comments