Skip to content

MCP Integration

MiniAPM will include a built-in Model Context Protocol (MCP) server that allows AI assistants like Claude to query your application’s performance data and errors.

The Model Context Protocol is a standard for connecting AI models to external data sources and tools. With MCP, you’ll be able to ask Claude questions like:

  • “What errors happened in production today?”
  • “Which routes are slowest?”
  • “Show me details about this error”
  • “What’s the system status?”
ToolDescription
list_errorsFind recent errors with filtering
get_errorGet full error information with stack traces
error_trendsHourly error counts
list_tracesFind traces with filtering
get_traceFull span waterfall with N+1 detection
slow_tracesFind traces above a duration threshold
route_summaryP50/P95/P99, throughput, error rate per route
list_deploysRecent deployments
deploy_impactBefore/after comparison for a deploy
system_statusOverall health overview
detect_n_plus_oneN+1 patterns in a specific trace
ToolDescription
resolve_errorMark error as resolved
ignore_errorMark error as ignored
reopen_errorReopen a resolved/ignored error

Two modes are planned:

For local development with Claude Desktop:

Terminal window
miniapm mcp

For remote or shared access, the MCP endpoint will be available at POST /mcp with API key authentication.