mongo-mcp

A mongo db server for the model context protocol (MCP)

GitHub Stars

167

User Rating

Not Rated

Favorites

0

Views

41

Forks

32

Issues

14

Installation
Difficulty
Beginner
Estimated Time
5-10 minutes

Installation

Installation

Prerequisites

Please specify required software and versions:
Node.js: 18.0.0 or higher
npx: Latest version
Docker and Docker Compose (for local sandbox testing, optional)
MCP Client (e.g., Claude Desktop app)

Installation Steps

1. Install via Smithery

bash
npx -y @smithery/cli install mongo-mcp --client claude

2. Verify MongoDB Server Startup

If using Docker to start MongoDB:
bash
docker-compose up -d

3. Seed the Database with Test Data

bash
npm run seed

4. Configure Claude Desktop

Edit claude_desktop_config.json to add the MCP server:
json
{
  "mcpServers": {
    "mongodb": {
      "command": "npx",
      "args": [
        "mongo-mcp",
        "mongodb://:@:/?authSource=admin"
      ]
    }
  }
}

Troubleshooting

Common Issues

Issue: Server won't start Solution: Check Node.js version and reinstall dependencies. Issue: Not recognized by Claude Desktop Solution: Verify configuration file path and syntax.

Additional Resources