MongoDB MCP Server
@PrashantSedhain
About MongoDB MCP Server
MCP Server for MongoDB
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mongo-db-mcp": {
"command": "node",
"args": [
"dist/client/client.js",
"dist/index.js"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MongoDB MCP Server?
MongoDB MCP Server is a Model Context Protocol (MCP) server that connects to MongoDB and exposes a query tool to retrieve data from collections via a simple interface. It currently supports read-only transactions and is intended for local integrations and command line tools.
How to use MongoDB MCP Server?
Clone the repository, install dependencies with npm install, and create a .env file with your MONGO_CONNECTION_STRING. Build the TypeScript code with npm run build, then run the client with node dist/client/client.js dist/index.js.
Key features of MongoDB MCP Server
- Exposes a
querytool for MongoDB collections - Read‑only transactions only
- Connects to local or cloud MongoDB databases
- Built with Node.js and TypeScript
- Includes a client application for interaction
Use cases of MongoDB MCP Server
- Querying MongoDB collections from an MCP‑compatible tool
- Exploring database contents without write access
- Integrating MongoDB data into local command‑line workflows
FAQ from MongoDB MCP Server
What does MongoDB MCP Server do?
It provides an MCP server that allows you to query MongoDB collections using a simple query tool. It only supports read operations.
What are the prerequisites?
Node.js v16 or higher, npm, and a MongoDB database (local or cloud).
How do I configure the MongoDB connection?
Create a .env file in the root directory and set MONGO_CONNECTION_STRING to your MongoDB connection string.
Is this server write‑capable?
No. The server currently supports only read‑only transactions.
What transports or authentication are supported?
The README does not specify transport or authentication details beyond the MongoDB connection string.
Frequently asked questions
What does MongoDB MCP Server do?
It provides an MCP server that allows you to query MongoDB collections using a simple `query` tool. It only supports read operations.
What are the prerequisites?
Node.js v16 or higher, npm, and a MongoDB database (local or cloud).
How do I configure the MongoDB connection?
Create a `.env` file in the root directory and set `MONGO_CONNECTION_STRING` to your MongoDB connection string.
Is this server write‑capable?
No. The server currently supports only read‑only transactions.
What transports or authentication are supported?
The README does not specify transport or authentication details beyond the MongoDB connection string.
Basic information
More Databases MCP servers
Neon MCP Server
neondatabase-labsMCP server for interacting with Neon Management API and databases
MCP Server for MySQL based on NodeJS
benborlaA Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
MotherDuck's DuckDB MCP Server
motherduckdbLocal MCP server for DuckDB and MotherDuck
MySQL MCP Server
designcomputerA Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
Comments