{"library":"mongodb-mcp","type":"library","category":null,"description":"A read-only Model Context Protocol (MCP) server for querying MongoDB databases, version 1.0.4, actively maintained. It exposes tools like list_databases, list_collections, list_indexes, run_aggregation, and run_aggregation_to_file via the MCP standard, allowing AI agents to inspect MongoDB schemas and run aggregation pipelines. Key differentiators: entirely read-only (rejects write stages $out, $merge), enforces a 50-second query timeout, and uses secondaryPreferred read preference for safety. Requires Node >=18 and a MongoDB connection string via MONGODB_URI environment variable. Published on npm, includes TypeScript types.","language":"javascript","status":"active","version":"1.0.4","tags":["javascript","mcp","mongodb","model-context-protocol","database","read-only","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-mcp","imports":["import { Server } from '@modelcontextprotocol/sdk/server/index.js'","import { MongoClient } from 'mongodb'","import { CallToolRequestSchema } from '@modelcontextprotocol/sdk/types.js'"]},{"cmd":"yarn add mongodb-mcp","imports":[]},{"cmd":"pnpm add mongodb-mcp","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"mongodb-mcp","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}