Skip to main content
Glama
MCP Server for Apache Airflow

MCP Server for Apache Airflow

by yangkyeongmo

mcp-server-apache-airflow

대장간 배지

Apache Airflow용 MCP(Model Context Protocol) 서버 구현으로, MCP 클라이언트와의 원활한 통합을 지원합니다. 이 프로젝트는 MCP(Model Context Protocol)를 통해 Apache Airflow와 상호 작용하는 표준화된 방법을 제공합니다.

에 대한

이 프로젝트는 Apache Airflow의 REST API를 래핑하는 모델 컨텍스트 프로토콜( MPP) 서버를 구현하여 MCP 클라이언트가 표준화된 방식으로 Airflow와 상호 작용할 수 있도록 합니다. 호환성과 유지 관리를 위해 공식 Apache Airflow 클라이언트 라이브러리를 사용합니다.

Related MCP server: astro-airflow-mcp

기능 구현 상태

특징

API 경로

상태

DAG 관리

DAG 목록

/api/v1/dags

✅

DAG 세부 정보 가져오기

/api/v1/dags/{dag_id}

✅

DAG 일시 정지

/api/v1/dags/{dag_id}

✅

DAG 일시 정지 해제

/api/v1/dags/{dag_id}

✅

DAG 업데이트

/api/v1/dags/{dag_id}

✅

DAG 삭제

/api/v1/dags/{dag_id}

✅

DAG 소스 가져오기

/api/v1/dagSources/{file_token}

✅

여러 DAG 패치

/api/v1/dags

✅

DAG 파일 재분석

/api/v1/dagSources/{file_token}/reparse

✅

DAG 실행

DAG 실행 목록

/api/v1/dags/{dag_id}/dagRuns

✅

DAG 실행 만들기

/api/v1/dags/{dag_id}/dagRuns

✅

DAG 실행 세부 정보 가져오기

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}

✅

DAG 실행 업데이트

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}

✅

DAG 실행 삭제

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}

✅

DAG 실행 배치 가져오기

/api/v1/dags/~/dagRuns/list

✅

클리어 DAG 런

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/clear

✅

DAG 실행 참고 사항 설정

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/setNote

✅

업스트림 데이터 세트 이벤트 가져오기

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/upstreamDatasetEvents

✅

작업

DAG 작업 목록

/api/v1/dags/{dag_id}/tasks

✅

작업 세부 정보 가져오기

/api/v1/dags/{dag_id}/tasks/{task_id}

✅

작업 인스턴스 가져오기

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}

✅

작업 인스턴스 나열

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances

✅

작업 인스턴스 업데이트

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}

✅

작업 인스턴스 지우기

/api/v1/dags/{dag_id}/clearTaskInstances

✅

작업 인스턴스 상태 설정

/api/v1/dags/{dag_id}/updateTaskInstancesState

✅

변수

변수 목록

/api/v1/variables

✅

변수 생성

/api/v1/variables

✅

변수 가져오기

/api/v1/variables/{variable_key}

✅

변수 업데이트

/api/v1/variables/{variable_key}

✅

변수 삭제

/api/v1/variables/{variable_key}

✅

사이

연결 목록

/api/v1/connections

✅

연결 생성

/api/v1/connections

✅

연결 받기

/api/v1/connections/{connection_id}

✅

연결 업데이트

/api/v1/connections/{connection_id}

✅

연결 삭제

/api/v1/connections/{connection_id}

✅

테스트 연결

/api/v1/connections/test

✅

풀

풀 목록

/api/v1/pools

✅

풀 만들기

/api/v1/pools

✅

풀을 얻으세요

/api/v1/pools/{pool_name}

✅

풀 업데이트

/api/v1/pools/{pool_name}

✅

풀 삭제

/api/v1/pools/{pool_name}

✅

엑스컴

XCom 목록

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries

✅

XCom Entry 받기

/api/v1/dags/{dag_id}/dagRuns/{dag_run_id}/taskInstances/{task_id}/xcomEntries/{xcom_key}

✅

데이터 세트

데이터 세트 목록

/api/v1/datasets

✅

데이터 세트 가져오기

/api/v1/datasets/{uri}

✅

데이터 세트 이벤트 가져오기

/api/v1/datasetEvents

