mongo
MCP server from DavutcanJ/mongo-mcp-server
claude mcp add --transport stdio davutcanj-mongo-mcp-server docker run -i davutcanj-mongo-mcp-server:latest \ --env MCP_PORT="50051" \ --env MONGO_URI="mongodb://localhost:27017"
How to use
This MCP server provides a MongoDB-backed Model Context Protocol service with gRPC endpoints to manage models, contexts, protocols, and data. It supports cursor-style IDE integration for enhanced code completion and analysis and exposes operations for creating, listing, updating, and deleting models; creating and managing contexts across multiple models; executing protocols and tracking their status; and storing and retrieving arbitrary data such as code snippets. Clients interact with the MCPService over gRPC, and you can use grpcurl or any gRPC client to issue CreateModel, CreateContext, ExecuteProtocol, GetProtocolStatus, AddData, GetData, ListData, and DeleteData calls. The server is designed to work with a MongoDB backend to persist models, contexts, protocols, and data, and includes optional Cursor IDE integration for a smoother development workflow.
How to install
Prerequisites:\n- Docker (recommended) or Go environment if you prefer building from source. Ensure MongoDB is accessible (localhost:27017 by default) or configure the MONGO_URI accordingly.\n\nOption A: Run via Docker (recommended)\n1. Install Docker.\n2. Pull and run the server image:\n docker pull davutcanj-mongo-mcp-server:latest\n docker run -p 50051:50051 -e MONGO_URI=mongodb://localhost:27017 -e MCP_PORT=50051 davutcanj-mongo-mcp-server:latest\n3. The MCP server will start and listen on port 50051. Ensure MongoDB is running and accessible.\n\nOption B: Build from source (Go)\n1. Prerequisites: Go 1.16+ and MongoDB.\n2. Clone the repository and navigate into it.\n3. Initialize modules and install dependencies:\n go mod download\n4. Start MongoDB (if not already running):\n mongod --dbpath /path/to/data/directory\n5. Build and run:\n go build -o mcp-server cmd/server/main.go\n ./mcp-server\n6. The server will listen on the default gRPC port (commonly 50051) unless configured otherwise via environment or flags.
Additional notes
Tips and common considerations:\n- Ensure MongoDB is reachable from wherever the MCP Server runs (adjust MONGO_URI as needed).\n- If running behind a firewall, expose the MCP_PORT (default 50051) or configure a reverse proxy if needed.\n- The Cursor integration described in the README requires the Cursor IDE to be installed on the client machine; the server will auto-detect Cursor when running.\n- Security: all endpoints assume authentication; ensure proper credentials and TLS configuration in production.\n- If you run the Docker image, verify that the image tag corresponds to the latest build and that the environment variables MONGO_URI and MCP_PORT are correctly set to match your environment.
Related MCP Servers
trpc-agent-go
trpc-agent-go is a powerful Go framework for building intelligent agent systems using large language models (LLMs) and tools.
station
Station is our open-source runtime that lets teams deploy agents on their own infrastructure with full control.
tiger-cli
Tiger CLI is the command-line interface for Tiger Cloud. It includes an MCP server for helping coding agents write production-level Postgres code.
gopls
MCP server for golang projects development: Expand AI Code Agent ability boundary to have a semantic understanding and determinisic information for golang projects.
kubernetes
A Model Context Protocol (MCP) server for the Kubernetes API.
gcp-cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go