flow-agent-mcp
Enables creating and managing Snowflake materializations within Estuary Flow pipelines, allowing collections to be written to Snowflake tables.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@flow-agent-mcp Check the health of the weather pipeline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
flow-agent-mcp
An MCP server that exposes Estuary Flow pipeline operations as typed tools, plus
three runnable demo pipelines built on public datasets. It wraps Estuary's
flowctl CLI so an agent can drive Flow directly.
What it does
Each tool wraps a real flowctl command with typed, validated inputs and
returns structured JSON. An agent (or a person through Claude Code) can inspect
a pipeline's health, publish captures and materializations, edit and restart
tasks, and read landed documents, all through tool calls rather than hand-typed
CLI commands.
Related MCP server: GlassFlow MCP Server
Tools
Every tool maps to a real flowctl invocation, echoed back in the response as
command so the underlying call is always visible.
Tool | Wraps |
|
|
|
|
|
|
|
|
| status + stats + error logs in one call |
|
|
|
|
|
|
|
|
| pull specs → toggle |
| the disable/verify/enable sequence |
|
|
| demo record generator (no flowctl) |
Notes on behavior worth knowing:
set_task_enabledhandles the spec surgery. It pulls the live spec, togglesshards.disablecleanly, and republishes, so enable/disable is one call rather than a manual edit-and-publish loop.Failures return flowctl's own message as a structured MCP error result instead of throwing, so the calling agent gets actionable text.
flowctlpublishes from files, not inline specs, so specs are written to a scratch directory and cleaned up after.
Setup
npm install
npm test # 127 checks, no flowctl or Estuary account neededAdd to Claude Code:
claude mcp add estuary-action -- npx tsx /path/to/estuary-mcp/src/index.tsReal operations need flowctl on PATH and flowctl auth login. Set
ESTUARY_DRY_RUN=true to echo commands without executing them, or
FLOWCTL_PATH to point at a specific binary.
Demo pipelines
Each demo builds a complete catalog — capture, collections, derivation, materialization — from a public dataset shape.
Demo | Dataset | Exercises |
| HTTP ingest, filter derivation, BigQuery fan-out | |
| Open-Meteo (live, no API key) | polling an open API, threshold alerts, Postgres |
| Postgres CDC, aggregation with reduce annotations, Snowflake |
Generate a catalog and publish it:
npm run catalog -- gpu acmeCo/gpu > flow.yaml
flowctl catalog publish --source flow.yaml --auto-approveGenerate data to feed a pipeline:
npm run demo:gpu -- 500 # NDJSON to POST at the ingest endpoint
npm run demo:weather # live Open-Meteo readings
npm run demo:weather -- --watch 300 # poll every 5 minutes
npm run demo:property -- 1000 --sql # INSERTs for the CDC source table
npm run demo:property -- --ddl # table + replication slot + publicationThe weather demo pushes directly to Estuary when WEATHER_INGEST_URL and
WEATHER_INGEST_TOKEN are set. The ingest URL is only shown in the dashboard
after publishing, under the capture's Endpoints section.
Aggregation correctness
The property rollup sums sales per market. Aggregating derivations emit one
delta document per source row and rely on schema reduce: annotations to fold
deltas that share a key. The top-level reduce: { strategy: merge } combines
matching deltas and is set alongside the per-field strategies. aggregateSchema()
in src/specs.ts applies both levels, and test/catalog.test.mts asserts they
are present.
Layout
src/
index.ts MCP server and tool definitions
flowctl.ts subprocess wrapper, NDJSON parsing, scratch spec files
specs.ts catalog spec builders (captures, derivations, reductions)
shards.ts shards.disable spec surgery
yaml.ts literal-block YAML so SQL lambdas survive serialization
demos/ three end-to-end pipelines
synthetic/ record generators
test/
shards.test.mts disable/enable spec editing
catalog.test.mts spec shape, key/schema/reduce invariants
mcp-client.test.mts real MCP transport, command construction, validationStatus
Tested (offline, 127 checks): tool registration and schema validation over a
real MCP client connection, exact flowctl command construction for every tool,
shard spec editing, output parsing, and catalog invariants across all three
demos.
Verified against a live Estuary tenant. A full source-to-destination pipeline was published and run end to end:
an HTTP-ingest capture landing documents into a collection,
a SQLite derivation filtering those readings into threshold-based alerts,
schema inference widening a field's bounds and republishing the task on its own,
a Postgres materialization writing both collections into an external database, confirmed by querying that database directly (8 readings, 3 alerts).
Available Tools
13 toolscreate_captureA
Publish a capture. Writes the spec to a temporary flow.yaml and runs flowctl catalog publish --source flow.yaml --auto-approve.
Inputs: name (required), config (required), bindings (required), connector (required), +1 more.
create_materializationA
Publish a materialization. Writes the spec to a temporary flow.yaml and runs flowctl catalog publish --source flow.yaml --auto-approve.
Inputs: name (required), config (required), bindings (required), connector (required), +1 more.
discover_bindingsA
Discover available bindings for a source connector. Writes a temporary flow.yaml and runs flowctl discover --source flow.yaml, returning the discovered spec without publishing.
Inputs: name (required), config (required), connector (required), tag.
generate_synthetic_dataA
Generate synthetic records for demo pipelines. Returns a sample plus the full payload size.
Inputs: count (required), schema (required), sample_size.
list_tasksB
List catalog entities (captures, materializations, collections). Wraps flowctl catalog list.
Inputs: kinds (required), prefix.
pull_specsA
Pull a task's live spec for local inspection. Wraps flowctl catalog pull-specs --name <task>.
Inputs: task (required).
read_collectionA
Read documents from a collection to verify data is landing. Wraps flowctl collections read --collection <name>, which is non-blocking: it outputs everything currently available and exits.
Inputs: collection (required), limit, since.
restart_taskA
Force a connector restart: disable the task, then re-enable it. Resumes from the last checkpoint, so no data is lost. Use to clear transient errors or load updated config.
Inputs: task (required).
set_task_enabledA
Enable or disable a task by toggling shards.disable in its spec, then republishing. Disabling stops processing; re-enabling resumes from the last checkpoint with no data loss. After enabling, status reads WARNING for 30-120s while shards start, then OK.
Inputs: task (required), enabled (required).
task_healthA
End-to-end health check: combines status, throughput, and error-level logs in one call.
Inputs: task (required), since.
task_logsB
Recent task logs, optionally filtered by level. Wraps flowctl logs --task <task> --since <since>.
Inputs: task (required), level, limit, since.
task_statsB
Throughput and document counts for a task. Wraps flowctl raw stats --task <task> --since <since>.
Inputs: task (required), since.
task_statusB
Control-plane status for one task. Wraps flowctl catalog status <task> --output json. Status types include OK, WARNING, TASK_DISABLED, and error states.
Inputs: task (required), connected.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes: stats, logs, health, status, create, discover, etc. The health tool intentionally combines status and stats, but its description clearly delineates its role. Minor confusion is possible between task_status and task_health, but each serves a distinct need.
Names mix noun-first patterns (task_stats, task_logs, task_health, task_status) with verb-first patterns (discover_bindings, create_capture, list_tasks). While all names use snake_case and are readable, the inconsistent prefix style makes the naming less predictable.
13 tools is a well-scoped count for a Flow management server. It covers monitoring, lifecycle operations, discovery, and data verification without excessive overlap or unnecessary bloat.
The toolset covers monitoring, creation, enable/disable, restart, and inspection well. However, there is no explicit delete or general update operation beyond toggling enabled state, which is a notable gap for full task lifecycle management.
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
MCP-first toolbox for agents: KV storage, auth, queue, and utility tools. Free in early access.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA production-grade MCP server designed for multi-tenant, authenticated, and observable AI agent systems, enabling secure tool execution across heterogeneous data sources.68MIT

GlassFlow MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceModel Context Protocol server for managing and diagnosing GlassFlow streaming pipelines, exposing pipeline CRUD, metrics queries, log search, and a composite diagnostic tool as MCP tools that AI agents can call over SSE transport.Apache 2.0- AlicenseNot gradedqualityDmaintenanceMCP Server for interacting with the Langflow API via a natural language interface. It exposes Langflow functionalities as tools for LLMs.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes Azure Data Factory operations as tools any LLM can call — trigger pipelines, monitor runs, inspect datasets, and get factory health summaries through natural language.MIT