Mcp Airflow Postgres
@gavinHuang
Basic information
Category
Other
Author
About Mcp Airflow Postgres
Operate airflow's postgresql directly
Overview
What is Mcp Airflow Postgres?
Mcp Airflow Postgres is a Model Context Protocol (MCP) server that connects to an Airflow PostgreSQL database, allowing users to query failed DAG runs and execute custom SQL. It runs locally via Python and is designed for developers and data engineers who want to integrate Airflow database interactions into MCP-compatible tools.
How to use Mcp Airflow Postgres?
Install Python 3.8+ and Poetry, clone the repository, run poetry install, create a .env file with a DATABASE_URL pointing to your Airflow PostgreSQL instance, then start the server with poetry run python src/server.py. The server can also be used with Smithery by providing the DATABASE_URL configuration as defined in smithery.yaml.
Key features of Mcp Airflow Postgres
- Connects to Airflow PostgreSQL databases via MCP
- Query failed DAG runs within a specified time period
- Execute arbitrary SQL queries directly
- Simple setup using Poetry and environment variables
- Compatible with the Smithery platform
Use cases of Mcp Airflow Postgres
- Monitor and inspect failed Airflow DAG runs programmatically
- Run ad‑hoc SQL queries against the Airflow metadata database
- Integrate Airflow database access into AI assistants or automation tools
- Automate Airflow health checks within MCP workflows
FAQ from Mcp Airflow Postgres
What does Mcp Airflow Postgres do?
It is an MCP server that lets you query failed DAG runs and execute direct SQL on an Airflow PostgreSQL database.
Can I use it with Smithery?
Yes, the server is configured for Smithery via smithery.yaml; you must supply the DATABASE_URL when starting.
What are the available tools?
Two tools: failed_runs – queries failed DAG runs within a given time period; query – runs arbitrary SQL against the database.
What database does it support?
PostgreSQL, as shown in the example connection string postgresql://airflow:airflow123@localhost:5432/airflow.
How do I install and run it?
Requires Python 3.8+ and Poetry. Clone the repo, run poetry install, set a DATABASE_URL in .env, then run poetry run python src/server.py.
More Other MCP clients

Prism – Contract Deadline Reader
Built AI, Inc.Give your AI agent a contract reader. Prism reads leases, mortgages, insurance policies and HOA documents and returns every deadline with its exact date, what happens if it is missed, and the sentence it came from. Remot
MCP 聊天应用
machaojin1917939763基于MCP(Model Context Protocol)的智能聊天应用,支持Web和桌面环境。集成OpenAI/Anthropic API,提供MCP服务器的所有工具能力。简洁现代的UI设计,支持跨平台部署。
Roamzy
roamzy-ioAgent-native global eSIM over MCP — an AI agent buys one eSIM for 193 countries, anonymously, per-MB in USDT/USDC crypto, and earns 20% referral forever. Claude/Cursor/Continue + any MCP client.
MCP Connect
EvalsOneEnables cloud-based AI services to access local Stdio based MCP servers via HTTP requests
MCP Web Client
jinruoxinchenMCP Web Client project
Comments