Connect bryel to Claude Code, Cursor, or any MCP client and query your traces with BQL.
bryel runs a remote MCP server so your coding agent can query your own trace
data — runs, intents, tokens, cost, tool trajectories — with BQL, right from your
editor. It’s OAuth-gated and read-only.
claude mcp add --transport http bryel https://mcp.bryel.ai/api/mcp
2
Authorize
The first time your agent uses it, a browser opens — sign in to bryel and
pick the project the agent may query. That project is bound to the
connection; it’s the only one this agent can ever see.
3
Ask away
Your agent now has three tools. Try:
“Using bryel, how many traces errored in the last 7 days, and which intents cost the most?”
Paste this into your AGENTS.md / CLAUDE.md (or .cursorrules) so the agent
uses bryel well:
## Querying bryel (observability)You have bryel MCP tools to query THIS project's LLM/agent traces:- `bryel_schema` — call FIRST to learn the fields, operators, and the project's real intent labels + model names.- `bryel_validate` — check a BQL filter before running it.- `bryel_query` — run a BQL filter; returns a match count + sample rows.BQL is a filter expression (single-quoted strings; combine with and / or / not): status = 'error' intent = 'add_pricing' and cost_usd > 0.5 tool_count >= 10 and repeated_calls > 0Use it to investigate error rates, cost/token outliers, which intents areexpensive, repeated/looping tool calls, and slow runs. Always ground on`bryel_schema` before writing a query, and `bryel_validate` if unsure.
One connection = one project (chosen at consent), read-only. To query a
different project, add a second MCP connection and pick that project. Removing
the connection (or losing access to the project) cuts off the agent
immediately.