MongoDB
OfficialProvides a bridge between MongoDB databases and conversational interfaces, enabling comprehensive da...
Determine which authentication method you want to use:
- If you want to connect directly to a MongoDB instance, you’ll need a MongoDB connection string.
- If you want to use MongoDB Atlas tools (for organization, clusters, or database users), you’ll need to create a Service Account API client ID and secret from MongoDB Atlas.
Obtain your MongoDB connection string (for direct database access):
- If you are using MongoDB Atlas:
- Log in to MongoDB Atlas.
- Select your project and cluster.
- Click Connect.
- Choose Connect your application.
- Copy the connection string (looks like
mongodb+srv://username:password@cluster.mongodb.net/myDatabase
). - Replace
username
,password
, andmyDatabase
with your actual database credentials.
- If you are using a self-hosted MongoDB:
- Your connection string will be in the format:
mongodb://username:password@host:port/database
.
- Your connection string will be in the format:
- If you are using MongoDB Atlas:
To use Atlas API tools, obtain API credentials:
- Create a Service Account in MongoDB Atlas:
- Log in to MongoDB Atlas.
- Navigate to Access Manager > Organization Access.
- Click Add New > Applications > Service Accounts.
- Enter a name, description, and expiration (e.g., “MCP, MCP Server Access, 7 days”).
- Assign only the minimum necessary permissions for your use case.
- Click Create.
- Save Client Credentials:
- After creation, you’ll see the Client ID and Client Secret.
- Copy and save the Client Secret immediately; it will not be shown again.
- Add your IP address to the Atlas API access list.
- Still in the Atlas dashboard, go to API Access/Access List.
- Add your current IP address or a range to allow API access.
- Assign minimum permissions for required operations:
- For basic reading, “Project Read Only” (Project level) is generally sufficient.
- For advanced tooling, follow the roles table in the README.
- Create a Service Account in MongoDB Atlas:
Fill in values in the FastMCP connection interface:
- Click the Install Now button in your environment.
- Use the FastMCP interface to add your keys:
- For MongoDB connection string: Enter it into the field labeled
MDB_MCP_CONNECTION_STRING
. - For Atlas API: Enter your
MDB_MCP_API_CLIENT_ID
andMDB_MCP_API_CLIENT_SECRET
in the provided fields.
- For MongoDB connection string: Enter it into the field labeled
- Only one method is required: either a connection string (for direct DB access) or API credentials (for Atlas operations).
Finish Setup:
- Save changes in FastMCP.
- The server will now have access to your MongoDB database or Atlas project according to the credentials provided.
Summary Table of Required Information:
Option | FastMCP Field(s) | Where to get it |
---|---|---|
Direct MongoDB | MDB_MCP_CONNECTION_STRING |
MongoDB Atlas UI or self-hosted config |
Atlas API (recommended) | MDB_MCP_API_CLIENT_ID and MDB_MCP_API_CLIENT_SECRET |
Atlas Service Account setup in Atlas UI |
Quick Start
Choose Connection Type for
Authentication Required
Please sign in to use FastMCP hosted connections
Configure Environment Variables for
Please provide values for the following environment variables:
started!
The MCP server should open in . If it doesn't open automatically, please check that you have the application installed.
Copy and run this command in your terminal:
Make sure Gemini CLI is installed:
Visit Gemini CLI documentation for installation instructions.
Make sure Claude Code is installed:
Visit Claude Code documentation for installation instructions.
Installation Steps:
Configuration
Installation Failed
More for Database
View All →Supabase MCP Server
Connect Supabase projects directly with AI assistants using the Model Context Protocol (MCP). This server standardizes communication between Large Language Models and Supabase, enabling AI to manage tables, query data, and interact with project features like edge functions, storage, and branching. Customize access with read-only or project-scoped modes and select specific tool groups to fit your needs. Integrated tools cover account management, documentation search, database operations, debugging, and more, empowering AI to assist with development, monitoring, and deployment tasks in your Supabase environment efficiently and securely.
ClickHouse
Unlock powerful analytics with the ClickHouse MCP Server—seamlessly run, explore, and manage SQL queries across ClickHouse clusters or with chDB’s embedded OLAP engine. This server offers easy database and table listing, safe query execution, and flexible access to data from files, URLs, or databases. Built-in health checks ensure reliability, while support for both ClickHouse and chDB enables robust data workflows for any project.
Postgres MCP Pro
Boost your Postgres database performance with Postgres MCP Pro, an AI-driven MCP server offering advanced index tuning, detailed explain plans, and comprehensive health checks. It combines proven optimization algorithms with schema intelligence for safe, context-aware SQL execution. Whether analyzing slow queries or recommending optimal indexes, Postgres MCP Pro empowers developers to improve efficiency and maintain database integrity. Designed for both development and production, it supports flexible transport options and robust access controls, making database management smarter, safer, and easier. Experience deterministic performance insights alongside AI assistance to keep your Postgres running at its best.