Agent Toolkit

Monte Carlo's Agent Toolkit enables an agentic experience, allowing your AI tools to interact with your Monte Carlo Data account and bring data observability into your development workflow.

Why the Agent Toolkit exists

AI agents are powerful, but without the right context they'll confidently work with stale tables, ship changes that break downstream dashboards, or miss the alert that explains the bug you're chasing. Monte Carlo already has that context — freshness, lineage, active alerts, monitor coverage, query history, cost signals.

The Agent Toolkit is the bridge. It's a bundle of skills, hooks, and an MCP server that teaches your coding agent when and how to reach for Monte Carlo, so the observability data you already have shows up at the moment it's useful. The result: fewer broken merges, faster incident response, and monitoring coverage that keeps up with your data estate — all without you having to remember which Monte Carlo feature to call.

How the toolkit works

The toolkit is delivered as a single mc-agent-toolkit plugin that bundles everything — install once, get everything, and new capabilities arrive on the next update. Under the hood there are three building blocks that work together:

  • An MCP server that gives the agent live, authenticated access to your Monte Carlo account (alerts, lineage, monitors, query history, and more).
  • Skills — focused instructions that teach the agent how to do specific Monte Carlo jobs well.
  • Hooks — event-driven triggers that activate skills at the right moment (for example, before you edit a dbt model, or before a commit).

Quick start

📘

Using Claude.ai (web or desktop) instead of a coding agent? Monte Carlo is a verified connector in the Claude directory. Install it directly — no plugin needed. See MCP Server for details.

Prerequisites

  • A Monte Carlo account with Editor role or above
  • A supported AI coding agent (see Supported agents below)
  • Claude Opus 5.5 or later as the agent's model (recommended). Skills that run long workflows, such as onboarding a warehouse, depend most on the model.

Install the mc-agent-toolkit plugin

Claude Code (recommended — best support):

  1. Add the marketplace:
/plugin marketplace add monte-carlo-data/mc-agent-toolkit
  1. Install the plugin:
/plugin install mc-agent-toolkit@mc-marketplace
  1. Authenticate — run /mcp, select the Monte Carlo server, and complete the OAuth flow in your browser.

  2. Verify — ask Claude: "Test my Monte Carlo connection."

  3. Enable auto-updates — run /plugin, select the monte-carlo-data/mc-agent-toolkit marketplace, and choose Enable auto-update. This keeps the toolkit current as new skills ship.

Cursor:

