For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Local MCP Server Configuration

Configure the Local MCP to interact with your MongoDB deployments from AI clients.

The following sections describe AI client compatibility and prerequisites for the Local MCP, and provide links to pages with the Local MCP configuration options. For a basic Local MCP configuration and introduction, see Get Started with the MongoDB MCP Server.

The Local MCP is compatible with AI clients that support MCP. For example, you can use these AI clients:

The JSON configuration file structure can vary for each AI client. Read the AI client documentation for details.

For a list of clients that support MCP, see MCP Clients.

Ensure you have already installed the software as specified in MCP Server software prerequisites.

The Local MCP can run Atlas tools that perform various Atlas operations. To run the Atlas tools, your Atlas cluster requires a service account with the appropriate permissions.

To set up a service account, see MongoDB MCP Server Prerequisites for Running Atlas Tools.

For a list of the tools, see MongoDB MCP Server Tools.

To perform Local MCP configuration tasks and operations, see the following pages:

Page
Description

View Local MCP options that specify how to connect to a cluster and control Local MCP operations.

Set Local MCP options in a JSON configuration file, a command line, and environment variables.

Enable or disable Local MCP features such as read-only mode, specific MCP tools, telemetry data collection about system use, and using indexes in queries.

Export results returned by queries and aggregation pipelines to files.

Configure the Local MCP to run as a standalone service.

Examine Local MCP logs for information that can help resolve problems.