Skip to main content
Give your coding agent direct access to your traces, metrics, and monitors. Instead of switching between your editor and the Lemma dashboard, your agent can pull the exact runs and errors it needs to understand what’s going wrong and fix it in place.

Prerequisites

  • A Lemma account with at least one project sending traces
  • An MCP-compatible IDE or tool (Cursor, Claude Desktop, Claude Code, or any client that supports MCP)

Setup

1

Get your API key

Go to your project settings in the Lemma dashboard and copy your API key.
Copy your key immediately after creating it — you won’t be able to see it again.
2

Add to your IDE

In Settings > MCP Servers, add:
{
  "mcpServers": {
    "lemma": {
      "url": "https://api.uselemma.ai/mcp",
      "headers": {
        "Authorization": "Bearer <your-api-key>"
      }
    }
  }
}
Replace <your-api-key> with the key from your project settings.
3

Try it out

Ask your agent:
Use Lemma to show me my last 5 traces, including any errors.
See the Reference for the full list of available tools.