bash <(curl -fsSL https://raw.githubusercontent.com/monte-carlo-data/mc-agent-toolkit/main/plugins/cursor/scripts/install.sh)

Then restart Cursor. The Monte Carlo MCP server will prompt for OAuth on first use.

GitHub Copilot CLI:

git clone https://github.com/monte-carlo-data/mc-agent-toolkit.git

# Install hooks into your dbt project
./mc-agent-toolkit/plugins/copilot/scripts/install.sh /path/to/your/dbt-project

# Install the plugin (skills + MCP)
copilot plugin install ./mc-agent-toolkit/plugins/copilot

For other agents (OpenCode, Codex), see the plugins page on GitHub.

📘

Keeping the toolkit up to date

Third-party plugin marketplaces in Claude Code don't auto-update by default. After installing, we recommend enabling auto-updates: In Claude Code: /plugin → select the monte-carlo-data/mc-agent-toolkit marketplace → Enable auto-update

For Cursor and other agents, re-run the install script periodically or watch the GitHub repo for releases.

Orchestrated workflows

For common, multi-step situations — responding to an incident, deciding what to monitor, or sorting through an ambiguous "something feels off with my data" — the agent proactively recommends and chains the right skills in the right order. You don't have to know which individual skill to call; the workflow handles the sequencing.

You can also launch a workflow explicitly with a slash command:

CommandWhat it orchestrates
/mcRoutes an ambiguous data question to the right skill or workflow. Asks clarifying questions first when the ask is vague.
/monte-carlo-incident-responseFull incident lifecycle — triage → root cause → remediation → prevent recurrence.
/monte-carlo-proactive-monitoringCoverage discovery → gap analysis → prioritization → monitor creation.
/monte-carlo-onboardingConnect a warehouse — deployment → credential references → warehouse and connection → validation. See Connecting a warehouse with the onboarding skill.

Workflows are smart proactive ways to sequence the individual skills below.

Individual skills

Every capability is also available on its own. Ask your agent a direct question ("check the health of the orders table", "tune this monitor to reduce noise", "what's costing us the most in storage?") and the matching skill activates. You can mix and match — the workflows are a convenience, not a cage.

What the skills do

Skills are grouped by the job they help you do. All skills ship with the plugin and are available in every supported editor.

Trust — is this data safe to use?

Foundational pre-query and pre-build checks so the agent doesn't reach for data that isn't ready.

SkillWhat it does
asset-healthSingle-table health report: freshness, active alerts, monitor coverage, importance, and upstream issues. Great as a pre-query check before you build on a table.

Incident Response — something is broken, fix it

Reactive skills for when alerts are firing, a table looks stale, or a pipeline failed.

SkillWhat it does
automated-triageFetches, scores, and prioritizes active alerts. Runs interactively or as a scheduled workflow.
analyze-root-causeInvestigates why an incident happened — lineage tracing, ETL checks, query analysis, and data profiling.
remediationProposes and executes fixes for data-quality alerts after assessing blast radius, or escalates with full context when uncertain.
troubleshoot-agent-tracesInvestigates AI-agent alerts (evaluation, metric, trajectory, validation) and agent traces — kicks off the trace troubleshooting agent and guides a manual investigation.

Monitoring — plan coverage, create monitors, reduce noise

Skills for reasoning about monitor coverage and keeping monitors healthy.

SkillWhat it does
monitoring-advisorUses Monte Carlo's use-case and coverage data to pinpoint gaps in your data estate, then creates monitors for data tables or AI agents — validating tables and fields against your live workspace and emitting monitors-as-code YAML. See How Monitor Creation works below.
manage-macCreates, edits, validates, and imports monitors-as-code YAML — authors new monitors, modifies existing files, validates against the published schema, and exports live monitors to YAML.
tune-monitorRecommends sensitivity, segment, and schedule changes to reduce alert noise on an existing metric monitor.

Prevent — catch issues before they ship

Silent, hook-driven skills that shape code changes before and after they happen. Auto-activates on dbt/SQL edits.

SkillWhat it does
preventSurfaces blast radius, lineage, alerts, and monitor coverage before an edit — and generates monitors-as-code for new transformation logic.
generate-validation-notebookGenerates targeted SQL validation queries for a dbt PR or local repo to verify a change behaved as intended.

See How MC Prevent works below for the full flow.

Optimize — cost and performance

Skills for cleaning up waste and diagnosing slowness in existing data assets.

SkillWhat it does
storage-cost-analysisIdentifies storage waste (unread, zombie, and dead-end tables) and estimates cleanup savings — using lineage to verify safety first.
performance-diagnosisDiagnoses slow pipelines and expensive queries across Airflow, dbt, Databricks, and other platforms.

Setup — onboarding and integrations

Admin-oriented skills for getting data into Monte Carlo and configuring connections.

SkillWhat it does
instrument-agentInstruments an AI agent for Monte Carlo Agent Observability — detects AI libraries, installs the Monte Carlo OpenTelemetry SDK, sets up tracing, and verifies traces in Monte Carlo.
push-ingestionGenerates collection scripts to push metadata, lineage, or query logs to Monte Carlo from any data source.
connection-auth-rulesBuilds Connection Auth Rules JSON for a Monte Carlo connection type using live connector schemas.
onboardingConnects a warehouse to Monte Carlo — chooses or provisions the deployment, references credentials without moving a secret, creates the warehouse and connection, and validates it. Can emit Terraform or an SDK/CLI script instead. See Connecting a warehouse with the onboarding skill.

Full details and source are in the agent toolkit repo.


Using skills standalone (without the plugin)

If your editor isn't listed above or you prefer to install skills individually:

  1. Configure the Monte Carlo MCP server:
claude mcp add --transport http monte-carlo-mcp https://mcp.getmontecarlo.com/mcp
  1. Install a skill:
npx skills add monte-carlo-data/mc-agent-toolkit --skill prevent
  1. Authenticate via /mcp and complete the OAuth flow.

If you copy a skill manually instead, copy its whole directory — some skills, such as onboarding, read supporting files from a reference/ folder next to SKILL.md.

See the MCP server docs for advanced configuration options.

Supported agents

The mc-agent-toolkit plugin is available for multiple AI coding agents:

AgentStatusInstallation
Claude CodeFull support (hooks, skills, MCP, slash commands)Setup guide
CursorFull support (hooks, skills, MCP)Setup guide
OpenCodeFull support (hooks, skills, MCP)Setup guide
Copilot CLIPreliminary (skills, MCP; hooks installed separately)Setup guide
CodexPreliminary (skills only)Setup guide
Snowflake CoCoFull support (hooks, skills, MCP, slash commands)Setup guide

Editor compatibility: VS Code users can use Copilot CLI or Claude Code. JetBrains users can use Copilot CLI. Cursor is a standalone editor. Claude Code, Copilot CLI, and OpenCode also run in any terminal.

How MC Prevent works

MC Prevent is the flagship feature of the toolkit. When installed via the plugin, it uses hooks to enforce a safety-first workflow:

  1. You edit a dbt model — the pre-edit hook blocks until a change impact assessment runs. The agent surfaces downstream blast radius, active alerts, monitor coverage, and a risk-tiered recommendation.
  2. You confirm and edit — the post-edit hook records the change. The skill offers to generate monitors-as-code for new logic.
  3. You commit — the pre-commit hook checks for unresolved monitor coverage gaps.
  4. You validate — run /mc-validate or ask the agent to generate validation queries. Targeted SQL checks are saved to validation/<table>_<timestamp>.sql.

Without the plugin, the skill still works — it just relies on the agent following instructions rather than hooks enforcing the workflow.

How Monitor Creation works

Asking an AI agent to "add a monitor" without guardrails usually produces monitors that reference nonexistent tables, invalid fields, or the wrong monitor category for the problem. The monitoring-advisor skill prevents this by grounding every step in your live Monte Carlo workspace:

  1. Category selection — the agent matches the user's intent to the right Monte Carlo monitor category (table, metric, validation, comparison, custom SQL, or one of the agent monitor types) rather than defaulting to whatever it saw most in training.
  2. Table validation — the agent confirms the target table is ingested into Monte Carlo before proposing anything, using the MCP server to check in real time.
  3. Field verification — for metric and validation monitors, the agent checks that referenced fields exist and that their types are compatible with the chosen category.
  4. Monitors-as-code output — the agent emits monitors-as-code YAML, so the monitor is version-controlled and deployable through your existing CI/CD instead of clicked into the UI.

If you want to start from coverage instead of a specific table, run /monte-carlo-proactive-monitoring — the workflow analyzes gaps across your warehouses and use cases first, then hands off to monitoring-advisor to create the recommended monitors.

Connecting a warehouse with the onboarding skill

The onboarding skill takes you from "connect Snowflake to Monte Carlo" to validated connections (one or several in the same run), using the MCP server's deployment, credential, warehouse, and connection tools. Start it by running /monte-carlo-onboarding. Asking a general-purpose agent to "connect my warehouse" without the skill loaded skips its discovery, reuse, and credential guardrails, so invoke the skill explicitly.

Prerequisites: a Monte Carlo user who can manage integrations, and cloud credentials on your own machine for any agent, data store, or secret-store steps the skill hands to you.

  1. Discover and show — the agent lists your existing deployments, agents, data stores, warehouses, and connections, and shows what you can add: which integrations each kind of deployment supports and with which credential options. It then asks what you want to connect, unless you already said.
  2. Check support — for each integration you name, it checks that the integration can be connected before asking anything else about it. If it can't be connected through these tools, it says so and points you to the UI instead of setting anything up.
  3. Ask only what's missing — where the connection should originate, where credentials are kept, and where samples are stored.
  4. Choose the deployment — it reuses or sets up the right option: the Monte Carlo cloud, Monte Carlo cloud with a customer-hosted data store, or a customer-hosted collection agent and data store. See Deployments for how these differ.
  5. Reference credentials — credentials are linked by reference only (see below).
  6. Create and validate — it reconciles what already exists, creates only the missing warehouse and connection, and validates the connection.
  7. Report — every run ends with the created or reused IDs, the validation result, and any pending step. Creation alone is not a completed onboarding.

The agent uses Monte Carlo's MCP tools for every step they cover. A step moves to your machine only when it involves a secret, or when it runs in your own cloud account (deploying an agent, storing a secret). For those steps it gives you the Monte Carlo CLI command and the equivalent Terraform side by side. You run the one you prefer and share back only the resulting ID; the agent never runs them for you. Prefer infrastructure-as-code for the whole onboarding? Ask for Terraform or an SDK script instead.

🔒

Credentials never pass through the chat

No MCP tool accepts or returns a secret. For a collection agent, credentials stay in your AWS Secrets Manager, GCP Secret Manager, Azure Key Vault, an environment variable, or a file on the agent — the agent only passes the reference (secret name, ARN, vault, variable name, or path). Credentials Monte Carlo must hold, such as a Snowflake key pair or a generic agent token, are created by a CLI command or Terraform resource that the agent writes and you run on your machine; you share back only the resulting ID.

Don't paste passwords, keys, or tokens into the chat. If you do, the agent stops, asks you to rotate the secret, and continues with one of the paths above.

Monte Carlo CLI steps use mc-cli, the montecarlo command for Monte Carlo's REST API v2. The older montecarlodata Python CLI installs a command with the same name but speaks a different API — run montecarlo deployments --help to confirm you're using mc-cli.

If you'd rather not run any Monte Carlo CLI or Terraform command, connect through a collection agent with credentials in your own secret store: every Monte Carlo step on that route is an MCP tool. Reusing an agent, or deploying a new AWS agent with the CloudFormation template, needs no Monte Carlo command at all.

Resources



Did this page help you?