Skip to Content
Launching the open-source gateway

MCP

Connect your AI tool to Respan logs, traces, prompts, and monitors.

Connect Respan to your AI tool to investigate requests and traces, manage prompts, and configure monitors.

Connect your AI tool

Add https://mcp.respan.ai/mcp and sign in with your Respan account.

In Claude on the web or Claude Desktop:

  1. Go to Customize › Connectors and click Add.
  2. Hover over Custom and select Web.
  3. Name it Respan, enter https://mcp.respan.ai/mcp, and click Continue.
  4. Keep the detected sign-in settings, click Add, and sign in to Respan.
  5. In a chat, click +, hover over Connectors, and turn on Respan.

Try a query

Ask your agent:

  • “Show me the 10 most expensive requests from the last hour.”
  • “Which behaviors fired most this week, and on which models?”
  • “What are my top errors today? Tell me more about the first one.”
  • “Deploy the current draft of my customer-support prompt.”

Use an API key instead

Use an API key for scripts, CI, or clients without OAuth. A key only reaches the project it was created in, so the agent can’t switch organizations.

Create an API key

In the platform , go to Gateway › API keys and click New key. Keep Read enabled. Enable Write only if the agent should change data.

Click Create, then Copy, and save the key:

export RESPAN_API_KEY="your-respan-api-key"

Add the server with the key

Send the key as a bearer token.

claude mcp add --transport http --scope user respan https://mcp.respan.ai/mcp \ --header "Authorization: Bearer $RESPAN_API_KEY"

Tool categories

CategoryUse it to
Logs and tracesFind requests and inspect complete runs.
Behaviors and errorsInvestigate flagged answers, error groups, and incidents.
MetricsCompare cost, latency, tokens, and usage.
PromptsEdit, version, and deploy prompts.
MonitorsConfigure alerts and inspect delivered notifications.
WorkspaceList and switch organizations with OAuth.

Behavior queries default to whole traces. Ask for individual spans when investigating gateway requests.

Limit the tools

Add Respan-Enabled-Tools to expose only the tools you need. For read-only logs and traces:

claude mcp add --transport http --scope user respan https://mcp.respan.ai/mcp \ --header "Authorization: Bearer $RESPAN_API_KEY" \ --header "Respan-Enabled-Tools: log_list,log_get,trace_list,trace_get"

API keys are limited to their project. Switching organizations and changing behavior settings require OAuth.

Respan Enterprise

Replace the server URL with https://mcp.respan.ai/mcp/enterprise.

Docs MCP

To search the documentation without accessing project data, add the public docs server. No sign-in is required.

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

For other clients, use https://mcp.respan.ai/mcp/docs with no authentication headers.

Troubleshooting

ProblemFix
No sign-in promptRemove the Authorization header for OAuth. In Cursor, include the auth block above.
Authentication errorSign in again, or check that your API key has Read access.
Wrong project’s dataWith OAuth, ask the agent to switch organizations. With an API key, use a key from the intended project.

Use the same tools from the terminal

Use the Respan CLI:

respan tools list --json respan tools call log_list --input '{"page_size":5,"environment":"prod"}'