Skip to main content
plugin

monte-carlo-agent-toolkit — Claude Code plugin: setup and features

Connects Monte Carlo data observability to Claude Code. It checks table health, guards dbt model edits, and triages warehouse alerts right in your terminal.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add anthropics/claude-plugins-community
/plugin install monte-carlo-agent-toolkit@claude-community
Open on GitHub

What monte-carlo-agent-toolkit does

The toolkit brings Monte Carlo observability tools directly into Claude Code sessions. It monitors warehouse freshness, flags incidents before queries run, and maps out blast radius when updating dbt code. It can also produce SQL validation notebooks for pull requests.

Built-in PreToolUse hooks intercept edits to SQL files in dbt model, macro, or snapshot folders. You must evaluate downstream impact first. If this blocking behavior disrupts your workflow, export MC_PREVENT_HOOKS_DISABLED=1 to bypass it. The plugin requires Python 3.10 or higher.

Authentication happens through OAuth by running /mcp inside Claude Code. Anonymous telemetry logs skill invocations to Mixpanel and Datadog. Disable all tracking by setting MC_AGENT_TOOLKIT_TELEMETRY_DISABLED=1 in your shell.

What it helps with

  • check dbt model blast radius before committing SQL changes
  • triage and troubleshoot data warehouse alerts
  • generate ingestion scripts for metadata, lineage, and query logs
  • set up data monitors across warehouse tables

Example prompts for the agent

  • Test my Monte Carlo connection
  • /monte-carlo-onboarding
  • Generate a validation notebook for my dbt changes

How to install monte-carlo-agent-toolkit

Plugin marketplace

/plugin marketplace add anthropics/claude-plugins-community
/plugin install monte-carlo-agent-toolkit@claude-community

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about monte-carlo-agent-toolkit

How to install monte-carlo-agent-toolkit in Claude Code?

Add the community registry with /plugin marketplace add anthropics/claude-plugins-community, then install the package using /plugin install monte-carlo-agent-toolkit@claude-community. Restart Claude Code once the installation finishes.

What does monte-carlo-agent-toolkit do?

It integrates Monte Carlo data observability into Claude Code. The plugin catches data incidents, inspects table coverage, and stops unintended downstream dbt breakages before edits land.

How do I turn off dbt edit blocking?

Define MC_PREVENT_HOOKS_DISABLED=1 in your shell profile or under env in .claude/settings.json. This causes the PreToolUse safety hooks to exit immediately without stopping edits.

Source text

claude-code · Apache-2.0
# Monte Carlo Agent Toolkit — Claude Code Plugin

Claude Code plugin that brings Monte Carlo data observability into your editor. Bundles skills, hooks, commands, and permissions for all Monte Carlo features in a single plugin.

**Requires Python 3.10+.**

## Installation

### Via Marketplace (recommended)

1. Add the marketplace:
   ```
   /plugin marketplace add monte-carlo-data/mc-agent-toolkit
   ```
2. Install the plugin:
   ```
   /plugin install mc-agent-toolkit@mc-marketplace
   ```
3. Updates — `claude plugin update` pulls in the latest changes.

### Manual

```bash
git clone https://github.com/monte-carlo-data/mc-agent-toolkit.git
cd mc-agent-toolkit
claude plugin install plugins/claude-code
```

Restart Claude Code after installing.

## Setup

1. **Authenticate with Monte Carlo** — run `/mcp` in Claude Code, select the Monte Carlo server, and complete the OAuth flow.
2. **Verify** — ask Claude: "Test my Monte Carlo connection."

## Telemetry

The toolkit sends anonymous skill-usage telemetry by default — which skills are invoked, how often. Each event includes an opaque per-install UUID, a per-session UUID, the skill name, the toolkit version, and the editor it runs in (`claude-code`). No prompts, arguments, or code are ever sent.

It also sends a `Toolkit Installed` beacon once per toolkit version — the first time you start Claude Code after installing, and again after each version change — deduped by a local marker, independent of whether you ever run a skill. It carries the install/session UUIDs, toolkit version, and editor (`claude-code`) — no skill field. Like the skill beacon, it is fail-open and non-blocking.

**Authenticated MCP traffic (v1.13.3+).** The same anonymous `install_id`, a per-session id, and the toolkit version also ride as HTTP headers (`x-mcd-toolkit-install-id`, `x-mcd-toolkit-session-id`, `x-mcd-toolkit-version`) on **authenticated** requests to the Monte Carlo MCP server. This lets the otherwise-anonymous install record be correlated with your account's MCP tool usage server-side — still no prompts, arguments, or code, only the opaque ids and version. The opt-out below disables these headers too.

To opt out, set `MC_AGENT_TOOLKIT_TELEMETRY_DISABLED=1` in your shell environment before starting Claude Code. The toolkit will not phone home.

The data is stored in Mixpanel and Datadog and is used only for product-development decisions about which skills to invest in. The UUIDs are generated locally on first session and stored under `~/.claude/mc-agent-toolkit/`. Deleting that directory resets your install identity to a fresh anonymous one.

## Available Features

| Feature | Description | Details |
|---|---|---|
| **Monitoring Advisor** | Analyzes data coverage, creates monitors for warehouse tables and AI agents — covers coverage gaps, use-case analysis, data monitor creation, and agent observability. | [Skill README](../../skills/monitoring-advisor/README.md) |
| **Prevent** | Gates dbt model edits with impact assessments, generates monitors-as-code, and produces targeted validation queries. Full hook enforcement. | [Skill README](../../skills/prevent/README.md) |
| **Generate Validation Notebook** | Generates SQL validation notebooks for dbt model changes from a PR or local repo. | [Skill README](../../skills/generate-validation-notebook/README.md) |
| **Push Ingestion** | Generates warehouse-specific collection scripts for pushing metadata, lineage, and query logs to Monte Carlo. Includes 10 `/mc-*` slash commands. | [Skill README](../../skills/push-ingestion/README.md) |
| **Automated Triage** | Guides you through automated alert triage — scoring, deep troubleshooting, classification, and actions. Requires extended MCP toolset. | [SKILL](../../skills/automated-triage/SKILL.md) |
| **Onboarding** | Connects a warehouse to Monte Carlo through the REST API v2 tools: deployment choice, credential references, warehouse and connection; Terraform or SDK/CLI script output on request. `/monte-carlo-onboarding`. | [Skill README](../../skills/onboarding/README.md) |

The Prevent feature includes **PreToolUse hooks that can block edits to dbt SQL files** until an impact assessment runs. The hooks only fire on `.sql` files inside dbt model, macro, or snapshot directories — they do not affect non-dbt files.

**To disable the Prevent hooks**, set `MC_PREVENT_HOOKS_DISABLED=1` in your environment (e.g. in your `.zshrc` or `.bashrc`, or via `.claude/settings.json` under `env`). The hooks will exit immediately without blocking any edits.

See the [Prevent Hook Behavior](../README.md#prevent-hook-behavior) section in the plugins README for full details on scope and configuration.

## Updating

```
claude plugin update mc-agent-toolkit@mc-marketplace
```

## Uninstalling

```
claude plugin remove mc-agent-toolkit
```

The uninstall script restores standalone skill backups if they exist.

## Architecture

See the [plugins README](../README.md) for the overall plugin architecture, editor support comparison, and hook format details.

## Changelog

See [CHANGELOG.md](CHANGELOG.md).

© monte-carlo-data · Apache-2.0 · monte-carlo-data/mc-agent-toolkit

Similar plugins

All plugins for Data and databases →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor