Skip to main content
Glama

mcp-dagster: A Dagster MCP Server

The Model Context Protocol (MCP) is an open protocol that enables seamless integration between LLM applications and external data sources and tools. This repository provides an MCP server for interacting with Dagster, the data orchestration platform.

Overview

A Model Context Protocol server that enables AI agents to interact with Dagster instances, explore data pipelines, monitor runs, and manage assets. It serves as a bridge between LLMs and your data engineering workflows.

Read our launch post to learn more.

PyPI version Tests

Related MCP server: Databricks MCP Server

Components

Tools

The server implements several tools for Dagster interaction:

  • list_repositories: Lists all available Dagster repositories

  • list_jobs: Lists all jobs in a specific repository

  • list_assets: Lists all assets in a specific repository

  • recent_runs: Gets recent Dagster runs (default limit: 10)

  • get_run_info: Gets detailed information about a specific run

  • launch_run: Launches a Dagster job run

  • materialize_asset: Materializes a specific Dagster asset

  • terminate_run: Terminates an in-progress Dagster run

  • get_asset_info: Gets detailed information about a specific asset

Configuration

The server connects to Dagster using these defaults:

  • GraphQL endpoint: http://localhost:3000/graphql

  • Transport: SSE (Server-Sent Events)

Quickstart

Running the Example

  1. Start the Dagster instance with your pipeline:

uv run dagster dev -f ./examples/open-ai-agent/pipeline.py
  1. Run the MCP server with SSE transport:

uv run examples/open-ai-agent/run_sse_mcp.py
  1. Start the agent loop to interact with Dagster:

uv run ./examples/open-ai-agent/agent.py

Example Interactions

Once the agent is running, you can ask questions like:

  • "What assets are available in my Dagster instance and what do they do?"

  • "Can you materialize the continent_stats asset and show me the result?"

  • "Check the status of recent runs and provide a summary of any failures"

  • "Create a new monthly aggregation asset that depends on continent_stats"

The agent will use the MCP server to interact with your Dagster instance and provide answers based on your data pipelines.

Available Tools

9 tools
get_asset_infoB

Get detailed information about a specific asset

Inputs: asset_key (required).

get_run_infoC

Get detailed information about a specific run

Inputs: run_id (required).

launch_runC

Launch a Dagster job run

Inputs: job_name (required), repository_name (required), repository_location (required), run_config.

list_assetsB

List all assets in a specific repository

Inputs: repository_name (required), repository_location (required).

list_jobsB

List all jobs in a specific repository

Inputs: repository_name (required), repository_location (required).

list_repositoriesA

List all available Dagster repositories

Inputs: no named parameters.

materialize_assetC

Materialize a specific Dagster asset

Inputs: asset_key (required), repository_name (required), repository_location (required).

recent_runsC

Get recent Dagster runs

Inputs: limit.

terminate_runA

Terminate an in-progress Dagster run

Inputs: run_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action: listing repositories, jobs, assets; getting run/asset info; and actions like launch/terminate/materialize. There is no ambiguity between tools.

    Naming Consistency4/5

    Most tools follow a verb_noun pattern (list_*, get_*, launch_run, terminate_run, materialize_asset), but 'recent_runs' breaks the pattern as an adjective-noun phrase. This is a minor deviation.

    Tool Count5/5

    9 tools is well-scoped for a Dagster server covering repositories, jobs, assets, and runs. It provides necessary operations without being excessive.

    Completeness4/5

    The surface covers listing and getting info for key entities, plus launching/terminating runs and materializing assets. A minor gap is the lack of get_job_info or more granular run listing, but core workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with DataDog's observability platform through a standardized interface. Supports monitoring infrastructure, managing events, analyzing logs and metrics, and automating operations like alerts and downtimes.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to explore Unity Catalog metadata, execute SQL queries, and analyze data lineage including notebooks and jobs, empowering autonomous data discovery and query generation in Databricks.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Exposes data.world's catalog, glossary, lineage, and SQL/SPARQL query APIs to LLM agents, enabling natural language interaction with enterprise data assets.
      -