MCP.so
ログイン
サーバー

MongoDB MCP Server

@thinking-bzf

A Model Context Protocol (MCP) server that enables LLMs to connect MongoDB using mcp-go.

概要

What is MongoDB MCP Server?

A Model Context Protocol (MCP) server that enables LLMs to connect MongoDB using mcp-go. It acts as a bridge between the LLM and the MongoDB database, allowing you to perform CRUD operations using natural language.

How to use MongoDB MCP Server?

Copy the config.yml.example file to config.yml, modify it with your MongoDB and MCP server settings, then run the server using go run main.go. The server exposes tools for querying and managing collections, documents, and indexes.

Key features of MongoDB MCP Server

  • Perform CRUD operations via natural language
  • Query, count, and list MongoDB collections
  • Insert, update, and delete single documents
  • Create, drop, and list indexes
  • Supports Server-Sent Events (SSE) transport

Use cases of MongoDB MCP Server

  • Enable an LLM to query MongoDB collections with filters and projections
  • Let an LLM insert, update, or delete documents in a MongoDB database
  • Allow an LLM to manage indexes (create, drop, list) on MongoDB collections

FAQ from MongoDB MCP Server

How is MongoDB MCP Server configured?

Configuration is managed through a config.yml file with MongoDB connection details (host, port, user, password, database) and MCP server settings (name, version, base URL, address, SSE toggle).

What tools does MongoDB MCP Server provide?

It provides tools for find, count, listCollections, insertOne, updateOne, deleteOne, createIndex, dropIndex, and indexes.

Does MongoDB MCP Server support SSE?

Yes, SSE support is enabled by default (configurable via the sse field in config.yml).

What runtime does MongoDB MCP Server require?

The server is written in Go and is started with go run main.go. It uses the mcp-go library and the official MongoDB Go driver.

Can I run MongoDB MCP Server with DeepChat?

Yes, the README shows usage in DeepChat with a screenshot depicting integration.

「データベース」の他のコンテンツ