MCP.so
登录

Simple Weather MCP Server example from Quickstart

@hideya

关于 Simple Weather MCP Server example from Quickstart

Simple Weather MCP Server Example

基本信息

分类

媒体与设计

许可证

MIT

运行时

node

传输方式

stdio

发布者

hideya

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": [
        "-y",
        "@h1deya/mcp-server-weather"
      ]
    }
  }
}

工具

2

Get weather alerts for a US state.

Get weather forecast for a location in the US

概览

What is Simple Weather MCP Server example from Quickstart?

A Node.js server implementing the Model Context Protocol (MCP) for accessing weather information in the United States. It is the example server from the official MCP Quickstart guide and is hosted as an npm package for convenient use with npx.

How to use Simple Weather MCP Server example from Quickstart?

Add the server to your Claude Desktop configuration (claude_desktop_config.json) using npx -y @h1deya/mcp-server-weather as the command. Once configured, you can ask Claude for weather alerts or forecasts using natural language queries.

Key features of Simple Weather MCP Server example from Quickstart?

  • get-alerts: retrieve weather alerts for a US state using a two-letter state code.
  • get-forecast: retrieve weather forecast for a US location using latitude and longitude coordinates.
  • Runs via npx with no manual installation required.
  • Based on the official Model Context Protocol (MCP).
  • Serves as a learning example from the MCP Quickstart guide.

Use cases of Simple Weather MCP Server example from Quickstart?

  • Ask Claude "Tomorrow's weather in Palo Alto?" to get a US weather forecast.
  • Ask Claude "Any weather alerts in California?" to retrieve active alerts for a state.
  • Learn how to build an MCP server by following the Quickstart example.

FAQ from Simple Weather MCP Server example from Quickstart

What tools does it provide?

Two tools: get-alerts (input: two-letter US state code) and get-forecast (inputs: latitude and longitude numbers).

What runtime does it require?

It is a Node.js server; Node.js must be installed to run it via npx.

How do I configure it with Claude Desktop?

Add the JSON fragment shown in the README to your claude_desktop_config.json file, providing npx, -y, and @h1deya/mcp-server-weather as the command and arguments.

What license is it under?

MIT license.

Is this server for production use or learning?

It is an example server from the MCP Quickstart guide, primarily intended for learning and demonstration purposes.

评论

媒体与设计 分类下的更多 MCP 服务器