MongoDB MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MDB_MCP_LOGGERS | No | Comma separated values, possible values are mcp, disk and stderr. | disk,mcp |
| MDB_MCP_LOG_PATH | No | Folder to store logs. | |
| MDB_MCP_HTTP_HOST | No | Host to bind the http server. | 127.0.0.1 |
| MDB_MCP_HTTP_PORT | No | Port number for HTTP server. | 3000 |
| MDB_MCP_READ_ONLY | No | When set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations. | false |
| MDB_MCP_TELEMETRY | No | When set to disabled, disables telemetry collection. | enabled |
| MDB_MCP_TRANSPORT | No | Either 'stdio' or 'http'. | stdio |
| MDB_VOYAGE_API_KEY | No | API key for communicating with Voyage AI. Used for generating embeddings for Vector search. | |
| MDB_MCP_INDEX_CHECK | No | When set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan. | false |
| MDB_MCP_EXPORTS_PATH | No | Folder to store exported data files. | |
| MDB_MCP_API_CLIENT_ID | No | Atlas API client ID for authentication. Required for running Atlas tools. | |
| MDB_MCP_DISABLED_TOOLS | No | An array of tool names, operation types, and/or categories of tools that will be disabled. | |
| MDB_MCP_IDLE_TIMEOUT_MS | No | Idle timeout for a client to disconnect (only applies to http transport). | 600000 |
| MDB_MCP_API_CLIENT_SECRET | No | Atlas API client secret for authentication. Required for running Atlas tools. | |
| MDB_MCP_CONNECTION_STRING | No | MongoDB connection string for direct database connections. Optional, if not set, you'll need to call the connect tool before interacting with MongoDB data. | |
| MDB_MCP_EXPORT_TIMEOUT_MS | No | Time in milliseconds after which an export is considered expired and eligible for cleanup. | 300000 |
| MDB_MCP_MAX_BYTES_PER_QUERY | No | The maximum size in bytes for results from a find or aggregate tool call. | 16777216 |
| MDB_MCP_MAX_DOCUMENTS_PER_QUERY | No | The maximum number of documents that can be returned by a find or aggregate tool call. | 100 |
| MDB_MCP_NOTIFICATION_TIMEOUT_MS | No | Notification timeout for a client to be aware of disconnect (only applies to http transport). | 540000 |
| MDB_MCP_EXPORT_CLEANUP_INTERVAL_MS | No | Time in milliseconds between export cleanup cycles that remove expired export files. | 120000 |
| MDB_MCP_CONFIRMATION_REQUIRED_TOOLS | No | An array of tool names that require user confirmation before execution. | create-access-list,create-db-user,drop-database,drop-collection,delete-many |
| MDB_MCP_ATLAS_TEMPORARY_DATABASE_USER_LIFETIME_MS | No | Time in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted. | 14400000 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aiminnovations/mongodb-mcp-juniper'
If you have feedback or need assistance with the MCP directory API, please join our Discord server