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.0.tar.gz (33.1 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.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

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

Hashes for mcp_airflow_postgres-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c464abbb8c58296b49d222b6426680396abd0ac45d9c00bb8102cc8108803eb
MD5 e4b1957a964df0296eccaa3a1b26fe21
BLAKE2b-256 dcf33df567998b7f6577725c79ece1464c33c3e0ade5243cdac824fb05ceb219

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcp_airflow_postgres-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 838db6958bed41df1a06df5809630b62f8d8722d7de5af993cb41044a61fb05b
MD5 8e9ec80bcaaa4e44a21ab7e377fb1ad2
BLAKE2b-256 304470d60a61065167447c7b21b179bb633709a000772bb75f8168575fdf669e

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