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.3.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.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_airflow_postgres-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 117182834c98e0b9403975b2f560db8150285d6d6c2c29251d4bfc71b744180c
MD5 b05ab6c1dbb7288e8014976acc98f96c
BLAKE2b-256 9e97fcaf803f74ee054b362506ed1259c01ec2ea979db658ba064fc839e24182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_airflow_postgres-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07cf32ae0f8e1050c1d20e04f915451c21b90f81b29d09303171940d13a53c8b
MD5 344fd9bfb835ff377848780fa31b4a08
BLAKE2b-256 f721bde08dba7ab2a2784426fd524cc65a220c02b0a65f5431266f838f582b14

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