· 2 min read

Let Claude read your production logs with MCP

Connect Claude, Claude Code or Cursor to your logs, issues and traces with the Model Context Protocol, read-only. A step-by-step guide with example questions.

Copying stack traces into a chat window works, until the answer depends on something you did not paste: the request before it, the deploy an hour ago, how often it happens. The Model Context Protocol (MCP) lets an assistant fetch that context itself, from tools you allow — and only the ones you allow.

What MCP is, in one paragraph

MCP is an open protocol for giving AI assistants tools. A server describes its tools ("search logs", "get trace") with names, descriptions and inputs; the assistant decides when to call them and reads the results. The server stays in charge of what is possible: a read-only server can only be read.

What your assistant can do with Grafatsuki

Grafatsuki is an MCP server with ten read-only tools:

  • list_apps and app_overview — what is running and how it is doing;
  • search_logs and list_issues — log lines and grouped errors;
  • get_trace — one request's spans and logs;
  • list_metrics and metric_series — your numbers over time;
  • uptime_status and recent_alerts — checks, check-ins and what fired;
  • run_query — anything the query language can answer.

Every tool only reads the apps you can see. None of them can change or delete anything.

Connecting Claude (web and apps)

  1. In Claude, open Settings → Connectors → Add custom connector.
  2. Paste your garden's MCP address (shown on the Assistants page, it ends in /api/mcp), leave the client ID and secret empty.
  3. Claude sends you to Grafatsuki to sign in; approve it. The page shows exactly where approving sends you.

The connection renews itself, and appears on your Assistants page with a Disconnect button.

Connecting Claude Code, Cursor and others

Make a token on the Assistants page (it is shown once), then:

claude mcp add --transport http grafatsuki https://your-garden/api/mcp \
  --header "Authorization: Bearer gmcp_…"

For Cursor, Windsurf and other clients, add the same URL and header to their mcp.json.

Questions worth asking

  • "What broke in production today, and which deploy caused it?"
  • "Find the slowest checkout request in the last hour and tell me which step took the time."
  • "Is the 'Payment gateway timed out' error new, or has it always been there?"
  • "Write a fix for the most frequent error in the api app, using the trace as evidence."

In Claude Code, the last one is where it shines: the assistant reads the issue and its traces from Grafatsuki, then opens the code that produced them and proposes a change in the same session.

A word on trust

Log lines are text your app wrote, sometimes from user input. Grafatsuki marks everything it returns as data, and a good assistant treats it as evidence, not instructions. Keep the server read-only — it is — and review changes before you merge them, as you would anyone's.

Connecting takes a minute. See AI assistants (MCP), and the built-in AI gardener if you would rather not set anything up.

aimcpclaudedebugging

Keep reading

Plant your first app in five minutes

Free to start. One link, one token — or one prompt for your coding agent.