Skip to main content
Trace0 provides a Model Context Protocol (MCP) server that allows supported AI assistants and development tools to explore your Trace0 observability data.

Server

https://app.trace0hq.com/api/mcp

Authentication

The Trace0 MCP server uses OAuth 2.0 for authentication. When you connect an MCP client, such as Claude Code, you will be redirected to Trace0 to sign in and authorize access to your account. After authorization, the client receives an access token that it can use to call the MCP server on your behalf. The authorization flow uses:
  • OAuth 2.0 Authorization Code flow
  • PKCE
  • Dynamic Client Registration for supported MCP clients
  • A consent screen before access is granted
See this guide on how to connect an MCP Server to Claude Code that requires sign-in.

Tools

The Trace0 MCP server provides tools for querying your environments, services, transactions, logs, and metrics. Available tools include:
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.
All tools, apart from get_environments, require an environmentName argument. Use get_environments first to retrieve the list of environment names in the authenticated user’s account.

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 hello@trace0hq.com to discuss.