MCP
Platform MCP
The Platform MCP server gives your AI tools direct access to your Respan observability data — logs, traces, prompts, customers, and more.
Setup
API Key (Recommended)
OAuth
Use your Respan API key. Works with any MCP client.
Get your API key from platform.respan.ai, then add the config to your tool:
Restart your tool to load the MCP server.
Optional: whitelist specific tools
If you only want your MCP client to see a subset of tools, add the Respan-Enabled-Tools header with a comma-separated list of exact tool names.
If you omit this header, all Platform MCP tools are available.
Use exact MCP tool names. For example, setting Respan-Enabled-Tools: list_logs,list_traces exposes only those two tools to the client.
Enterprise
Enterprise users have a dedicated endpoint. Replace https://mcp.respan.ai/mcp with https://mcp.respan.ai/mcp/enterprise in any config above.
Available tools
Once connected, your AI tools can access these Platform MCP tools:
Logs
Try: “Show me the most expensive requests from the last hour” or “Find all failed requests for customer user_123”
Traces
Try: “Show me traces with errors in production” or “Get the span tree for trace xyz123”
Customers
Try: “Who are my top 10 customers by cost?” or “Show budget usage for user_abc”
Prompts
Try: “Show me all my prompts” or “Get the latest version of my customer-support prompt”
Experiments
Try: “List my recent experiments” or “Show me the spans for experiment exp_123”
Evaluators
Try: “Show me all evaluators” or “Run evaluator qa-score on dataset ds_123”
Datasets
Try: “Show me my datasets” or “Add these log IDs to dataset ds_123”
Troubleshooting
Source code
The Respan MCP server is open source: github.com/respanai/respan-mcp
Docs MCP
Give your AI coding tools access to Respan documentation. No API key needed.
Restart your tool to load the server.
Try: “How do I set up Respan tracing with LangGraph?” or “Show me the OpenAI SDK integration docs”