Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

MCP Mongo Server

MCP server by kiliczsh Verified · npm:@mseep

Lets AI assistants query, aggregate and write to MongoDB databases through the Model Context Protocol. Built for developers who want Claude Desktop or Cursor to read and reason about their data.

  • Score 79
  • 282 stars
  • 17 a week
  • MIT
  • Updated

Install MCP Mongo Server

Built from the published package, never by AI.

claude mcp add mcp-mongo-server -- npx -y @mseep/mcp-mongo-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install MCP Mongo Server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-mongo-server block.

About

MCP Mongo Server is a Model Context Protocol server that lets AI assistants work with MongoDB databases. It exposes collections, infers their schemas, and runs queries, aggregations, and writes through a standard interface. Clients such as Claude Desktop and Cursor can then read and reason about the data.

It runs locally over stdio or as an HTTP endpoint at /mcp, and connects to standalone, replica set, sharded, and Atlas deployments over plain or TLS connections. A read-only mode blocks every write path, and cross-database and server-side JavaScript operators are off by default. It suits developers who want an assistant to explore or change MongoDB data with safety controls.

Written from the project's README and checked against it.

Tools it gives your assistant

  • convertTimeTurns Unix timestamps and date strings into UTC, GMT or ISO format for date queries.
  • Schema InferenceDetects collection schemas automatically from document samples.
  • Query & AggregationSupports full query and aggregation pipeline work, with optional explain plans.
  • Write OperationsInserts, updates and creates indexes when read-only mode is off.
  • Read-Only ModeBlocks insert, update, index creation and write-capable aggregation stages.
  • ObjectId HandlingConverts 24-character hex strings to ObjectIds with auto, none or force settings.
  • Progress & CancellationReports progress on long operations and lets them be cancelled mid-flight.
  • Two TransportsRuns over stdio locally or exposes an HTTP endpoint for remote access.

What you need

  • Node.js 20 or newer
  • A MongoDB database and connection URI

Try asking

  • Show me the collections in my database and what fields they contain.
  • Run an aggregation that counts orders per month for this year.
  • Explain the query plan for finding users created after March 1.

Good to know

  • Read-only mode blocks all write operations when turned on.
  • Cross-database aggregation stages are rejected unless --allow-cross-db is set.
  • Server-side JavaScript operators are rejected unless --allow-server-js is set.
  • HTTP mode accepts only requests without a browser Origin or from localhost by default.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to MCP Mongo Server

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

MCP Mongo Server: common questions

Can an AI assistant change my MongoDB data with this server?

Yes, by default it can insert, update and create indexes. Turning on read-only mode blocks every write path.

Does it work with MongoDB Atlas and sharded clusters?

The source says it connects to standalone, replica set, sharded, and Atlas deployments over plain or TLS connections.

How does the server protect against risky aggregation stages?

Stages that reach other databases and server-side JavaScript operators are rejected by default and must be enabled with flags.

How do I install MCP Mongo Server?

In Claude Code run claude mcp add mcp-mongo-server -- npx -y @mseep/mcp-mongo-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is MCP Mongo Server the official server?

MCP Mongo Server is published by npm:@mseep from its verified domain in the official MCP Registry.

Is MCP Mongo Server free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is MCP Mongo Server safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to MCP Mongo Server?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does MCP Mongo Server work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

MCP Mongo Server Install

Add to stack

Loading.