Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ—„๏ธ Databases
  3. MCP Mongo Server
MCP Mongo Server logo
Health: ActiveRecent health check succeeded.Last checked 9/9/2026, 8:46:30 PM

MCP Mongo Server

User RatingsBe the first to rate and review this MCP server!
View Repository284 GitHub StarsTotal stargazers on GitHub for the source repository (284 stars).Visit Website
mongodbdatabaseaggregationqueryreadonly

MCP server exposing MongoDB collections with schema inference, query, aggregation, and optional read-only mode.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kiliczsh-mcp-mongo-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-mongo-server"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives๐Ÿ—„๏ธ More in Databases

Overview

This MCP server connects AI agents to MongoDB databases, exposing collections and inferred schemas for querying, aggregation, and writes via a standard interface. It supports standalone, replica set, sharded, and Atlas deployments over plain or TLS connections. Use it to enable AI tools to safely explore or modify MongoDB data with optional read-only mode to prevent writes.

Use cases

โ€ขQuery MongoDB collections using natural language via AI agents
โ€ขRun aggregation pipelines with explain plans
โ€ขInsert, update, and create indexes when not in read-only mode
โ€ขExpose MongoDB data to AI clients locally or over HTTP
โ€ขConvert timestamps and date strings for unambiguous queries

Key features

โ€ขAutomatic schema inference from document samples
โ€ขFull query and aggregation pipeline support
โ€ขConfigurable ObjectId conversion modes
โ€ขRead-only mode blocking all write operations
โ€ขProgress reporting and cancellation for long operations
โ€ขTwo transport modes: stdio (local) and HTTP (remote)

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Mongo Server.

Extracted Tool Capabilities
Automatic schema inference from document samples
Full query and aggregation pipeline support
Configurable ObjectId conversion modes
Read-only mode blocking all write operations
Progress reporting and cancellation for long operations
Two transport modes: stdio (local) and HTTP (remote)

Documentation Overview

MCP MongoDB Server


NPM Version NPM Downloads NPM License

A Model Context Protocol (MCP) server that lets AI assistants work with your MongoDB databases. It exposes your collections, infers their schemas, and runs queries, aggregations, and writes through a standard interface โ€” so tools like Claude Desktop and Cursor can read and reason about your data.

Demo

MCP MongoDB Server Demo | Claude Desktop

Why use it

  • Talk to your database in plain language โ€” the assistant discovers your collections and their shape automatically.
  • Safe by default โ€” turn on read-only mode to let an assistant explore without any risk of changing data.
  • Works everywhere โ€” connects to standalone, replica set, sharded, and Atlas deployments, over plain or TLS connections.

Key Features

  • Read-Only Mode โ€” blocks every write path (insert, update, index creation, and aggregation stages like $out/$merge that could modify data).
  • Smart ObjectId Handling โ€” configurable auto/none/force conversion of 24-character hex strings to ObjectIds.
  • Schema Inference โ€” automatic collection schema detection from document samples.
  • Query & Aggregation โ€” full query and aggregation pipeline support, with optional explain plans.
  • Write Operations โ€” insert, update, and index creation (when read-only mode is off).
  • Time Conversion โ€” a convertTime helper turns Unix timestamps and date strings into UTC/GMT/ISO, so date queries stay unambiguous across timezones.
  • Progress & Cancellation โ€” long operations report progress and can be cancelled mid-flight.
  • Two Transports โ€” run locally over stdio, or expose an HTTP endpoint for remote access.

Requirements

  • Node.js 20 or newer

Quick Start

Point the server at your database โ€” no install step needed:

Terminal
npx -y mcp-mongo-server mongodb://localhost:27017/mydatabase

Explore safely, without any chance of changing data:

Terminal
npx -y mcp-mongo-server mongodb://localhost:27017/mydatabase --read-only

Usage

Local (stdio)

This is the default, used by Claude Desktop, Cursor, and other local clients:

Terminal
npx -y mcp-mongo-server "mongodb://user:pass@localhost:27017/mydatabase"

Remote (HTTP)

Expose an HTTP endpoint at /mcp for remote or multi-client access:

Terminal
npx -y mcp-mongo-server "mongodb://user:pass@localhost:27017/mydatabase" --transport http --port 3001

By default, only requests without a browser Origin (CLIs, IDEs) and requests from localhost are accepted; everything else is rejected with 403 to guard against DNS-rebinding attacks. Allow specific browser origins with --allowed-origins:

Terminal
npx -y mcp-mongo-server "mongodb://..." --transport http --port 3001 --allowed-origins "https://app.example.com"

