Skip to main content

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

  1. Clone this repository:

    git clone <your-repository-url>
    cd mcp-airflow-db
    
  2. Install dependencies with Poetry:

    poetry install
    
  3. Configure your environment: Create a .env file 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

mcp_airflow_postgres-0.1.2.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_airflow_postgres-0.1.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_airflow_postgres-0.1.2.tar.gz.

File metadata

  • Download URL: mcp_airflow_postgres-0.1.2.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mcp_airflow_postgres-0.1.2.tar.gz
Algorithm Hash digest
SHA256 80936dc2144d68ca7a04363de0b95aca49dbdb239efe99164264a4b4e52655f5
MD5 0a62a521f89c6471349090a01ed2667b
BLAKE2b-256 5967a982931881f8d2baa39832ea468585a31541b90e6bf30fb8101c34c77745

See more details on using hashes here.

File details

Details for the file mcp_airflow_postgres-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_airflow_postgres-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55d4d47eca110320b3c9e25f971794495e6619c18774cc4b5c1ffab661b8fa09
MD5 61bf89e974c48ee703f89162a1cb5137
BLAKE2b-256 4067fc7c596f80991c79986b606dd1f2ca96b3814a7ba5525dba314e5e9d5c19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page