MCP

Access your Respan data and documentation from your AI coding tools.

Platform MCP

The Platform MCP server gives your AI tools direct access to your Respan observability data — logs, traces, prompts, customers, and more.

Setup

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.

$claude mcp add \
> --transport http \
> --header "Authorization: Bearer YOUR_RESPAN_API_KEY" \
> --header "Respan-Enabled-Tools: list_logs,get_log_detail,list_traces,get_trace_tree" \
> respan \
> https://mcp.respan.ai/mcp

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.

EndpointMCP URLAPI URL
Cloudhttps://mcp.respan.ai/mcphttps://api.respan.ai/api
Enterprisehttps://mcp.respan.ai/mcp/enterpriseYour enterprise base URL

Available tools

Once connected, your AI tools can access these Platform MCP tools:

Logs

ToolDescription
list_logsList and filter LLM request logs
get_log_detailGet complete details of a single log
create_logCreate a new log entry
get_spans_summaryGet aggregated metrics for log spans

Try: “Show me the most expensive requests from the last hour” or “Find all failed requests for customer user_123”

Traces

ToolDescription
list_tracesList and filter traces
get_trace_treeGet the full span tree of a trace
get_traces_summaryGet aggregated metrics for traces

Try: “Show me traces with errors in production” or “Get the span tree for trace xyz123”

Customers

ToolDescription
list_customersList customers with sorting and pagination
get_customer_detailGet customer details including budget usage

Try: “Who are my top 10 customers by cost?” or “Show budget usage for user_abc”

Prompts

ToolDescription
list_promptsList all prompts
get_prompt_detailGet prompt details
list_prompt_versionsList all versions of a prompt
get_prompt_version_detailGet a specific version
create_promptCreate a prompt shell
update_promptUpdate prompt metadata
create_prompt_versionCreate a new prompt version
update_prompt_versionUpdate an existing prompt version

Try: “Show me all my prompts” or “Get the latest version of my customer-support prompt”

Experiments

ToolDescription
list_experimentsList all experiments
get_experimentGet experiment details
create_experimentCreate a new experiment
list_experiment_spansList spans for an experiment
get_experiment_spanGet a single experiment span
update_experiment_spanUpdate an experiment span
get_experiment_spans_summaryGet aggregated experiment span metrics

Try: “List my recent experiments” or “Show me the spans for experiment exp_123”

Evaluators

ToolDescription
list_evaluatorsList all evaluators
get_evaluatorGet evaluator details
create_evaluatorCreate a new evaluator
update_evaluatorUpdate an evaluator
run_evaluatorRun an evaluator on a dataset or logs

Try: “Show me all evaluators” or “Run evaluator qa-score on dataset ds_123”

Datasets

ToolDescription
list_datasetsList all datasets
get_datasetGet dataset details
create_datasetCreate a new dataset
update_datasetUpdate a dataset
list_dataset_spansList spans in a dataset
create_dataset_spanCreate a dataset span
retrieve_dataset_spanRetrieve a dataset span
update_dataset_spanUpdate a dataset span
add_spans_to_datasetAdd existing spans to a dataset

Try: “Show me my datasets” or “Add these log IDs to dataset ds_123”

Troubleshooting

IssueFix
MCP server not showingCheck config file path, validate JSON, restart tool completely
OAuth failsTry API Key method instead. For Cursor, always use API Key.
JWT token expiredSign in again at mcp.respan.ai/login
Connection timeoutCheck internet. For enterprise, verify RESPAN_API_BASE_URL.

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.

$claude mcp add --transport http respan-docs https://mcp.respan.ai/mcp/docs

Restart your tool to load the server.

ToolDescription
search_docsSearch across all Respan documentation

Try: “How do I set up Respan tracing with LangGraph?” or “Show me the OpenAI SDK integration docs”