MCP Server

用於取得臺灣中央氣象署 API 資料的 Model Context Protocol (MCP) Server

Local serverstdio

What is the MCP MCP server?

MCP MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. 用於取得臺灣中央氣象署 API 資料的 Model Context Protocol (MCP) Server.

What the assistant can call

Once MCP is connected, these are the calls the assistant has available:

  • Tools — 1. get_taiwan_weather_forecast - 取得臺灣各縣市天氣預報資料 - 今明 36 小時天氣預報 - 輸入參數: - locationName (string): 臺灣縣市名稱 - 返回值:中央氣象署 API F-C0032-001 資料 Json (key
  • Build — The Build tool exposed by this server
  • Test — 可以使用 MCP Inspector 來測試 MCP Server:

Configuration and credentials

You will need one environment variable: CWA_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Setting it up

Installation goes through your MCP client rather than a global install: point it at @modelcontextprotocol/inspector on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. MCP's toolset — Tools, Build, Test — is a fair guide to whether it matches your workflow. It is maintained by GoneTone; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
Tools1. get_taiwan_weather_forecast - 取得臺灣各縣市天氣預報資料 - 今明 36 小時天氣預報 - 輸入參數: - locationName (string): 臺灣縣市名稱 - 返回值:中央氣象署 API F-C0032-001 資料 Json (key records)
BuildThe Build tool exposed by this server.
Test可以使用 [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) 來測試 MCP Server:

How to install the MCP MCP server

{
  "mcpServers": {
    "taiwan-weather": {
      "command": "npx",
      "args": [
        "-y",
        "@gonetone/mcp-server-taiwan-weather"
      ],
      "env": {
        "CWA_API_KEY": "<您的中央氣象署 API 授權碼>"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CWA_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use MCP to Tools.
  • Use MCP to Build.
  • Use MCP to Test.

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 3 tools (Tools, Build, Test) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with MCP directly.