{"id":45374,"library":"mcp-mongodb-atlas","title":"MCP MongoDB Atlas Server","description":"An MCP (Model Context Protocol) server for managing MongoDB Atlas projects, providing tools to create clusters, manage users, configure network access, retrieve connection strings, and list projects/clusters. Version 0.1.10 is the latest stable release, actively maintained by MongoDB. It differentiates from direct Atlas API usage by offering a standardized MCP interface compatible with AI assistants like Claude, Cline, and Cursor. The package includes TypeScript type definitions and supports both environment variable and command-line argument authentication.","status":"active","version":"0.1.10","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","mongodb","atlas","mcp","model-context-protocol","ai","llm","typescript"],"install":[{"cmd":"npm install mcp-mongodb-atlas","lang":"bash","label":"npm"},{"cmd":"yarn add mcp-mongodb-atlas","lang":"bash","label":"yarn"},{"cmd":"pnpm add mcp-mongodb-atlas","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core MCP server framework for tool registration and transport","package":"@modelcontextprotocol/sdk","optional":false},{"reason":"Official MongoDB Atlas API client for REST interactions","package":"mongodb-atlas-api-client","optional":false}],"imports":[{"note":"This package is primarily a CLI tool; programmatic usage imports the server class. ESM-only since v0.1.0.","wrong":"const mcpMongodbAtlas = require('mcp-mongodb-atlas');","symbol":"default","correct":"import mcpMongodbAtlas from 'mcp-mongodb-atlas'; or run via CLI: npx mcp-mongodb-atlas"},{"note":"Named export for the main server class.","wrong":"const AtlasMCP = require('mcp-mongodb-atlas').AtlasMCP;","symbol":"AtlasMCP","correct":"import { AtlasMCP } from 'mcp-mongodb-atlas';"},{"note":"TypeScript users should use type import for enums/types to avoid runtime overhead.","wrong":null,"symbol":"ToolName type","correct":"import type { ToolName } from 'mcp-mongodb-atlas';"}],"quickstart":{"code":"// 1. Install\nnpm install mcp-mongodb-atlas\n\n// 2. Set environment variables\nexport ATLAS_PUBLIC_KEY='your-public-key'\nexport ATLAS_PRIVATE_KEY='your-private-key'\n\n// 3. Run the MCP server\nnpx mcp-mongodb-atlas\n\n// 4. In another terminal, test with MCP inspector\nnpx @modelcontextprotocol/inspector npx mcp-mongodb-atlas\n\n// 5. Or use with Claude Desktop config:\n// ~/Library/Application Support/Claude/claude_desktop_config.json\n// {\n//   \"mcpServers\": {\n//     \"atlas\": {\n//       \"command\": \"npx\",\n//       \"args\": [\"mcp-mongodb-atlas\"],\n//       \"env\": {\n//         \"ATLAS_PUBLIC_KEY\": \"your-public-key\",\n//         \"ATLAS_PRIVATE_KEY\": \"your-private-key\"\n//       }\n//     }\n//   }\n// }","lang":"typescript","description":"Shows installation, environment variable setup, CLI invocation, and integration with MCP inspector or Claude Desktop."},"warnings":[{"fix":"Upgrade Node.js to v16 or later.","message":"Package requires Node.js >=16.0.0. Older versions will fail to run.","severity":"breaking","affected_versions":"<16.0.0"},{"fix":"Ensure API key has 'Project Owner' role at minimum for cluster creation.","message":"API keys must have appropriate Atlas permissions (Project Owner or Org Owner) for cluster operations; insufficient permissions cause silent failures.","severity":"gotcha","affected_versions":"all"},{"fix":"Use ATLAS_PUBLIC_KEY and ATLAS_PRIVATE_KEY environment variables instead of command-line arguments.","message":"Passing API keys as CLI arguments is supported but deprecated in favor of environment variables for security.","severity":"deprecated","affected_versions":"<=0.1.10"}],"env_vars":null,"search_vec":"'0.1.10':33 'access':25 'activ':39 'ai':58,90 'api':48 'argument':80 'assist':59 'atlas':3,14,47,84 'authent':81 'claud':61 'cline':62 'cluster':20 'command':78 'command-lin':77 'compat':56 'configur':23 'connect':27 'context':8,88 'creat':19 'cursor':64 'definit':70 'differenti':44 'direct':46 'environ':74 'includ':67 'interfac':55 'javascript':82 'latest':36 'like':60 'line':79 'list':30 'llm':91 'maintain':40 'manag':12,21 'mcp':1,6,54,85 'model':7,87 'model-context-protocol':86 'mongodb':2,13,42,83 'network':24 'offer':51 'packag':66 'project':15 'projects/clusters':31 'protocol':9,89 'provid':16 'releas':38 'retriev':26 'server':4,10 'stabl':37 'standard':53 'string':28 'support':72 'tool':17 'type':69 'typescript':68,92 'usag':49 'user':22 'variabl':75 'version':32","created_at":"2026-06-07T12:54:42.815290+00:00","updated_at":"2026-06-07T12:54:42.815290+00:00","problems":[{"fix":"Run 'npx mcp-mongodb-atlas' instead of bare command, or install with 'npm install -g mcp-mongodb-atlas'.","cause":"Package not installed globally or module path not resolved.","error":"Error: Cannot find module 'mcp-mongodb-atlas'"},{"fix":"Use 'import { AtlasMCP } from 'mcp-mongodb-atlas'' or run via CLI; avoid 'require'.","cause":"Wrong import path or CommonJS require() used instead of ESM import.","error":"TypeError: Cannot read properties of undefined (reading 'MCP')"},{"fix":"Set ATLAS_PUBLIC_KEY and ATLAS_PRIVATE_KEY environment variables, or pass them as CLI arguments.","cause":"Missing environment variables or CLI arguments.","error":"Error: ATLAS_PUBLIC_KEY and ATLAS_PRIVATE_KEY must be provided"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"mcp-mongodb-atlas","openapi_spec":null,"status_page":null,"smithery":null,"categories":["database","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}