Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Getting started
Respan provides an MCP server that gives your AI tools direct access to your observability data. The server supports both HTTP streamable (for hosted deployments) and stdio (for local use).Installation
- OAuth (Recommended)
- JWT Token
- API Key
- Local Stdio
- Private HTTP (Teams)
Connect directly using your AI tool’s built-in OAuth support. Your tool will open a browser window for you to sign in — no keys or tokens to manage.
Authentication
| Method | How it works | Best For |
|---|---|---|
| OAuth | Tool opens browser for sign-in | Claude Code, Claude Desktop, Codex |
| JWT Token | Sign in at mcp.respan.ai/login, copy token | Fallback when OAuth fails |
| API Key | Use key from platform.respan.ai | Programmatic access, scripts |
| Local Stdio | RESPAN_API_KEY env var | Personal development, offline use |
| Private HTTP | Vercel environment variable | Teams, shared access |
Enterprise configuration
Enterprise users have a dedicated MCP endpoint that automatically routes to the enterprise API (endpoint.respan.ai). Use https://mcp.respan.ai/mcp/enterprise instead of https://mcp.respan.ai/mcp.
- OAuth
- JWT Token
- API Key
- Local Stdio
Connect using OAuth with the enterprise endpoint. Your tool will open a browser window for enterprise sign-in.
| Endpoint | MCP URL | API URL |
|---|---|---|
| Default (Cloud) | https://mcp.respan.ai/mcp | https://api.respan.ai/api |
| Enterprise | https://mcp.respan.ai/mcp/enterprise | https://endpoint.respan.ai/api |
Available tools
Once connected, your AI tools have access to the following Respan features.Logs
| Tool | Description |
|---|---|
list_logs | List and filter LLM request logs with powerful query capabilities |
get_log_detail | Retrieve complete details of a single log by unique ID |
- “Show me the most expensive requests from the last hour”
- “Find all failed requests for customer user_123”
- “List logs where latency > 5 seconds”
Traces
| Tool | Description |
|---|---|
list_traces | List and filter traces with sorting and pagination |
get_trace_tree | Retrieve complete hierarchical span tree of a trace |
- “Show me traces with errors in production”
- “Get the span tree for trace xyz123”
- “Find traces that cost more than $0.10”
Customers
| Tool | Description |
|---|---|
list_customers | List customers with pagination and sorting |
get_customer_detail | Get customer details including budget usage |
- “Who are my top 10 customers by cost?”
- “Show customer budget usage for user_abc”
- “List customers sorted by number of requests”
Prompts
| Tool | Description |
|---|---|
list_prompts | List all prompts in your organization |
get_prompt_detail | Get detailed prompt information |
list_prompt_versions | List all versions of a prompt |
get_prompt_version_detail | Get specific version details |
- “Show me all my prompts”
- “Get the latest version of my customer-support prompt”
- “What are the different versions of prompt xyz?”
Troubleshooting
MCP server not showing in Cursor/Claude Desktop
MCP server not showing in Cursor/Claude Desktop
- Verify your config file path is correct
- Check JSON syntax (use a JSON validator)
- Restart your AI tool completely (not just reload)
- For stdio mode: ensure
npm run buildcompleted successfully
Authentication errors
Authentication errors
- OAuth: Try signing out and re-authenticating. If OAuth keeps failing in Cursor, use the JWT Token or API Key method instead.
- JWT Token: Tokens expire — sign in again at mcp.respan.ai/login to get a fresh token.
- API Key: Verify your API key is correct and the header is
Authorization: Bearer YOUR_KEY(not just the key). - Stdio mode: Check the
RESPAN_API_KEYenv var is set correctly.
Connection timeout or errors
Connection timeout or errors
- Check your internet connection
- For enterprise: verify
RESPAN_API_BASE_URLis correct - For private HTTP: ensure Vercel deployment is active
Source code
The Respan MCP server is open source:GitHub Repository
View source code, report issues, and contribute