Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
Apache 2.0
9,526
730
  • Apple
  • Linux
package.json4.62 kB
{ "name": "mongodb-mcp-server", "description": "MongoDB Model Context Protocol Server", "version": "1.2.0", "type": "module", "mcpName": "io.github.mongodb-js/mongodb-mcp-server", "exports": { ".": { "import": { "types": "./dist/esm/lib.d.ts", "default": "./dist/esm/lib.js" }, "require": { "types": "./dist/cjs/lib.d.ts", "default": "./dist/cjs/lib.js" } } }, "main": "./dist/cjs/lib.js", "types": "./dist/cjs/lib.d.ts", "author": "MongoDB <info@mongodb.com>", "homepage": "https://github.com/mongodb-js/mongodb-mcp-server", "repository": { "url": "https://github.com/mongodb-js/mongodb-mcp-server.git" }, "bin": { "mongodb-mcp-server": "dist/esm/index.js" }, "publishConfig": { "access": "public" }, "files": [ "dist" ], "scripts": { "start": "node dist/index.js --transport http --loggers stderr mcp", "start:stdio": "node dist/index.js --transport stdio --loggers stderr mcp", "prepare": "npm run build", "build:clean": "rm -rf dist", "build:update-package-version": "tsx scripts/updatePackageVersion.ts", "build:esm": "tsc --project tsconfig.esm.json && chmod +x dist/esm/index.js", "build:cjs": "tsc --project tsconfig.cjs.json", "build:universal-package": "tsx scripts/createUniversalPackage.ts", "build": "npm run build:clean && concurrently \"npm run build:esm\" \"npm run build:cjs\" && npm run build:universal-package", "inspect": "npm run build && mcp-inspector -- dist/esm/index.js", "prettier": "prettier", "check": "concurrently \"npm run build\" \"npm run check:types\" \"npm run check:lint\" \"npm run check:format\" \"npm run check:dependencies\"", "check:lint": "eslint .", "check:dependencies": "knip --strict", "check:format": "prettier -c .", "check:types": "tsc --noEmit --project tsconfig.json", "fix": "npm run fix:lint && npm run reformat", "fix:lint": "eslint . --fix", "reformat": "prettier --write .", "generate": "./scripts/generate.sh && npm run generate:arguments", "generate:arguments": "tsx scripts/generateArguments.ts", "test": "vitest --project eslint-rules --project unit-and-integration --coverage", "pretest:accuracy": "npm run build", "test:accuracy": "sh ./scripts/accuracy/runAccuracyTests.sh", "test:long-running-tests": "vitest --project long-running-tests --coverage", "atlas:cleanup": "vitest --project atlas-cleanup" }, "license": "Apache-2.0", "devDependencies": { "@ai-sdk/azure": "^2.0.53", "@ai-sdk/google": "^2.0.23", "@ai-sdk/openai": "^2.0.52", "@eslint/js": "^9.34.0", "@modelcontextprotocol/inspector": "^0.16.5", "@mongodb-js/oidc-mock-provider": "^0.11.3", "@redocly/cli": "^2.0.8", "@types/express": "^5.0.3", "@types/node": "^24.5.2", "@types/proper-lockfile": "^4.1.4", "@types/semver": "^7.7.0", "@types/yargs-parser": "^21.0.3", "@typescript-eslint/parser": "^8.44.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/eslint-plugin": "^1.3.4", "concurrently": "^9.2.1", "duplexpair": "^1.0.2", "eslint": "^9.34.0", "eslint-config-prettier": "^10.1.8", "eslint-plugin-prettier": "^5.5.4", "globals": "^16.3.0", "knip": "^5.63.1", "mongodb": "^6.19.0", "mongodb-runner": "^5.9.2", "openapi-types": "^12.1.3", "openapi-typescript": "^7.9.1", "prettier": "^3.6.2", "proper-lockfile": "^4.1.2", "semver": "^7.7.2", "simple-git": "^3.28.0", "testcontainers": "^11.7.1", "tsx": "^4.20.5", "typescript": "^5.9.2", "typescript-eslint": "^8.41.0", "uuid": "^13.0.0", "vitest": "^3.2.4" }, "dependencies": { "@modelcontextprotocol/sdk": "^1.17.4", "@mongodb-js/device-id": "^0.3.1", "@mongodb-js/devtools-proxy-support": "^0.5.3", "@mongosh/arg-parser": "^3.19.0", "@mongosh/service-provider-node-driver": "^3.17.0", "ai": "^5.0.72", "bson": "^6.10.4", "express": "^5.1.0", "lru-cache": "^11.1.0", "mongodb-connection-string-url": "^3.0.2", "mongodb-log-writer": "^2.4.1", "mongodb-redact": "^1.2.0", "mongodb-schema": "^12.6.2", "node-fetch": "^3.3.2", "node-machine-id": "1.1.12", "oauth4webapi": "^3.8.0", "openapi-fetch": "^0.14.0", "ts-levenshtein": "^1.0.7", "voyage-ai-provider": "^2.0.0", "yargs-parser": "21.1.1", "zod": "^3.25.76" }, "engines": { "node": "^20.19.0 || ^22.12.0 || >= 23.0.0" }, "optionalDependencies": { "@mongodb-js/atlas-local": "^1.0.2", "kerberos": "^2.2.2" } }

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-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server