Model Context Protocol (MCP) server for Airflow database integration
Project description
MCP Airflow Database
A Model Context Protocol (MCP) server for interacting with Airflow databases.
Setup with Poetry
Prerequisites
- Python 3.8 or higher
- Poetry installed on your system
Installation
-
Clone this repository:
git clone <your-repository-url> cd mcp-airflow-db
-
Install dependencies with Poetry:
poetry install
-
Configure your environment: Create a
.envfile with your database connection string:DATABASE_URL=postgresql://airflow:airflow123@localhost:5432/airflow
Running the MCP Server
Run the server with Poetry:
poetry run python src/server.py
Or activate the Poetry environment first:
poetry shell
python src/server.py
Using with Smithery
This MCP can be used with Smithery directly as configured in the smithery.yaml file. Make sure to provide the DATABASE_URL configuration when starting the server.
Available Tools
failed_runs: Query failed Airflow DAG runs within a specified time period.query: Execute SQL queries directly against the Airflow database.
License
[Your License]
Project details
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 mcp_airflow_postgres-0.1.0.tar.gz.
File metadata
- Download URL: mcp_airflow_postgres-0.1.0.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c464abbb8c58296b49d222b6426680396abd0ac45d9c00bb8102cc8108803eb
|
|
| MD5 |
e4b1957a964df0296eccaa3a1b26fe21
|
|
| BLAKE2b-256 |
dcf33df567998b7f6577725c79ece1464c33c3e0ade5243cdac824fb05ceb219
|
File details
Details for the file mcp_airflow_postgres-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcp_airflow_postgres-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838db6958bed41df1a06df5809630b62f8d8722d7de5af993cb41044a61fb05b
|
|
| MD5 |
8e9ec80bcaaa4e44a21ab7e377fb1ad2
|
|
| BLAKE2b-256 |
304470d60a61065167447c7b21b179bb633709a000772bb75f8168575fdf669e
|