Back to Changelog

MCP Server

You can now connect your AI agents to Trace0 via our MCP server.

We’ve released our MCP server. This means you can now connect Claude Code, Cursor, and other MCP-compatible AI agents to Trace0 to investigate errors, analyze performance, and troubleshoot issues faster.

Claude Code

Authentication

The Trace0 MCP server uses OAuth for authentication. Simply add the server URL (https://app.trace0hq.com/api/mcp) to your MCP client, and you’ll be redirected to your browser to sign in to your Trace0 account and authorize access. See our docs for full instructions.

Tools

The Trace0 MCP server provides the following tools for querying your environments, services, transactions, logs, and metrics:

ToolDescription
get_environmentsReturns the names of all environments in the authenticated user’s Trace0 account.
get_servicesReturns the name and programming language of all services in the given environment.
get_transactionsReturns the summaries of transactions matching the specified filters.
get_transaction_detailReturns the transaction details for the given transaction ID.
get_log_countReturns the number of logs matching the specified filters, aggregated by service name, severity level and time bucket.
get_service_metric_summariesReturns metric summaries for all services in the given environment and time period.
get_service_metricsReturns detailed metrics for a specific service in the given environment and time period, aggregated by time bucket.

Fair Use Limits

The Trace0 MCP server comes with the following fair-use limits:

  • 50,000 monthly tool calls

Once a limit is exceeded, the MCP server will return an error describing the applicable restriction.

If you require higher limits, please contact us at [email protected] to discuss.