# mongodb

> A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.

- Source: https://doutorai.pt/en/components/mcps__mongodb
- Type: Connectors
- Category: Dev tools
- Downloads: 190
- Site: Doutor AI (https://doutorai.pt/en) - AI tools for small businesses

An open-source community component, curated and adapted by Doutor AI.

## What it does and how to use it

A **connector (MCP)** that links Claude to an external dev tools tool or service, giving it access to real data and actions.

1. Install the connector (command above).
2. Add the service credentials/keys when asked.
3. Claude can now read and act on that service directly.

## Install (Claude Code)

```bash
mkdir -p .claude/mcps && curl -fsSL https://doutorai.pt/data/lib/mcps__mongodb.md -o .claude/mcps/mongodb.json
```

Paste this command into the terminal, in your project folder, and the component installs automatically.

## Content

```
{
  "mcpServers": {
    "MongoDB": {
      "description":"A Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.",
      "command": "npx",
      "args": ["-y", "mongodb-mcp-server@latest", "--readOnly"],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "mongodb://localhost:27017/myDatabase"
      }
    }
  }
}
```

## Where this component is recommended

We hand-picked this component for [Databases with Claude Code: schema, queries and migrations](https://doutorai.pt/en/for/databases). Those pages explain when it makes sense and which other components it pairs with.

## Related components

- [alpaca-trading](https://doutorai.pt/en/components/mcps__alpaca-trading): Trading platform MCP server enabling stock, ETF, crypto, and options trading via Alpaca's API. Supports market data, portfolio management, a
- [android-mcp](https://doutorai.pt/en/components/mcps__android-mcp): MCP Server for interacting with Android devices. Control, inspect, and automate Android devices via ADB through Claude.
- [apify](https://doutorai.pt/en/components/mcps__apify): Extract data from social media, search engines, maps, and e-commerce sites using Apify's ready-made scrapers and actors via MCP.
- [arxiv-mcp-server](https://doutorai.pt/en/components/mcps__arxiv-mcp-server): Search, download, and analyze academic papers from arXiv. Supports full-text search, paper retrieval, and local storage for research workflo
- [azure-kubernetes-service](https://doutorai.pt/en/components/mcps__azure-kubernetes-service): The AKS-MCP is a Model Context Protocol (MCP) server that enables AI assistants to interact with Azure Kubernetes Service (AKS) clusters. It
- [box](https://doutorai.pt/en/components/mcps__box): The Box MCP Server is a Python project that integrates with the Box API to perform various operations such as file search, text extraction, 

## Save hours every week with AI, no hassle

**Doutor AI** gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further. [See plans →](https://doutorai.pt/en/pricing)

---
Content by Doutor AI (https://doutorai.pt/en). When quoting, please cite the source: https://doutorai.pt/en/components/mcps__mongodb
