Apache Airflow 3 plugin that mounts airflow-mcp-server as a Streamable HTTP endpoint at /mcp
Project description
airflow-mcp-plugin
Airflow 3 plugin that mounts airflow-mcp-server as a Streamable HTTP endpoint at /mcp on the Airflow API server.
Requirements:
- Apache Airflow >= 3.0 (FastAPI backend)
- Python >= 3.10
Install (recommended via main package extra):
pip install "airflow-mcp-server[airflow-plugin]"
Or install the plugin directly:
pip install airflow-mcp-plugin
Deploy:
- Install into the Airflow webserver container environment (Docker/Compose/Helm)
- Restart the webserver; Airflow auto-loads the plugin via entry point
Use (stateless):
- Endpoint:
http(s)://<airflow-host>/mcp - Every request must include header:
Authorization: Bearer <access-token> - The token is forwarded per-request to Airflow APIs (no shared auth state)
- Mode per-request:
- Safe (default):
http(s)://<airflow-host>/mcp - Unsafe:
http(s)://<airflow-host>/mcp/?mode=unsafe(enables POST/PUT/DELETE/PATCH) - Streamable HTTP (stateless)
- Safe (default):
Usage with Claude Desktop
Claude Desktop requires a helper wrapper to forward headers. Add the plugin endpoint via mcp-remote inside claude_desktop_config.json:
{
"mcpServers": {
"airflow-mcp-plugin": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8080/mcp",
"--header",
"Authorization:${MCP_AIRFLOW_TOKEN}"
],
"env": {
"MCP_AIRFLOW_TOKEN": "Bearer <access-token>"
}
}
}
}
See CONFIG.md for additional MCP client configuration examples. All clients must supply the Authorization: Bearer <token> header and connect over HTTP.
Usage with VS Code
Add the server definition to your settings.json under the mcp.servers block:
"mcp": {
"servers": {
"airflow-mcp-plugin": {
"type": "http",
"url": "http://localhost:8080/mcp/",
"headers": {
"Authorization": "Bearer <access-token>"
}
}
}
}
This configuration uses VS Code's native HTTP transport with per-request Authorization headers; update the URL if your Airflow instance is hosted elsewhere.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file airflow_mcp_plugin-0.2.0.tar.gz.
File metadata
- Download URL: airflow_mcp_plugin-0.2.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47434c5de45963d887125ba4d3cb925b50e600aaa85ba0e566b82e7402b2ec9d
|
|
| MD5 |
d48e2887bc39f69f4709764997bdbc6d
|
|
| BLAKE2b-256 |
5da34537eb2a22e98e6ebf7b03962d06f1ca18317db29624f796f2832c427bba
|
File details
Details for the file airflow_mcp_plugin-0.2.0-py3-none-any.whl.
File metadata
- Download URL: airflow_mcp_plugin-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49aee5b989e1843732eecde5993def2229c2b54e01bc5222a9c0580e7981f553
|
|
| MD5 |
f6f1455c8bc6040d222bb99a1cfc2d70
|
|
| BLAKE2b-256 |
4ba5152e66f482f37dd49691fea6ec6aaf91ea1f7a4378ae965606e5704a2d85
|