✅

데이터 세트 이벤트 생성

/api/v1/datasetEvents

✅

DAG 데이터 세트 대기 이벤트 가져오기

/api/v1/dags/{dag_id}/dagRuns/queued/datasetEvents/{uri}

✅

DAG 데이터 세트 대기 이벤트 가져오기

/api/v1/dags/{dag_id}/dagRuns/queued/datasetEvents

✅

DAG 데이터 세트 대기 이벤트 삭제

/api/v1/dags/{dag_id}/dagRuns/queued/datasetEvents/{uri}

✅

DAG 데이터 세트 대기 이벤트 삭제

/api/v1/dags/{dag_id}/dagRuns/queued/datasetEvents

✅

데이터 세트 대기 이벤트 가져오기

/api/v1/datasets/{uri}/dagRuns/queued/datasetEvents

✅

데이터 세트 대기 이벤트 삭제

/api/v1/datasets/{uri}/dagRuns/queued/datasetEvents

✅

모니터링

건강을 얻으세요

/api/v1/health

✅

DAG 통계

DAG 통계 가져오기

/api/v1/dags/statistics

✅

구성

구성 가져오기

/api/v1/config

✅

플러그인

플러그인 받기

/api/v1/plugins

✅

제공자

제공자 목록

/api/v1/providers

✅

이벤트 로그

이벤트 로그 나열

/api/v1/eventLogs

✅

이벤트 로그 가져오기

/api/v1/eventLogs/{event_log_id}

✅

체계

가져오기 오류 가져오기

/api/v1/importErrors

✅

가져오기 오류 세부 정보 가져오기

/api/v1/importErrors/{import_error_id}

✅

건강 상태 가져오기

/api/v1/health

✅

버전 받기

/api/v1/version

✅

설정

종속성

이 프로젝트는 공식 Apache Airflow 클라이언트 라이브러리( apache-airflow-client )에 의존합니다. 이 패키지를 설치하면 자동으로 설치됩니다.

환경 변수

다음 환경 변수를 설정하세요.

지엑스피1

Claude Desktop과 함께 사용

claude_desktop_config.json 에 다음을 추가하세요:

{
  "mcpServers": {
    "mcp-server-apache-airflow": {
      "command": "uvx",
      "args": ["mcp-server-apache-airflow"],
      "env": {
        "AIRFLOW_HOST": "https://your-airflow-host",
        "AIRFLOW_USERNAME": "your-username",
        "AIRFLOW_PASSWORD": "your-password"
      }
    }
  }
}

uv 사용한 대체 구성:

{
  "mcpServers": {
    "mcp-server-apache-airflow": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp-server-apache-airflow",
        "run",
        "mcp-server-apache-airflow"
      ],
      "env": {
        "AIRFLOW_HOST": "https://your-airflow-host",
        "AIRFLOW_USERNAME": "your-username",
        "AIRFLOW_PASSWORD": "your-password"
      }
    }
  }
}

/path/to/mcp-server-apache-airflow 저장소를 복제한 실제 경로로 바꾸세요.

API 그룹 선택

--apis 플래그를 설정하여 사용할 API 그룹을 선택할 수 있습니다.

uv run mcp-server-apache-airflow --apis "dag,dagrun"

기본적으로 모든 API를 사용합니다.

허용되는 값은 다음과 같습니다.

  • 설정

  • 사이

  • 가리비

  • 다그런

  • 다그스탯

  • 데이터 세트

  • 이벤트로그

  • 수입 오류

  • 모니터링

  • 플러그인

  • 수영장

  • 공급자

  • 작업 인스턴스

  • 변하기 쉬운

  • 엑스컴

수동 실행

서버를 수동으로 실행할 수도 있습니다.

make run

make run 다음 옵션을 허용합니다.

옵션:

  • --port : SSE를 수신할 포트(기본값: 8000)

  • --transport : 전송 유형(stdio/sse, 기본값: stdio)

또는 동일한 매개변수를 허용하는 sse 서버를 직접 실행할 수도 있습니다.

make run-sse

Smithery를 통해 설치

Smithery를 통해 Claude Desktop에 Apache Airflow MCP 서버를 자동으로 설치하려면:

npx -y @smithery/cli install @yangkyeongmo/mcp-server-apache-airflow --client claude

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.