Options

FlagDescription
--read-only, -rBlock all write operations
--allow-cross-dbAllow aggregation $out/$merge/$lookup to target other databases (off by default)
--allow-server-jsAllow server-side JavaScript operators $function/$where/$accumulator (off by default)
--transport, -tstdio (default) or http
--port, -pHTTP port (default 3001)
--allowed-originsComma-separated browser origins to allow in HTTP mode
--json-limitMax HTTP request body size (default 10mb)
--auth-tokenRequire Authorization: Bearer <token> on the HTTP endpoint

Environment Variables

VariableDescription
MCP_MONGODB_URIMongoDB connection URI (alternative to the argument)
MCP_MONGODB_READONLYEnable read-only mode ("true")
MCP_MONGODB_ALLOW_CROSS_DBAllow cross-database aggregation stages ("true")
MCP_MONGODB_ALLOW_SERVER_JSAllow server-side JavaScript operators ("true")
MCP_PORTHTTP port
MCP_HTTP_ALLOWED_ORIGINSComma-separated browser origins to allow in HTTP mode
MCP_HTTP_JSON_LIMITMax HTTP request body size (default 10mb)
MCP_HTTP_AUTH_TOKENBearer token required to access the HTTP endpoint

Security

Database scope. The server operates on the database in your connection string. Aggregation stages that reach another database ($out, $merge, $lookup with an explicit db) are rejected by default, so a pipeline can't quietly read from or write to databases you didn't point it at. Enable them with --allow-cross-db if you need them.

Server-side JavaScript. The aggregation operators $function, $where, and $accumulator run arbitrary JavaScript on the MongoDB server. They are rejected by default; enable them with --allow-server-js if you trust the pipelines being run.

Read-only mode blocks every write path, including aggregation stages that write or run server-side JavaScript ($out, $merge, $function, $where, $accumulator).

Least privilege. Application-level checks only go so far โ€” the strongest guarantee comes from the database. Connect with a MongoDB user scoped to just the database you need, with read-only permissions when the assistant only needs to explore. That way the database itself enforces the boundary, as defense in depth.

Documentation

  • Integration Guide โ€” Claude Desktop, Windsurf, Cursor, Docker
  • Available Tools โ€” query, aggregate, update, insert, and more
  • Development โ€” setup, scripts, and debugging
  • Contributing

License

MIT โ€” see LICENSE for details.

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Databases View all alternatives
  • MCP Server Mysql logoMCP Server Mysql

    MySQL database integration in NodeJS with configurable access controls and schema inspection

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs MCP Server Mysql โ†’
  • Dolphindb MCP Server logoDolphindb MCP Server

    TDolphinDB database integration with schema inspection and query capabilities

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs Dolphindb MCP Server โ†’
  • MCP Server Duckdb logoMCP Server Duckdb

    DuckDB database integration with schema inspection and query capabilities

    ๐Ÿ—„๏ธ Databases2 views
    Compare vs MCP Server Duckdb โ†’
  • Mongo MCP logoMongo MCP

    MongoDB integration that enables LLMs to interact directly with databases.

    ๐Ÿ—„๏ธ Databases3 views
    Compare vs Mongo MCP โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
284
Stargazers on the source repository.
npm downloads
1.1k
Package downloads in the last 30 days.
Last commit
1mo ago
Most recent push to the default branch.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about MCP Mongo Server

Read-only mode blocks all write operations including inserts, updates, index creation, and aggregation stages that modify data like $out and $merge.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Mongo Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kiliczsh-mcp-mongo-server?style=directory)](https://allmcps.com/mcp/kiliczsh-mcp-mongo-server)
HTML Embed
<a href="https://allmcps.com/mcp/kiliczsh-mcp-mongo-server"><img src="https://allmcps.com/api/badge/kiliczsh-mcp-mongo-server?style=directory" alt="MCP Mongo Server on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ—„๏ธDatabases
PricingFree
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
LicenseMIT
ClientsClaude Desktop, Cursor, Windsurf
Last updatedAug 9, 2026
10/10 checks healthy over the last 31d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars284
GitHub Star CountTotal stargazers on GitHub representing community popularity (284 stars).
Last commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jul 29, 2026
npm downloads1,147/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
47Quality signal: Fair ยท 47/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools15/30
Adoption & activity10/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 23d ago via OSV.dev ยท mcp-mongo-server (npm)

โ˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ—„๏ธ Databases โ†’Best MCP servers for Databases โ†’Alternatives to MCP Mongo Server โ†’Install in Claude DesktopInstall in CursorInstall in VS Code