How to Connect an LLM Agent to Your Data Pipelines Bruin released `bruin mcp`, an open-source (Apache 2.0) MCP server that runs over stdio beside a pipeline repository so coding agents such as Claude Code, Cursor and Codex can call the Bruin CLI (`bruin validate`, `bruin run`, `bruin lineage`, `bruin query`), alongside a Bruin Cloud MCP server at `cloud.getbruin.com/mcp` that exposes 36 tools for pipelines, runs, assets, logs and backfills. Each Bruin Cloud tool checks one permission on the token given to the agent, so a read-only token can diagnose a failure without changing anything, and Bruin recommends keeping the agent in a dev environment and reviewing its fixes as pull requests. The local server ships three read-only tools (`bruin_get_overview`, `bruin_get_docs_tree`, `bruin_get_doc_content`) that serve documentation built into the installed binary, and Bruin points to the dbt MCP server, Astronomer's Airflow MCP server and LangGraph with `langchain-mcp-adapters` as alternative routes. TL;DR: Connect an LLM agent to your data pipelines by exposing them as MCP tools the agent can call, which in Bruin takes two servers. bruin mcp runs next to your pipeline repo, so a coding agent such as Claude Code, Cursor or Codex can learn and run the Bruin CLI bruin validate , bruin run , bruin lineage , bruin query . The Bruin Cloud MCP at cloud.getbruin.com/mcp gives the agent 36 tools for pipelines, runs, assets, logs and backfills, and each tool checks one permission on the token you hand the agent, so a read-only token can diagnose a failure and change nothing. Keep the agent in a dev environment and review its fix as a pull request. Other routes: the dbt MCP server for dbt projects, Astronomer's Airflow MCP server for DAGs, and LangGraph with langchain-mcp-adapters for an agent you build yourself. An LLM on its own knows SQL. It does not know your pipelines: where the code lives, which table feeds which, what failed last night and why. Connecting an agent means giving it those things through tools it can call, and drawing a clear line around what it may change. We build Bruin https://getbruin.com , so we use it for the examples and say where other tools fit better. What an agent needs from your pipelines what-an-agent-needs-from-your-pipelines An agent needs four things: the code, the metadata around it, the errors, and a small set of actions. Bruin splits them between a local server for the repo and a cloud server for production. | Need | Example question | Bruin, local bruin mcp + terminal | Bruin Cloud MCP | |---|---|---|---| | Code | "Where is revenue computed?" | Reads the SQL and Python asset files in the repo | asset-list-tool asset details and dependencies | | Metadata | "What feeds this table, and which checks guard it?" | bruin lineage --full -o json , columns and checks in each asset file | asset-list-tool , asset-health-tool | | Errors | "Why did last night's run fail?" | bruin run output and the local logs/ folder | pipeline-run-list-tool , asset-instance-list-tool , asset-instance-logs-tool | | Actions | "Fix it and prove the fix." | Edits files, bruin validate , bruin run --environment dev | asset-rerun-tool , pipeline-trigger-tool write permission needed | The two servers do different jobs. Locally, the agent changes code in a branch. In Bruin Cloud, it reads what happened in production and, only if you allow it, reruns things. Most teams want both. Step 1: Give the agent your repo with bruin mcp step-1-give-the-agent-your-repo-with-bruin-mcp bruin mcp bruin mcp is part of the open-source Bruin CLI Apache 2.0 and runs over stdio next to your project. Register it with the full path to the binary, because editors opened from the Dock or Start menu often don't read your shell's PATH : Claude Code, available in all your projects claude mcp add --scope user bruin -- "$ which bruin " mcp claude mcp list For Cursor, add the same command to ~/.cursor/mcp.json : { "mcpServers": { "bruin": { "command": "/Users/you/.local/bin/bruin", "args": "mcp" } } } VS Code and Codex take the same command. The Bruin MCP docs https://getbruin.com/docs/bruin/getting-started/bruin-mcp.html have each config. The server itself is deliberately small. It has three read-only tools, bruin get overview , bruin get docs tree and bruin get doc content , which serve the Bruin documentation built into the binary. So the agent reads docs that match the CLI version you installed, not a web page about a newer release. The work happens in the agent's terminal, with the commands you would type yourself: bruin validate ./pipelines config, references, dry-run queries bruin lineage --full -o json assets/orders.sql upstream and downstream as JSON bruin query -c bq -q "SELECT status, count FROM raw.orders GROUP BY 1" -o json bruin run --environment dev assets/orders.sql build one asset and run its checks Because these are shell commands, your agent client shows each one and asks before running it unless you have allowed it. That is your review point for local work. Two additions make the local agent more reliable: - Skills and an AGENTS.md . bruin ai skills all adds a Bruin section to AGENTS.md and starter skills such as pipeline-diagnose , freshness-check and quality-check-investigate , so the agent follows the same steps every time. - Dev as the default environment. With default environment: dev in .bruin.yml , a stray bruin run builds prefixed dev tables, not production ones. bruin run --environment production asks for confirmation unless --force is passed, so tell the agent in AGENTS.md never to use --force . .bruin.yml Bruin adds it to .gitignore default environment: dev environments: dev: schema prefix: agent connections: google cloud platform: - name: bq project id: acme-dev service account file: /path/to/agent-dev.json production: the agent reads production; Bruin Cloud writes it config: full refresh restricted: true --full-refresh can't drop and recreate tables connections: google cloud platform: - name: bq project id: acme-prod service account file: /path/to/reader.json read only: true BigQuery, ClickHouse, DuckDB and MotherDuck connections accept read only: true . Pair it with a warehouse user that can only read, and a query the agent gets wrong can't change production data. Step 2: Give the agent production runs with the Bruin Cloud MCP step-2-give-the-agent-production-runs-with-the-bruin-cloud-mcp Bruin Cloud runs your pipelines on a schedule and keeps the run history, logs and asset health. Its MCP server lives at https://cloud.getbruin.com/mcp . Create a personal access token in Bruin Cloud user menu, Access Tokens , then: Claude Code claude mcp add --transport http bruin cloud https://cloud.getbruin.com/mcp \ --header "Authorization: Bearer YOUR TOKEN HERE" In Cursor, add it to ~/.cursor/mcp.json : { "mcpServers": { "bruin cloud": { "type": "streamable-http", "url": "https://cloud.getbruin.com/mcp", "headers": { "Authorization": "Bearer YOUR TOKEN HERE" } } } } In Claude Desktop or on the web there is no token to paste: add https://cloud.getbruin.com/mcp as a custom connector, sign in to Bruin Cloud, and pick the team. That connection is limited to your own permissions on that team, and you can revoke it under Profile → OAuth Apps . The Cloud MCP docs https://getbruin.com/docs/bruin/cloud/mcp-setup.html list 36 tools as of November 2026, 16 that read and 20 that write: | Group | Read tools | Write tools | |---|---|---| | Pipelines and runs | pipeline-list-tool , pipeline-run-list-tool , asset-runs-tool , run-tags-tool , validation-error-list-tool | pipeline-trigger-tool , pipeline-rerun-tool , pipeline-toggle-tool , mark-pipeline-run-tool , run-note-tool , run-delete-tool | | Assets and logs | asset-list-tool , asset-health-tool , asset-instance-list-tool , asset-instance-logs-tool | asset-rerun-tool , mark-asset-run-tool , mark-external-dependency-tool , manual asset-health entries | | Backfills | backfill-list-tool | backfill-trigger-tool , backfill-mark-tool , backfill-skip-assets-tool , backfill-delete-tool | | Connections | connection-list-tool never secret values , connection-types-tool | connection-create-tool , connection-delete-tool | | Costs and alerts | cost-explorer-tool , cost-explorer-schema-tool , notification-rule-list-tool , notification-rule-schema-tool | create, update and delete notification rules | A failed quality check shows up here as a failed asset instance with its log, and assets that a blocking check stopped show as not run. If the agent already has a terminal and a token, the CLI covers the same ground: bruin cloud runs diagnose --project-id