MongoDB
Query and analyze MongoDB databases.
Obtain your MongoDB connection details
Gather your MongoDB URI. This will look like:mongodb://<username>:<password>@<host>:<port>/<database><username>: Your MongoDB username<password>: Your MongoDB password<host>: Hostname or IP address of your MongoDB server<port>: Port number (default is27017)<database>: Name of your MongoDB database
(Optional) Decide if you want read-only mode
- If you want to prevent all write operations, enable read-only mode by setting
MCP_MONGODB_READONLYto"true". - Leave this value unset or set to
"false"if you need write access.
- If you want to prevent all write operations, enable read-only mode by setting
Go to the FastMCP connection interface
- Click the "Install Now" button for the MCP MongoDB Server integration.
- In the FastMCP connection setup interface, you will see fields for environment variables.
Fill in the required environment variables:
MCP_MONGODB_URI:
Paste your MongoDB URI in this field.MCP_MONGODB_READONLY (optional):
Set to"true"for read-only access, or leave blank/false to allow write operations.
Save and finish the configuration
- Click "Save" or "Connect" (button label may vary).
- The MCP MongoDB Server integration should now be ready to use with the provided credentials.
Example setup
- MCP_MONGODB_URI:
mongodb://muhammed:kilic@localhost:27017/database - MCP_MONGODB_READONLY:
true
You are now ready to connect and use your MongoDB server through the MCP integration.
How to Install MongoDB
Install MongoDB MCP server with one click through FastMCP. Choose your preferred AI development tool below:
Claude Desktop
Click "Claude Desktop" in Quick Start
Cursor IDE
Click "Cursor IDE" in Quick Start
VS Code
Click "VS Code" in Quick Start
Alternatives to MongoDB
Looking for similar MCP servers? Browse other servers in the same categories on FastMCP, or check out the similar servers listed above.
Compare side by side
Quick Start
Choose Connection Type for
Authentication Required
Please sign in to use FastMCP hosted connections
Run MCP servers without
local setup or downtime
Access to 1,000+ ready-to-use MCP servers
Skip installation, maintenance, and trial-and-error.
No local setup or infra
Run MCP servers without Docker, ports, or tunnels.
Always online
Your MCP keeps working even when your laptop is off.
One secure URL
Use the same MCP from any agent, anywhere.
Secure by default
Encrypted connections. Secrets never stored locally.
Configuration for
Environment Variables
Please provide values for the following environment variables:
HTTP Headers
Please provide values for the following HTTP headers:
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
Related Articles
Best MCP Servers for Database & Supabase in 2026
Jan 3, 2026
Discover the best database MCP servers for Supabase, PostgreSQL, MySQL, MongoDB and more. One-click install for Claude Desktop, Cursor, and VS Code.
Building MCP Servers with .NET: From Development to Publication
Jul 17, 2025
Building MCP Servers with .NET: From Development to Publication
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.
Svelte
Official Svelte documentation access and code analysis server that provides up-to-date reference material, playground link generation, and intelligent autofixer capabilities for detecting common patterns, anti-patterns, and migration opportunities in Svelte 5 and SvelteKit projects.