MCP.so
登录

MongoDB MCP Server

@jonfreeland

关于 MongoDB MCP Server

MongoDB MCP Server

基本信息

分类

数据库

许可证

MIT

运行时

node

传输方式

stdio

发布者

jonfreeland

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MongoDB MCP Server?

A Model Context Protocol server that provides read-only access to MongoDB databases through standardized MCP tools and resources, enabling AI assistants to directly query and analyze MongoDB data without write access.

How to use MongoDB MCP Server?

Build from source with npm install and npm run build, then configure the server in Claude Desktop, Claude Web (via MCP Chrome extension), or Claude Code by specifying the built index.js path and the required MONGODB_URI environment variable. Optionally set MONGODB_DEFAULT_DATABASE for a default database.

Key features of MongoDB MCP Server

  • List databases and collections
  • Infer collection schemas from sample documents
  • Execute MongoDB queries with filtering, projection, sorting, and limiting
  • Run read-only aggregation pipelines with safety validation
  • Perform full-text search and geospatial queries
  • Export query results as JSON or CSV formats

Use cases of MongoDB MCP Server

  • Let an AI assistant explore and query a production MongoDB database safely.
  • Analyze collection statistics and index usage to optimize performance.
  • Retrieve sample documents or distinct values for data profiling.
  • Run read-only aggregation pipelines for reporting without write risk.

FAQ from MongoDB MCP Server

What data does MongoDB MCP Server access?

It connects to any MongoDB instance specified by the MONGODB_URI environment variable and provides read-only access to databases and collections.

How is write protection enforced?

The server is designed as read-only by design, and includes safety validation that prevents write operations in aggregation pipelines.

What are the runtime requirements?

Node.js for building and running, network access to the MongoDB server, and appropriate read permissions on target databases.

How do I debug the server?

Use the MCP Inspector by running npm run inspector, which provides a URL for debugging tools.

Is authentication supported?

Yes, authentication credentials can be included in the MONGODB_URI connection string. It is recommended to use a MongoDB user with read-only permissions.

评论

数据库 分类下的更多 MCP 服务器