Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

MongoDB MCP Server Manual File Configuration

This page describes the MongoDB MCP Server JSON configuration file. The file controls how the MCP Server connects to your MongoDB database cluster, along with other MCP Server settings.

Typically, you use the MCP Server setup utility to create an initial configuration file. For details, see Configure MCP Server File.

The following steps show how to configure a file. You select your MCP client and MongoDB deployment type from the drop-down menus in the following steps to see the corresponding configuration steps. If your preferred client isn't listed, use the steps as guidelines and refer to the documentation for your AI client.

You can add settings to an existing file, or manually create a file.

Tip

Using VS Code?

If you're using VS Code, the MongoDB VS Code Extension includes the MongoDB MCP Server with automatic setup and connection management. To learn more, see MongoDB MCP Server in VS Code Extension.

Back

Configure

On this page