특허

MIT 라이센스

Available Tools

68 tools
clear_dag_runD

Clear a DAG run

Inputs: dag_id (required), dag_run_id (required), dry_run.

clear_task_instancesD

Clear a set of task instances

Inputs: dag_id (required), task_ids, start_date, end_date, +8 more.

create_connectionD

Create a connection

Inputs: conn_id (required), conn_type (required), host, port, +4 more.

create_dataset_eventD

Create dataset event

Inputs: dataset_uri (required), extra.

create_variableD

Create a variable

Inputs: key (required), value (required), description.

delete_connectionC

Delete a connection by ID

Inputs: conn_id (required).

delete_dagD

Delete a DAG

Inputs: dag_id (required).

delete_dag_dataset_queued_eventC

Delete a queued Dataset event for a DAG

Inputs: dag_id (required), uri (required).

delete_dag_dataset_queued_eventsC

Delete queued Dataset events for a DAG

Inputs: dag_id (required), before.

delete_dag_runC

Delete a DAG run by DAG ID and DAG run ID

Inputs: dag_id (required), dag_run_id (required).

delete_dataset_queued_eventsC

Delete queued Dataset events for a Dataset

Inputs: uri (required), before.

delete_poolD

Delete a pool

Inputs: pool_name (required).

delete_variableC

Delete a variable by key

Inputs: key (required).

fetch_dagsC

Fetch all DAGs

Inputs: limit, offset, order_by, tags, +3 more.

get_configD

Get current configuration

Inputs: section.

get_connectionC

Get a connection by ID

Inputs: conn_id (required).

get_dagC

Get a DAG by ID

Inputs: dag_id (required).

get_dag_dataset_queued_eventC

Get a queued Dataset event for a DAG

Inputs: dag_id (required), uri (required).

get_dag_dataset_queued_eventsC

Get queued Dataset events for a DAG

Inputs: dag_id (required).

get_dag_detailsC

Get a simplified representation of DAG

Inputs: dag_id (required), fields.

get_dag_runC

Get a DAG run by DAG ID and DAG run ID

Inputs: dag_id (required), dag_run_id (required).

get_dag_runsD

Get DAG runs by ID

Inputs: dag_id (required), limit, offset, execution_date_gte, +9 more.

get_dag_runs_batchD

List DAG runs (batch)

Inputs: dag_ids, execution_date_gte, execution_date_lte, start_date_gte, +7 more.

get_dag_sourceD

Get a source code

Inputs: file_token (required).

get_dag_statsD

Get DAG stats

Inputs: dag_ids.

get_dag_tasksD

Get tasks for DAG

Inputs: dag_id (required).

get_datasetC

Get a dataset by URI

Inputs: uri (required).

get_dataset_eventsD

Get dataset events

Inputs: limit, offset, order_by, dataset_id, +4 more.

get_dataset_queued_eventsC

Get queued Dataset events for a Dataset

Inputs: uri (required).

get_datasetsC

List datasets

Inputs: limit, offset, order_by, uri_pattern, +1 more.

get_event_logC

Get a specific log entry by ID

Inputs: event_log_id (required).

get_event_logsC

List log entries from event log

Inputs: limit, offset, order_by, dag_id, +10 more.

get_healthC

Get instance status

Inputs: no named parameters.

get_import_errorC

Get a specific import error by ID

Inputs: import_error_id (required).

get_import_errorsC

List import errors

Inputs: limit, offset, order_by.

get_logC

Get the log from a task instance by DAG ID, task ID, DAG run ID and task try number

Inputs: dag_id (required), task_id (required), dag_run_id (required), task_try_number (required).

get_pluginsC

Get a list of loaded plugins

Inputs: limit, offset.

get_poolC

Get a pool by name

Inputs: pool_name (required).

get_poolsD

List pools

Inputs: limit, offset, order_by.

get_providersC

Get a list of loaded providers

Inputs: limit, offset.

get_taskC

Get a task by ID

Inputs: dag_id (required), task_id (required).

get_task_instanceC

Get a task instance by DAG ID, task ID, and DAG run ID

Inputs: dag_id (required), task_id (required), dag_run_id (required).

get_tasksD

Get tasks for DAG

Inputs: dag_id (required), order_by.

