Mcpmongo MCP Server

Integrates MongoDB with the Model Context Protocol (MCP) to enable AI assistants to interact with databases.

Local serverstdio★ 1

What is the Mcpmongo MCP Server?

Integrates MongoDB with the Model Context Protocol (MCP) to enable AI assistants to interact with databases.

The short version

This project demonstrates the integration of MongoDB with the Model Context Protocol (MCP) to provide AI assistants with database interaction capabilities. It consists of two main components:

  • MongoDB Integration — Full CRUD operations exposed as MCP tools
  • MCP Server — Implements the Model Context Protocol for AI tool use
  • Gemini AI Integration — Connects to Google's Gemini models
  • Terminal Chatbot — Interactive chat interface for database operations

What it needs from you

  • Node.js (v14 or higher) - MongoDB instance (local or remote) - Google Gemini API key

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.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
findDocumentsQuery documents in a collection
findOneDocumentFind a single document
insertOneDocumentInsert a document
insertManyDocumentsInsert multiple documents
updateOneDocumentUpdate a single document
updateManyDocumentsUpdate multiple documents
deleteOneDocumentDelete a document
deleteManyDocumentsDelete multiple documents
aggregateDocumentsRun aggregation pipelines
countDocumentsCount documents in a collection
listCollectionsList all collections
createCollectionCreate a new collection

Configuration

  • Node.js (v14 or higher) - MongoDB instance (local or remote) - Google Gemini API key
VariableDescriptionRequired
GEMINI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Mcpmongo to findDocuments.”
  • “Use Mcpmongo to findOneDocument.”
  • “Use Mcpmongo to insertOneDocument.”

Frequently asked questions

Mcpmongo is a tool that integrates MongoDB with the Model Context Protocol (MCP) to allow AI assistants, such as Google's Gemini, to interact with your database using natural language.