{"_id":"@mongodb-js/mongodb-mcp-server","_rev":"16-4b10fab58bcf35c7b78bb151108f2a35","name":"@mongodb-js/mongodb-mcp-server","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.0":{"name":"@mongodb-js/mongodb-mcp-server","version":"0.0.0","author":{"name":"MongoDB","email":"info@mongodb.com"},"license":"Apache-2.0","_id":"@mongodb-js/mongodb-mcp-server@0.0.0","maintainers":[{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"nbbeeken","email":"neal.beeken@mongodb.com"},{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"nirinchev","email":"irinchev@me.com"},{"name":"pearsb1","email":"bailey.pearson@gmail.com"}],"homepage":"https://github.com/mongodb-js/mongodb-mcp-server","bugs":{"url":"https://github.com/mongodb-js/mongodb-mcp-server/issues"},"bin":{"mongodb-mcp-server":"dist/index.js"},"dist":{"shasum":"d446b4f753148577d836ce32b0e35345f74e31ea","tarball":"https://registry.npmjs.org/@mongodb-js/mongodb-mcp-server/-/mongodb-mcp-server-0.0.0.tgz","fileCount":145,"integrity":"sha512-gnS38Bur45RJoIdjYyEubuSAlFSJtuGo+HnVeXX0ST1PhepTds0GrrQXQJZpmH1p0jkLZEC6d7V+IB16UKjq+w==","signatures":[{"sig":"MEYCIQC9GXt7w+I+mq/m2YL4UBY+ktK0D29zB42B+WwCBfGWwQIhANuBK3Lan2ise3K6N1LXmE2TpzyoVwHL5yeUaQrRiC0H","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":620449},"main":"dist/index.js","type":"module","engines":{"node":">=20.0.0"},"gitHead":"92860782dcf0b30fc6ec19ea37f83d6174d517ab","scripts":{"test":"jest","build":"npm run build:clean && npm run build:compile && npm run build:chmod","check":"npm run build && npm run check:lint && npm run check:format","inspect":"npm run build && mcp-inspector -- dist/index.js","prepare":"npm run build","generate":"./scripts/generate.sh","prettier":"prettier","reformat":"prettier --write .","check:lint":"eslint .","build:chmod":"chmod +x dist/index.js","build:clean":"rm -rf dist","check:format":"prettier -c .","build:compile":"tsc"},"_npmUser":{"name":"nirinchev","email":"irinchev@me.com"},"deprecated":"Package has been renamed to mongodb-mcp-server","repository":{"url":"git+https://github.com/mongodb-js/mongodb-mcp-server.git"},"_npmVersion":"10.9.0","description":"MongoDB Model Context Protocol Server","directories":{},"_nodeVersion":"23.1.0","dependencies":{"zod":"^3.24.2","bson":"^6.10.3","mongodb":"^6.15.0","yargs-parser":"^21.1.1","openapi-fetch":"^0.13.5","simple-oauth2":"^5.1.0","mongodb-redact":"^1.1.6","mongodb-schema":"^12.6.2","mongodb-log-writer":"^2.4.1","@mongodb-js/devtools-connect":"^3.7.2","@mongosh/service-provider-node-driver":"^3.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","jest":"^29.7.0","yaml":"^2.7.1","eslint":"^9.24.0","globals":"^16.0.0","ts-jest":"^29.3.1","prettier":"^3.5.3","@eslint/js":"^9.24.0","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.14.0","@redocly/cli":"^1.34.2","@jest/globals":"^29.7.0","openapi-types":"^12.1.3","@types/express":"^5.0.1","mongodb-runner":"^5.8.2","typescript-eslint":"^8.29.1","openapi-typescript":"^7.6.1","@types/yargs-parser":"^21.0.3","@types/simple-oauth2":"^5.0.7","jest-environment-node":"^29.7.0","eslint-config-prettier":"^10.1.1","@modelcontextprotocol/sdk":"^1.8.0","@modelcontextprotocol/inspector":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-mcp-server_0.0.0_1744384440412_0.7054199966928749","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@mongodb-js/mongodb-mcp-server","version":"0.0.1","author":{"name":"MongoDB","email":"info@mongodb.com"},"license":"Apache-2.0","_id":"@mongodb-js/mongodb-mcp-server@0.0.1","maintainers":[{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"nbbeeken","email":"neal.beeken@mongodb.com"},{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"nirinchev","email":"irinchev@me.com"},{"name":"pearsb1","email":"bailey.pearson@gmail.com"}],"homepage":"https://github.com/mongodb-js/mongodb-mcp-server","bugs":{"url":"https://github.com/mongodb-js/mongodb-mcp-server/issues"},"bin":{"mongodb-mcp-server":"dist/index.js"},"dist":{"shasum":"476b376bf327364591227f6b24864d57bf32c4ce","tarball":"https://registry.npmjs.org/@mongodb-js/mongodb-mcp-server/-/mongodb-mcp-server-0.0.1.tgz","fileCount":148,"integrity":"sha512-DPa6GrcSN1JDH9kghieYzt8XeBK/przC3DlfqsH3M1cklxSldub9QsYUJEmnoXAQgawC2RriyE7k+P8jHqqRBg==","signatures":[{"sig":"MEQCIB8H0IoiLoBY1X4tWbkuazMSBEjjSjCd3Srt/0GLOubnAiATlC3RsPEOzm9Lj5RfTqeQNbt6JSz08czSdGKs9XNr6A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":629170},"main":"dist/index.js","type":"module","engines":{"node":">=20.0.0"},"gitHead":"bbe20a53af72ae8cad27e3945c6d948042256dad","scripts":{"test":"jest","build":"npm run build:clean && npm run build:compile && npm run build:chmod","check":"npm run build && npm run check:lint && npm run check:format","inspect":"npm run build && mcp-inspector -- dist/index.js","prepare":"npm run build","generate":"./scripts/generate.sh","prettier":"prettier","reformat":"prettier --write .","check:lint":"eslint .","build:chmod":"chmod +x dist/index.js","build:clean":"rm -rf dist","check:format":"prettier -c .","build:compile":"tsc"},"_npmUser":{"name":"nirinchev","email":"irinchev@me.com"},"deprecated":"Package has been renamed to mongodb-mcp-server","repository":{"url":"git+https://github.com/mongodb-js/mongodb-mcp-server.git"},"_npmVersion":"10.9.2","description":"MongoDB Model Context Protocol Server","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.24.2","bson":"^6.10.3","mongodb":"^6.15.0","yargs-parser":"^21.1.1","openapi-fetch":"^0.13.5","simple-oauth2":"^5.1.0","mongodb-redact":"^1.1.6","mongodb-schema":"^12.6.2","mongodb-log-writer":"^2.4.1","@modelcontextprotocol/sdk":"^1.8.0","@mongodb-js/devtools-connect":"^3.7.2","@mongosh/service-provider-node-driver":"^3.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","jest":"^29.7.0","eslint":"^9.24.0","globals":"^16.0.0","ts-jest":"^29.3.1","prettier":"^3.5.3","@eslint/js":"^9.24.0","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.14.0","@redocly/cli":"^1.34.2","@jest/globals":"^29.7.0","openapi-types":"^12.1.3","mongodb-runner":"^5.8.2","typescript-eslint":"^8.29.1","openapi-typescript":"^7.6.1","@types/yargs-parser":"^21.0.3","@types/simple-oauth2":"^5.0.7","jest-environment-node":"^29.7.0","eslint-config-prettier":"^10.1.1","@modelcontextprotocol/inspector":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-mcp-server_0.0.1_1744386024706_0.7925580474684084","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@mongodb-js/mongodb-mcp-server","version":"0.0.2","author":{"name":"MongoDB","email":"info@mongodb.com"},"license":"Apache-2.0","_id":"@mongodb-js/mongodb-mcp-server@0.0.2","maintainers":[{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"nbbeeken","email":"neal.beeken@mongodb.com"},{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"nirinchev","email":"irinchev@me.com"},{"name":"pearsb1","email":"bailey.pearson@gmail.com"}],"homepage":"https://github.com/mongodb-js/mongodb-mcp-server","bugs":{"url":"https://github.com/mongodb-js/mongodb-mcp-server/issues"},"bin":{"mongodb-mcp-server":"dist/index.js"},"dist":{"shasum":"153148376441775abdd80d87ff9ecddf503970fc","tarball":"https://registry.npmjs.org/@mongodb-js/mongodb-mcp-server/-/mongodb-mcp-server-0.0.2.tgz","fileCount":149,"integrity":"sha512-WDE5h3WfnjK8EKmo73LYNcQ7v1B6lV5BvIbSnYird5bgW8Fbaxd+Y3JRAa8qQPHGbPZk2dVmKdHVwQlL/iq/Ug==","signatures":[{"sig":"MEUCIQCvb5gtoqDChomB+GS4oAxncr3Y5Z72p8cqUoQbxxZlsgIgPLarXM2IN8yIfRub6gjq6xc3J5KhKywmiB8xvVF23AA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":632641},"main":"dist/index.js","type":"module","engines":{"node":">=20.0.0"},"gitHead":"079061ae4e501c7ddbfbc3bda3630aa369b4f003","scripts":{"test":"jest","build":"npm run build:clean && npm run build:compile && npm run build:chmod","check":"npm run build && npm run check:lint && npm run check:format","inspect":"npm run build && mcp-inspector -- dist/index.js","prepare":"npm run build","generate":"./scripts/generate.sh","prettier":"prettier","reformat":"prettier --write .","check:lint":"eslint .","build:chmod":"chmod +x dist/index.js","build:clean":"rm -rf dist","check:format":"prettier -c .","build:compile":"tsc"},"_npmUser":{"name":"nirinchev","email":"irinchev@me.com"},"deprecated":"Package has been renamed to mongodb-mcp-server","repository":{"url":"git+https://github.com/mongodb-js/mongodb-mcp-server.git"},"_npmVersion":"10.9.2","description":"MongoDB Model Context Protocol Server","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.24.2","bson":"^6.10.3","mongodb":"^6.15.0","yargs-parser":"^21.1.1","openapi-fetch":"^0.13.5","simple-oauth2":"^5.1.0","mongodb-redact":"^1.1.6","mongodb-schema":"^12.6.2","mongodb-log-writer":"^2.4.1","@modelcontextprotocol/sdk":"^1.8.0","@mongodb-js/devtools-connect":"^3.7.2","@mongosh/service-provider-node-driver":"^3.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","jest":"^29.7.0","eslint":"^9.24.0","globals":"^16.0.0","ts-jest":"^29.3.1","prettier":"^3.5.3","@eslint/js":"^9.24.0","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.14.0","@redocly/cli":"^1.34.2","@jest/globals":"^29.7.0","openapi-types":"^12.1.3","mongodb-runner":"^5.8.2","typescript-eslint":"^8.29.1","openapi-typescript":"^7.6.1","@types/yargs-parser":"^21.0.3","@types/simple-oauth2":"^5.0.7","jest-environment-node":"^29.7.0","eslint-config-prettier":"^10.1.1","@modelcontextprotocol/inspector":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-mcp-server_0.0.2_1744390915039_0.9767751905015964","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@mongodb-js/mongodb-mcp-server","version":"0.0.3","author":{"name":"MongoDB","email":"info@mongodb.com"},"license":"Apache-2.0","_id":"@mongodb-js/mongodb-mcp-server@0.0.3","maintainers":[{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"nbbeeken","email":"neal.beeken@mongodb.com"},{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"nirinchev","email":"irinchev@me.com"},{"name":"pearsb1","email":"bailey.pearson@gmail.com"}],"homepage":"https://github.com/mongodb-js/mongodb-mcp-server","bugs":{"url":"https://github.com/mongodb-js/mongodb-mcp-server/issues"},"bin":{"mongodb-mcp-server":"dist/index.js"},"dist":{"shasum":"0ca60a107b12e017379bc38c53330e90a3010e55","tarball":"https://registry.npmjs.org/@mongodb-js/mongodb-mcp-server/-/mongodb-mcp-server-0.0.3.tgz","fileCount":148,"integrity":"sha512-2gdrexRBhqJwxFlDtUzYfkhcdAnNwaV1VXJmp31lhlpkcp9MSwFqU7RwO60HDkhwn8VnGrJLvndB8f1RBrLXQQ==","signatures":[{"sig":"MEUCIQCw0+ui4MsPr4gdvtlJ5KD6eK082LbbNLT91Rla3YVFLgIgWwNA8zpboVPSa1XN0T8ZSAw7oIajiklEL1MhZS38sjQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":631622},"main":"dist/index.js","type":"module","engines":{"node":">=20.0.0"},"gitHead":"5b6c803a81601e59ffb4adb24a7696a4f54f49da","scripts":{"test":"jest","build":"npm run build:clean && npm run build:compile && npm run build:chmod","check":"npm run build && npm run check:lint && npm run check:format","inspect":"npm run build && mcp-inspector -- dist/index.js","prepare":"npm run build","generate":"./scripts/generate.sh","prettier":"prettier","reformat":"prettier --write .","check:lint":"eslint .","build:chmod":"chmod +x dist/index.js","build:clean":"rm -rf dist","check:format":"prettier -c .","build:compile":"tsc"},"_npmUser":{"name":"nirinchev","email":"irinchev@me.com"},"deprecated":"Package has been renamed to mongodb-mcp-server","repository":{"url":"git+https://github.com/mongodb-js/mongodb-mcp-server.git"},"_npmVersion":"10.9.2","description":"MongoDB Model Context Protocol Server","directories":{},"_nodeVersion":"22.14.0","dependencies":{"zod":"^3.24.2","bson":"^6.10.3","mongodb":"^6.15.0","yargs-parser":"^21.1.1","openapi-fetch":"^0.13.5","simple-oauth2":"^5.1.0","mongodb-redact":"^1.1.6","mongodb-schema":"^12.6.2","mongodb-log-writer":"^2.4.1","@modelcontextprotocol/sdk":"^1.8.0","@mongodb-js/devtools-connect":"^3.7.2","@mongosh/service-provider-node-driver":"^3.6.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.3","jest":"^29.7.0","eslint":"^9.24.0","globals":"^16.0.0","ts-jest":"^29.3.1","prettier":"^3.5.3","@eslint/js":"^9.24.0","typescript":"^5.8.2","@types/jest":"^29.5.14","@types/node":"^22.14.0","@redocly/cli":"^1.34.2","@jest/globals":"^29.7.0","openapi-types":"^12.1.3","mongodb-runner":"^5.8.2","typescript-eslint":"^8.29.1","openapi-typescript":"^7.6.1","@types/yargs-parser":"^21.0.3","@types/simple-oauth2":"^5.0.7","jest-environment-node":"^29.7.0","eslint-config-prettier":"^10.1.1","@modelcontextprotocol/inspector":"^0.8.2"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-mcp-server_0.0.3_1744391630977_0.7264612975776215","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-04-11T15:14:00.304Z","modified":"2026-07-15T15:34:57.750Z","0.0.0":"2025-04-11T15:14:00.597Z","0.0.1":"2025-04-11T15:40:25.026Z","0.0.2":"2025-04-11T17:01:55.356Z","0.0.3":"2025-04-11T17:13:51.306Z"},"bugs":{"url":"https://github.com/mongodb-js/mongodb-mcp-server/issues"},"author":{"name":"MongoDB","email":"info@mongodb.com"},"license":"Apache-2.0","homepage":"https://github.com/mongodb-js/mongodb-mcp-server","repository":{"url":"git+https://github.com/mongodb-js/mongodb-mcp-server.git"},"description":"MongoDB Model Context Protocol Server","maintainers":[{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"devtools-npm-user@mongodb.com","name":"devtools-npm-user"}],"readme":"# Atlas MCP Server\n\nA Model Context Protocol server for interacting with MongoDB Atlas. This project implements a Model Context Protocol (MCP) server enabling AI assistants to interact with MongoDB Atlas resources through natural language.\n\n> [!CAUTION]\n> Do not use this in production. This is a work in progress and is not intended for production use. It is meant for demonstration purposes only.\n\n## 📚 Table of Contents\n\n- [🚀 Getting Started](#getting-started)\n  - [Prerequisites](#prerequisites)\n  - [Installation](#installation)\n    - [VSCode](#vscode)\n    - [Claude Desktop](#claude)\n- [🛠️ Supported Tools](#supported-tools)\n  - [Tool List](#tool-list)\n- [⚙️ Configuration](#configuration)\n  - [Configuration Options](#configuration-options)\n  - [Atlas API Access](#atlas-api-access)\n  - [Configuration Methods](#configuration-methods)\n- [👩‍💻 Client Integration](#client-integration)\n  - [VSCode](#vscode)\n  - [Claude](#claude)\n- [🤝 Contributing](#contributing)\n\n## Prerequisites\n\n- Node.js (v20 or later)\n- MongoDB Atlas account\n\n## Installation\n\n### VSCode\n\nPrerequisites:\n\n- Node.js v20.x\n\nStep 1: Add the mcp server to VSCode configuration\n\n- Press `Cmd + Shift + P` and type `MCP: Add MCP Server` and select it.\n- Select command (Stdio).\n- Input command `npx -y @mongodb-js/mongodb-mcp-server`.\n- Choose between user / workspace\n- Add arguments to the file\n\nNote: the file should look like:\n\n```\n{\n    \"servers\": {\n        \"MongoDB\": {\n            \"type\": \"stdio\",\n            \"command\": \"npx\",\n            \"args\": [\n                \"-y\",\n                \"@mongodb-js/mongodb-mcp-server\"\n            ]\n        }\n    }\n}\n```\n\nNotes: You can configure the server with atlas access, make sure to follow configuration section for more details.\n\nStep 2: Try talking to github copilot\n\n- Can you connect to my mongodb instance?\n\n### Claude Desktop\n\nStep 1: Install claude and login\n\nNote: follow instructions at https://claude.ai/download\n\nStep 2: Launch Claude Settings -> Developer -> Edit Config\n\nPaste the mcp server configuration into the file\n\n```json\n{\n  \"mcpServers\": {\n    \"MongoDB\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@mongodb-js/mongodb-mcp-server\"]\n    }\n  }\n}\n```\n\nStep 3: Close and Relaunch Claude Desktop and click on the hammer icon, the MongoDB MCP server should be detected.\n\nYou may experiment asking `Can you connect to my mongodb instance?`.\n\n## 🛠️ Supported Tools\n\n### Tool List\n\n#### MongoDB Atlas Tools\n\n- `atlas-list-clusters` - Lists MongoDB Atlas clusters\n- `atlas-list-projects` - Lists MongoDB Atlas projects\n- `atlas-inspect-cluster` - Inspect a specific MongoDB Atlas cluster\n- `atlas-create-free-cluster` - Create a free MongoDB Atlas cluster\n- `atlas-create-access-list` - Configure IP/CIDR access list for MongoDB Atlas clusters\n- `atlas-inspect-access-list` - Inspect IP/CIDR ranges with access to MongoDB Atlas clusters\n- `atlas-list-db-users` - List MongoDB Atlas database users\n- `atlas-create-db-user` - List MongoDB Atlas database users\n\n#### MongoDB Database Tools\n\n- `connect` - Connect to a MongoDB instance\n- `find` - Run a find query against a MongoDB collection\n- `aggregate` - Run an aggregation against a MongoDB collection\n- `count` - Get the number of documents in a MongoDB collection\n- `insert-one` - Insert a single document into a MongoDB collection\n- `insert-many` - Insert multiple documents into a MongoDB collection\n- `create-index` - Create an index for a MongoDB collection\n- `update-one` - Update a single document in a MongoDB collection\n- `update-many` - Update multiple documents in a MongoDB collection\n- `rename-collection` - Rename a MongoDB collection\n- `delete-one` - Delete a single document from a MongoDB collection\n- `delete-many` - Delete multiple documents from a MongoDB collection\n- `drop-collection` - Remove a collection from a MongoDB database\n- `drop-database` - Remove a MongoDB database\n- `list-databases` - List all databases for a MongoDB connection\n- `list-collections` - List all collections for a given database\n- `collection-indexes` - Describe the indexes for a collection\n- `collection-schema` - Describe the schema for a collection\n- `collection-storage-size` - Get the size of a collection in MB\n- `db-stats` - Return statistics about a MongoDB database\n\n## Configuration\n\nThe MongoDB MCP Server can be configured using multiple methods, with the following precedence (highest to lowest):\n\n1. Command-line arguments\n2. Environment variables\n\n### Configuration Options\n\n| Option             | Description                                                                                                           |\n| ------------------ | --------------------------------------------------------------------------------------------------------------------- |\n| `apiClientId`      | Atlas API client ID for authentication                                                                                |\n| `apiClientSecret`  | Atlas API client secret for authentication                                                                            |\n| `connectionString` | MongoDB connection string for direct database connections (optional users may choose to inform it on every tool call) |\n| `logPath`          | Folder to store logs                                                                                                  |\n\n**Default Log Path:**\n\n- Windows: `%LOCALAPPDATA%\\mongodb\\mongodb-mcp\\.app-logs`\n- macOS/Linux: `~/.mongodb/mongodb-mcp/.app-logs`\n\n### Atlas API Access\n\nTo use the Atlas API tools, you'll need to create a service account in MongoDB Atlas:\n\n1. **Create a Service Account:**\n\n   - Log in to MongoDB Atlas at [cloud.mongodb.com](https://cloud.mongodb.com)\n   - Navigate to Access Manager > Organization Access\n   - Click Add New > Applications > Service Accounts\n   - Enter name, description and expiration for your service account (e.g., \"MCP, MCP Server Access, 7 days\")\n   - Select appropriate permissions (for full access, use Organization Owner)\n   - Click \"Create\"\n\n2. **Save Client Credentials:**\n\n   - After creation, you'll be shown the Client ID and Client Secret\n   - **Important:** Copy and save the Client Secret immediately as it won't be displayed again\n\n3. **Add Access List Entry (Optional but recommended):**\n\n   - Add your IP address to the API access list\n\n4. **Configure the MCP Server:**\n   - Use one of the configuration methods below to set your `apiClientId` and `apiClientSecret`\n\n### Configuration Methods\n\n#### Environment Variables\n\nSet environment variables with the prefix `MDB_MCP_` followed by the option name in uppercase with underscores:\n\n```shell\n# Set Atlas API credentials\nexport MDB_MCP_API_CLIENT_ID=\"your-atlas-client-id\"\nexport MDB_MCP_API_CLIENT_SECRET=\"your-atlas-client-secret\"\n\n# Set a custom MongoDB connection string\nexport MDB_MCP_CONNECTION_STRING=\"mongodb+srv://username:password@cluster.mongodb.net/myDatabase\"\n\nexport MDB_MCP_LOG_PATH=\"/path/to/logs\"\n```\n\n#### Command-Line Arguments\n\nPass configuration options as command-line arguments when starting the server:\n\n```shell\nnpx -y @mongodb-js/mongodb-mcp-server --apiClientId=\"your-atlas-client-id\" --apiClientSecret=\"your-atlas-client-secret\" --connectionString=\"mongodb+srv://username:password@cluster.mongodb.net/myDatabase\" --logPath=/path/to/logs\n```\n\n## 🤝 Contributing\n\nInterested in contributing? Great! Please check our [Contributing Guide](CONTRIBUTING.md) for guidelines on code contributions, standards, adding new tools, and troubleshooting information.\n","readmeFilename":"README.md"}