Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MDB_MCP_LOGGERSNoComma separated values, possible values are mcp, disk and stderr.disk,mcp
MDB_MCP_LOG_PATHNoFolder to store logs.
MDB_MCP_HTTP_HOSTNoHost to bind the http server.127.0.0.1
MDB_MCP_HTTP_PORTNoPort number for HTTP server.3000
MDB_MCP_READ_ONLYNoWhen set to true, only allows read, connect, and metadata operation types, disabling create/update/delete operations.false
MDB_MCP_TELEMETRYNoWhen set to disabled, disables telemetry collection.enabled
MDB_MCP_TRANSPORTNoEither 'stdio' or 'http'.stdio
MDB_VOYAGE_API_KEYNoAPI key for communicating with Voyage AI. Used for generating embeddings for Vector search.
MDB_MCP_INDEX_CHECKNoWhen set to true, enforces that query operations must use an index, rejecting queries that perform a collection scan.false
MDB_MCP_EXPORTS_PATHNoFolder to store exported data files.
MDB_MCP_API_CLIENT_IDNoAtlas API client ID for authentication. Required for running Atlas tools.
MDB_MCP_DISABLED_TOOLSNoAn array of tool names, operation types, and/or categories of tools that will be disabled.
MDB_MCP_IDLE_TIMEOUT_MSNoIdle timeout for a client to disconnect (only applies to http transport).600000
MDB_MCP_API_CLIENT_SECRETNoAtlas API client secret for authentication. Required for running Atlas tools.
MDB_MCP_CONNECTION_STRINGNoMongoDB 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_MSNoTime in milliseconds after which an export is considered expired and eligible for cleanup.300000
MDB_MCP_MAX_BYTES_PER_QUERYNoThe maximum size in bytes for results from a find or aggregate tool call.16777216
MDB_MCP_MAX_DOCUMENTS_PER_QUERYNoThe maximum number of documents that can be returned by a find or aggregate tool call.100
MDB_MCP_NOTIFICATION_TIMEOUT_MSNoNotification timeout for a client to be aware of disconnect (only applies to http transport).540000
MDB_MCP_EXPORT_CLEANUP_INTERVAL_MSNoTime in milliseconds between export cleanup cycles that remove expired export files.120000
MDB_MCP_CONFIRMATION_REQUIRED_TOOLSNoAn 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_MSNoTime in milliseconds that temporary database users created when connecting to MongoDB Atlas clusters will remain active before being automatically deleted.14400000

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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