MongoDB MCP Server

MCP Server for MongoDB

Local serverstdioTypeScript

What is the MongoDB MCP Server?

MCP Server for MongoDB

What you get

A Model Context Protocol (MCP) server for MongoDB that allows querying MongoDB collections through a simple interface for local integrations and command line tools.

This project implements an MCP server that connects to MongoDB and provides a query tool to retrieve data from collections. It currently only supports read-only transactions. Project includes:

Configuration and credentials

  • Node.js (v16 or higher) - npm - MongoDB database (local or cloud-based)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Node.js (v16 or higher) - npm - MongoDB database (local or cloud-based)

Frequently asked questions

It provides an MCP server that allows you to query MongoDB collections using a simple `query` tool. It only supports read operations.