
天气
STDIO美国天气信息访问MCP服务器
美国天气信息访问MCP服务器
Node.js server implementing Model Context Protocol (MCP) for accessing weather information in the US.
This is an example explained in MCP Quickstart.
It has been hosted as an npm package
for convenient use with npx
.
Merge the following JSON fragment into your claude_desktop_config.json
.
Please refer to the "Testing your server with Claude for Desktop" section of
MCP Quickstart for details.
# MacOS/Linux
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows
code $env:AppData\Claude\claude_desktop_config.json
{ "mcpServers": { "weather": { "command": "npx", "args": [ "-y", "@h1deya/mcp-server-weather" ], } } }
state
(string): Two-letter US state code (e.g. CA, NY)latitude
(number): Latitude of the locationlongitude
(number): Longitude of the locationThis example is based on the code explained in MCP Quickstart (github), whose license is CC-BY-4.0. The completed code examples are also hosted in this repo, whose license is MIT (Copyright (c) 2025 Model Context Protocol). So I've chosen the MIT license for this repo.