Ap MCP Mongo Server
MCP server by kiliczsh Verified · npm:ap-mcp-mongo-server
Lets AI assistants such as Claude Desktop and Cursor work with MongoDB databases. It exposes collections, infers schemas, and runs queries, aggregations, and writes. A read-only mode supports safe exploration.
Install Ap MCP Mongo Server
Built from the published package, never by AI.
claude mcp add ap-mcp-mongo-server -- npx -y ap-mcp-mongo-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"ap-mcp-mongo-server": {
"args": [
"-y",
"ap-mcp-mongo-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"ap-mcp-mongo-server": {
"args": [
"-y",
"ap-mcp-mongo-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"ap-mcp-mongo-server": {
"args": [
"-y",
"ap-mcp-mongo-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add ap-mcp-mongo-server -- npx -y ap-mcp-mongo-server{
"mcpServers": {
"ap-mcp-mongo-server": {
"args": [
"-y",
"ap-mcp-mongo-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
Step-by-step: install Ap MCP Mongo Server in Antigravity CLI
gemini mcp add ap-mcp-mongo-server npx -y ap-mcp-mongo-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
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 ap-mcp-mongo-server block.
About
MCP MongoDB 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 read and reason about the data.
It runs locally over stdio or as an HTTP endpoint at /mcp for remote access. It connects to standalone, replica set, sharded, and Atlas deployments over plain or TLS connections. Read-only mode blocks every write path, and cross-database and server-side JavaScript stages stay off unless enabled. It suits developers who want assistants to explore their data safely.
Written from the project's README and checked against it.
Tools it gives your assistant
Read-Only ModeBlocks every write path, including insert, update, index creation, and $out or $merge stages.Smart ObjectId HandlingConfigurable auto, none, or force conversion of 24-character hex strings to ObjectIds.Schema InferenceDetects collection schemas automatically from document samples.Query & AggregationSupports full query and aggregation pipeline work, with optional explain plans.Write OperationsInsert, update, and index creation when read-only mode is off.convertTimeTurns Unix timestamps and date strings into UTC, GMT, or ISO values.Progress & CancellationLong operations report progress and can be cancelled mid-flight.Two TransportsRuns locally over stdio or exposes an HTTP endpoint for remote access.
What you need
- Node.js 20 or newer
- A MongoDB database to connect to, via connection string
Try asking
- Show me the collections in my database and their schemas
- Run an aggregation on the orders collection and summarize it
- Convert these Unix timestamps to ISO dates for my query
Good to know
- Cross-database aggregation stages are off by default and need --allow-cross-db.
- Server-side JavaScript operators are off by default and need --allow-server-js.
- By default HTTP mode accepts only requests without a browser Origin or from localhost.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Ap MCP Mongo Server
All alternatives →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.
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.
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.
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.
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.
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.
Compare with Supabase, ArcadeDB MCP Server or DBHub
Ap MCP Mongo Server: common questions
Can an assistant change my data with this server?
Yes, unless read-only mode is on. Read-only mode blocks inserts, updates, index creation, and write aggregation stages.
Does it work with MongoDB Atlas?
The source says it connects to standalone, replica set, sharded, and Atlas deployments, over plain or TLS connections.
How does it handle ObjectIds?
It offers configurable auto, none, or force conversion of 24-character hex strings to ObjectIds.
How do I install Ap MCP Mongo Server?
In Claude Code run claude mcp add ap-mcp-mongo-server -- npx -y ap-mcp-mongo-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Ap MCP Mongo Server the official server?
Ap MCP Mongo Server is published by npm:ap-mcp-mongo-server from its verified domain in the official MCP Registry.
Is Ap MCP Mongo Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Ap MCP Mongo Server safe to use?
It scores 82 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 Ap MCP Mongo Server?
Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.
Does Ap 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.
