Query Contextual AI documentation in real-time from your favorite AI tools using the Model Context Protocol (MCP). Ask questions about our APIs, SDKs, Agent Composer, and more—without leaving your development environment.Documentation Index
Fetch the complete documentation index at: https://docs.contextual.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Our documentation is available as an MCP server, allowing AI applications to search and retrieve information directly. This means you can:- Ask questions about Contextual AI APIs and features while coding
- Get code examples from our documentation in context
- Search across all docs without switching browser tabs
MCP Server URL
Setup Instructions
Claude Desktop
- Navigate to Claude’s Connectors settings page
- Select Add custom connector
- Enter the details:
- Name:
Contextual AI Docs - URL:
https://docs.contextual.ai/mcp
- Name:
- Click Add
- During chat, use the attachments button (plus icon) to access the docs
Claude Code
Run this command in your terminal:Cursor
- Open the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows)
- Search for MCP: Open User Configuration
- Add the following to your
mcp.json:
- Restart Cursor
VS Code
Create a.vscode/mcp.json file in your project:
Usage Examples
Once connected, you can ask questions like:- “How do I create a datastore using the Python SDK?”
- “What are the parameters for the rerank API?”
- “Show me an example of Agent Composer YAML configuration”
- “How do I configure retrieval settings for my agent?”
Notes
- The MCP server provides access to all public documentation pages
- Multiple MCP servers can be connected simultaneously—context is only consumed when actively searched
- The AI tool automatically determines when to search based on your query
Related Resources
- Contextual AI MCP Server — Build your own RAG-powered MCP server with Contextual AI
- Python SDK Reference — Full SDK documentation
- API Reference — Complete API documentation