METAR和TAF信息服务器

一个轻量级的MCP服务器,通过stdio传输协议提供METAR和TAF信息。

  • by tfraudet
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 tfraudet/metar-mcp-server

使用说明

metar-mcp-server

A lightweight MCP server providing METAR and TAF information over the stdio transport protocol.

Requirements

  • Python 3.12 or later
  • Docker
  • VS Code, Warp or another MCP Client

How to run it locally

We suggest you to create a virtual environment for running this app with Python 3. Clone this repository and open your terminal/command prompt in a folder.

git clone https://github.com/tfraudet/metar-mcp-server.git
cd ./metar-mcp-server
python3 -m venv .venv

Then, activate the virtual environment:

On Unix systems

source .venv/bin/activate

On Window systems

.venv\scripts\activate

Then, install the requirements:

pip install -r requirements.txt

Build the MCP server as a docker image:

docker build -t metar-mcp-server .

And install the mcp-server package:

Install in VS Code (using python version running locally)

On VS Code, add the following JSON block to your workspace .vscode/mcp.json file

{
  "servers": {
    "Aviation Weather Center": {
      "type": "stdio",
      "command": "python",
      "args": [
        "${workspaceFolder}/server.py"
      ]
    }
  }
}
Install on Warp (using docker)

See Warp Model Context Protocol Documentation for details.

  1. Navigate Settings > AI > Manage MCP servers.
  2. Add a new MCP server by clicking the + Add button.
  3. Paste the configuration given below:
{
  "Aviation Weather Center": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "metar-mcp-server"
    ],
    "env": {},
    "working_directory": null,
    "start_on_launch": true
  }
}