# Server MCP ufficiale MongoDB: cluster Atlas, schema BSON e aggregazioni (`mongodb-atlas-mcp`)

> Server MongoDB MCP ufficiale che ispeziona gli schemi di raccolta, l'utilizzo dell'indice, le pipeline di aggregazione e la telemetria del cluster MongoDB Atlas.

- **Canonical URL:** https://syndipath.com/it/mcp/mongodb-atlas-mcp
- **Runtime:** `npm` | **Transport:** STDIO | **License:** Apache-2.0 | **Package:** `mongodb-mcp-server`
- **Upvotes:** 446 | **GitHub Stars:** 3680 | **Weekly Installs:** 26900
- **Security Note:** HTTP-200 verificato sul registro NPM (mongodb-mcp-server); eseguito tramite npx all'interno di una sessione STDIO con ambito area di lavoro.

## Quick CLI Setup
```bash
# Run directly via Node npx
npx -y mongodb-mcp-server

# Add to Claude Code CLI
claude mcp add -e MDB_MCP_CONNECTION_STRING=${MDB_MCP_CONNECTION_STRING} mongodb-atlas-mcp -- npx -y mongodb-mcp-server
```

## MCP Manifest (`mcp.json`)
```json
{
  "mcpServers": {
    "mongodb-atlas-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mongodb-mcp-server"
      ],
      "env": {
        "MDB_MCP_CONNECTION_STRING": "${MDB_MCP_CONNECTION_STRING}"
      }
    }
  }
}
```

## Exposed MCP Tools
- `mongodb_atlas_mcp_query(sql_or_filter: string, limit?: number)`: Official MongoDB MCP server inspecting collection schemas, index usage, aggregation pipelines, and MongoDB Atlas cluster telemetry.
- `mongodb_atlas_mcp_inspect_schema(namespace?: string)`: Enumerates tables, collections, column types, and active index definitions.
