用於取得臺灣中央氣象署 API 資料的 Model Context Protocol (MCP) Server。
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add taiwan-weather --env CWA_API_KEY='<CWA_API_KEY>' -- npx -y @gonetone/mcp-server-taiwan-weather~/.codex/config.toml
[mcp_servers.taiwan-weather]
command = "npx"
args = ["-y", "@gonetone/mcp-server-taiwan-weather"]
env = { CWA_API_KEY = "<CWA_API_KEY>" }
# codex mcp add taiwan-weather --env CWA_API_KEY='<CWA_API_KEY>' -- npx -y @gonetone/mcp-server-taiwan-weather~/.cursor/mcp.json
{
"mcpServers": {
"taiwan-weather": {
"command": "npx",
"args": [
"-y",
"@gonetone/mcp-server-taiwan-weather"
],
"env": {
"CWA_API_KEY": "<CWA_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"taiwan-weather": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@gonetone/mcp-server-taiwan-weather"
],
"env": {
"CWA_API_KEY": "<CWA_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"taiwan-weather": {
"command": "npx",
"args": [
"-y",
"@gonetone/mcp-server-taiwan-weather"
],
"env": {
"CWA_API_KEY": "<CWA_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"taiwan-weather": {
"command": "npx",
"args": [
"-y",
"@gonetone/mcp-server-taiwan-weather"
],
"env": {
"CWA_API_KEY": "<CWA_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"taiwan-weather": {
"command": "npx",
"args": [
"-y",
"@gonetone/mcp-server-taiwan-weather"
],
"env": {
"CWA_API_KEY": "<CWA_API_KEY>"
}
}
}
}需要的环境变量
CWA_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。