Skip to main content
Glama
davidedantonio

mcp-mongodb

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoLog level: debug, info, warn, error, silent.info
MONGODB_URIYesConnection string. Use a read-only user.
MCP_HTTP_PORTNoHTTP port to listen on (HTTP transport only).3000
MCP_TRANSPORTNoTransport to use: stdio or http.stdio
MCP_CONFIG_PATHYesPath to the config file that defines exposed collections. Without it, nothing is exposed.
MCP_MAX_PAGE_SIZENoMaximum page size the caller can request.200
MCP_HTTP_AUTH_TOKENNoRequired for HTTP transport; minimum 32 characters.
MCP_DEFAULT_PAGE_SIZENoDefault page size when the caller does not specify one.50
MCP_HTTP_ALLOWED_HOSTSNoComma-separated allowed hosts for DNS-rebinding protection.
MCP_MAX_RESPONSE_BYTESNoMaximum response size in bytes.262144
MCP_HTTP_MAX_BODY_BYTESNoMaximum request body size in bytes.1048576
MONGODB_QUERY_TIMEOUT_MSNoQuery timeout in milliseconds; becomes maxTimeMS on every query.10000
MONGODB_ALLOWED_DATABASESYesComma-separated list of database names that are reachable.
MONGODB_CONNECT_TIMEOUT_MSNoConnection timeout in milliseconds. Must be lower than the query timeout.5000

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

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/davidedantonio/mcp-mongodb'

If you have feedback or need assistance with the MCP directory API, please join our Discord server