get_upstream_dataset_eventsC

Get dataset events for a DAG run

Inputs: dag_id (required), dag_run_id (required).

get_valueC

Get a specific option from configuration

Inputs: section (required), option (required).

get_variableD

Get a variable by key

Inputs: key (required).

get_versionC

Get version information

Inputs: no named parameters.

get_xcom_entriesC

Get all XCom entries

Inputs: dag_id (required), dag_run_id (required), task_id (required), map_index, +3 more.

get_xcom_entryD

Get an XCom entry

Inputs: dag_id (required), dag_run_id (required), task_id (required), xcom_key (required), +3 more.

list_connectionsC

List all connections

Inputs: limit, offset, order_by.

list_task_instancesC

List task instances by DAG ID and DAG run ID

Inputs: dag_id (required), dag_run_id (required), execution_date_gte, execution_date_lte, +13 more.

list_task_instance_triesC

List task instance tries by DAG ID, DAG run ID, and task ID

Inputs: dag_id (required), dag_run_id (required), task_id (required), limit, +2 more.

list_variablesD

List all variables

Inputs: limit, offset, order_by.

patch_dagD

Update a DAG

Inputs: dag_id (required), is_paused, tags.

patch_dagsC

Update multiple DAGs

Inputs: dag_id_pattern, is_paused, tags.

patch_poolD

Update a pool

Inputs: pool_name (required), slots, description, include_deferred.

pause_dagC

Pause a DAG by ID

Inputs: dag_id (required).

post_dag_runC

Trigger a DAG by ID

Inputs: dag_id (required), dag_run_id, data_interval_end, data_interval_start, +3 more.

post_poolC

Create a pool

Inputs: name (required), slots (required), description, include_deferred.

reparse_dag_fileC

Request re-parsing of a DAG file

Inputs: file_token (required).

set_dag_run_noteC

Update the DagRun note

Inputs: dag_id (required), dag_run_id (required), note (required).

set_task_instances_stateD

Set a state of task instances

Inputs: dag_id (required), state (required), task_ids, execution_date, +5 more.

test_connectionD

Test a connection

Inputs: conn_type (required), host, port, login, +3 more.

unpause_dagC

Unpause a DAG by ID

Inputs: dag_id (required).

update_connectionC

Update a connection by ID

Inputs: conn_id (required), conn_type, host, port, +4 more.

update_dag_run_stateC

Update a DAG run state by DAG ID and DAG run ID

Inputs: dag_id (required), dag_run_id (required), state.

update_task_instanceC

Update a task instance by DAG ID, DAG run ID, and task ID

Inputs: dag_id (required), dag_run_id (required), task_id (required), state.

update_variableC

Update a variable by key

Inputs: key (required), value, description.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.5/5.0

    Scored across 68 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific Airflow entities (DAGs, tasks, connections, variables, datasets), but there is some overlap between get_dag_details and get_dag, and between get_tasks and get_dag_tasks, which could cause minor confusion. The descriptions help differentiate, but the sheer number of tools increases cognitive load.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout (e.g., get_dag, create_connection, delete_variable, update_task_instance). There are no deviations in naming conventions, making the set predictable and easy to navigate.

    Tool Count2/5

    With 68 tools, this server is overloaded for typical agent use. While Airflow is a complex system, this count far exceeds the 3-15 range for well-scoped servers, making it heavy and likely overwhelming for agents to handle efficiently.

    Completeness5/5

    The tool surface provides comprehensive CRUD/lifecycle coverage for all key Airflow domains (DAGs, tasks, connections, variables, datasets, pools, logs, XComs). There are no obvious gaps, and operations like create, get, update, delete, list, and state management are fully represented across entities.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      F
      maintenance
      An MCP server that enables AI assistants to interact with Apache Airflow's REST API for DAG management, task monitoring, and system diagnostics. It provides comprehensive tools for triggering workflows, retrieving logs, and inspecting system health across Airflow 2.x and 3.x versions.
      31
      13
      Apache 2.0
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      An MCP server that wraps the Apache Airflow REST API, enabling clients to manage DAGs, monitor task instances, and handle workflows through a standardized interface. It provides comprehensive access to Airflow features including DAG runs, variables, connections, and XComs.
      MIT