Skip to main content

MCP server for METAR/TAF aviation weather data

Project description

mcp-metar

MCP server for METAR/TAF aviation weather data

PyPI Python Coverage Ruff

mcp-name: io.github.daedalus/mcp-metar

Install

pip install mcp-metar

Usage

from mcp_metar import get_metar, get_taf, get_airport_weather

# Get current METAR for an airport
metar = get_metar("KJFK")
print(metar)

# Get TAF forecast
taf = get_taf("KJFK")
print(taf)

# Get both METAR and TAF
weather = get_airport_weather("KJFK")
print(weather["metar"])
print(weather["taf"])

MCP Server

This package provides an MCP server that can be used with MCP-compatible clients. Configure your client with:

{
  "mcpServers": {
    "mcp-metar": {
      "command": "mcp-metar",
      "env": {}
    }
  }
}

Available Tools

  • get_metar: Fetch current METAR weather data for an airport by ICAO code
  • get_taf: Fetch TAF (Terminal Aerodrome Forecast) for an airport by ICAO code
  • get_airport_weather: Fetch both METAR and TAF for an airport by ICAO code

Development

git clone https://github.com/daedalus/mcp-metar.git
cd mcp-metar
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

License

MIT

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_metar-0.1.0.tar.gz (5.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_metar-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file mcp_metar-0.1.0.tar.gz.

File metadata

  • Download URL: mcp_metar-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_metar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a875465626e6a93d3d4608331a8e7f6a02d5dbe85e339c7dd65f6db68bb4744e
MD5 34757f19db0e31c069725591bbd0a017
BLAKE2b-256 e925e6c3761c1cad0a86948cb0b8c2d628bd60ae96064b36ba807d3406295687

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_metar-0.1.0.tar.gz:

Publisher: pypi-publish.yml on daedalus/mcp-metar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: mcp_metar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_metar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91475bef0a17068b002427539c3c10ebda03da517d377d66798dd6dba25fa770
MD5 9ac10b0fff305d1cd108ee209b5be7b1
BLAKE2b-256 dc081c63f9c018ccec163c8768f55e84139875a56b3a57ff2ac05ef55899118b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_metar-0.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on daedalus/mcp-metar

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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