For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

Build with AI

MongoDB provides tools and integrations to help you build effective AI-powered applications. Use the resources on this page to connect LLMs and AI agents with context about MongoDB features and best practices.

Give your LLM or AI agent context to leverage MongoDB features more effectively.

  • MongoDB MCP Server: The MongoDB MCP Server connects your AI application to MongoDB features and documentation. You can also query MongoDB clusters using natural language from AI clients that support MCP.

  • MongoDB Agent Skills: MongoDB Agent Skills are pre-built, reusable instructions that teach AI coding agents how to perform common MongoDB tasks—from setting up connections and designing schemas to writing queries and optimizing performance. The following skills are available when you use the MongoDB plugins for Claude, Cursor, and Gemini.

Use the MongoDB MCP Server to access documentation and ask questions.

The MongoDB MCP Server includes tools to search MongoDB documentation using natural language:

  • list-knowledge-sources: Lists available MongoDB documentation sources and their versions. For example, manual, drivers, Atlas.

  • search-knowledge: Searches the MongoDB documentation knowledge base with a natural language query and returns relevant content chunks with links.

Example

Ask your AI agent:

"How do I create a compound index in MongoDB?"

The agent uses the search-knowledge tool to find relevant documentation and returns text excerpts with URLs to the full pages.

You can optionally filter searches by specific documentation sources or versions.