MongoDB Atlas MCP Server
OfficialMongoDB Atlas MCP 服务器
用于管理 MongoDB Atlas 项目的 MCP(模型上下文协议)服务器。此软件包提供了通过 MCP 接口创建和管理 MongoDB Atlas 集群、用户和网络访问的工具。
演示视频

观看演示视频,了解 MongoDB Atlas MCP Server 的实际运行情况。
Related MCP server: MongoDB MCP Server
特征
MCP 工具
create_atlas_cluster- 在现有项目中创建一个新的 MongoDB Atlas 集群setup_atlas_network_access- 为 Atlas 项目配置网络访问create_atlas_user- 创建具有 atlasAdmin 角色的新数据库用户get_atlas_connection_strings- 检索集群的连接字符串list_atlas_projects- 列出所有可使用提供的 API 密钥访问的 Atlas 项目list_atlas_clusters- 列出特定 Atlas 项目中的所有集群
安装
npm install mcp-mongodb-atlas用法
作为命令行工具
您可以直接从命令行运行 Atlas 项目管理器:
# Using environment variables
export ATLAS_PUBLIC_KEY="your-public-key"
export ATLAS_PRIVATE_KEY="your-private-key"
npx mcp-mongodb-atlas
# Or passing keys as arguments
npx mcp-mongodb-atlas "your-public-key" "your-private-key"使用 Cline(VSCode 扩展)
要在 VSCode 中与 Cline 一起使用,请将服务器配置添加到您的 MCP 设置文件中:
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
},
"disabled": false,
"autoApprove": []
}
}
}MCP 设置文件位于:
macOS:
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.jsonWindows:
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.jsonLinux:
~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
使用光标
要与 Cursor 一起使用,请转到设置中的“Cursor 设置”>“MCP”,然后添加具有以下配置的新服务器:
名称:
atlas(或您喜欢的任何名称)命令:
npx mcp-mongodb-atlas参数:提供您的 API 密钥作为参数
## Suggested Command
npx mcp-mongodb-atlas <public_key> <private_key>较新版本可以使用以下命令设置~/.cursor/mcp.json文件:
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
},
"disabled": false,
"autoApprove": []
}
}
}环境变量(可选):
ATLAS_PUBLIC_KEY:您的 MongoDB Atlas 公钥ATLAS_PRIVATE_KEY:您的 MongoDB Atlas 私钥
使用 Claude Desktop
要与 Claude Desktop 一起使用,请添加服务器配置:
在 macOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"atlas": {
"command": "npx",
"args": ["mcp-mongodb-atlas"],
"env": {
"ATLAS_PUBLIC_KEY": "your-public-key",
"ATLAS_PRIVATE_KEY": "your-private-key"
}
}
}
}API 密钥
您需要 MongoDB Atlas API 密钥才能使用此工具。要创建 API 密钥,请执行以下操作:
登录您的 MongoDB Atlas 帐户
转到访问管理器 > API 密钥
创建具有适当权限的新 API 密钥
保存公钥和私钥
发展
克隆存储库并安装依赖项:
git clone https://github.com/mongodb-developer/mcp-mongodb-atlas.git
cd mcp-mongodb-atlas
npm install构建项目:
npm run build对于使用自动重建的开发:
npm run watch调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们建议使用 MCP Inspector:
npm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
执照
麻省理工学院
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables large language models to interact directly with MongoDB databases, allowing them to query collections, inspect schemas, and manage data through natural language.27MIT

MongoDB MCP Serverofficial
AlicenseBqualityAmaintenanceA Model Context Protocol server that enables AI assistants to interact with MongoDB Atlas resources through natural language, supporting database operations and Atlas management functions.2874,6851,108Apache 2.0- AlicenseAqualityBmaintenanceA Model Context Protocol server that enables interaction with MongoDB databases and MongoDB Atlas, allowing users to perform database operations and manage Atlas resources through natural language.2274,685Apache 2.0
- AlicenseCqualityDmaintenanceA Model Context Protocol server that provides access to the MongoDB Atlas API, enabling management of clusters, users, projects, backups, and more through MCP tools.76153MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
An MCP server that integrates with Discord to provide AI-powered features.
Cloud-hosted MCP server for durable AI memory
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-developer/mcp-mongodb-atlas'
If you have feedback or need assistance with the MCP directory API, please join our Discord server