Skip to main content

Model Context Protocol (MCP) server for interacting with the Astro and Airflow APIs

Project description

astro-mcp

Model Context Protocol (MCP) server for interacting with the Astro and Airflow APIs.

Installation

uv pip install mcp[cli]
python -m mcp.server install git+https://github.com/astronomer/astro-mcp.git

Usage

To use the Astro MCP server with the MCP CLI:

# Set your API key
export ASTRO_API_KEY=your_api_key

# Start a chat with the server
mcp chat --server astro

# Or specify the server directly
mcp chat --server astro --server-args api_key=your_api_key

Development

# Clone the repo
git clone https://github.com/astronomer/astro-mcp.git
cd astro-mcp

# Install dependencies
uv pip install -e "."

# Download the API specs
python scripts/download_specs.py

# Run the server directly
python -m src

Build and Distribute

To build the package with the API specs bundled:

# First make sure the API specs are downloaded
python scripts/download_specs.py

# Build the package
uv pip install build
python -m build

# The built package will be in the dist/ directory
# Install it directly
uv pip install dist/*.whl

# Or publish to PyPI
uv pip install twine
twine upload dist/*

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

astro_mcp-0.0.0a5.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

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

astro_mcp-0.0.0a5-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file astro_mcp-0.0.0a5.tar.gz.

File metadata

  • Download URL: astro_mcp-0.0.0a5.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.18

File hashes

Hashes for astro_mcp-0.0.0a5.tar.gz
Algorithm Hash digest
SHA256 385f0a8e829f13cf52035ec72efe341538ab8a4257a7ee2abedf5dd90c8b38cb
MD5 68137995d46ee43b3e5a8fa04ad802f7
BLAKE2b-256 3d5a64a5ca3974d8f0fb1e4418657c6ff4a2a24923cf53d1e77ab8dac1e59871

See more details on using hashes here.

File details

Details for the file astro_mcp-0.0.0a5-py3-none-any.whl.

File metadata

File hashes

Hashes for astro_mcp-0.0.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 7c9425d210ebd979210f81fd7db12c3729003dca030ceb27c4bcd05faeba08e1
MD5 699bca51312f9aeeb2a15ad839576798
BLAKE2b-256 ef9ed42a05d39af4987f242b20a46d609c29c57f45b06591fe895c500fad32ee

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