MCP.so
登录

Weather MCP Server

@Annihilater

基本信息

分类

媒体与设计

许可证

MIT

传输方式

stdio

作者

Annihilater

关于 Weather MCP Server

暂无概览

Weather MCP Server 配置

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

{
  "mcpServers": {
    "mcp-server-get-weather": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/inspector",
        "node",
        "dist/index.js"
      ]
    }
  }
}

Weather MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Weather MCP Server?

Weather MCP Server is a lightweight weather information service built with the Model Context Protocol (MCP). It provides current weather conditions for cities worldwide and is designed for easy integration with AI assistants and MCP‑compatible applications.

How to use Weather MCP Server?

Clone the repository, run npm install, then npm run build. Start the server with npx @modelcontextprotocol/inspector node dist/index.js. To use in Cursor, add the configuration "mcp-server-get-weather" to ~/.cursor/mcp.json, specifying the command node and the full path to dist/index.js.

Key features of Weather MCP Server

  • Retrieves current weather by city name
  • Returns temperature, weather description, humidity, and wind speed
  • Falls back to generated data when external API is unavailable
  • Lightweight and simple implementation built with TypeScript
  • Communicates via stdio transport using MCP protocol

Use cases of Weather MCP Server

  • Integrating real‑time weather data into an AI assistant or chatbot
  • Quickly checking weather for a specific city during conversation
  • Providing weather context in automated workflows or decision‑making tools
  • Serving as a demo or reference for MCP server development

常见问题

1

How does Weather MCP Server obtain weather data?

It uses an external API to fetch live weather data; if the external API is unavailable, it falls back to generated data.

2

What are the system requirements to run this server?

Node.js, npm, and TypeScript are required. The project uses the MCP SDK (`@modelcontextprotocol/sdk`) and Zod for validation.

3

How do I configure Weather MCP Server in Cursor?

Add the following to `~/.cursor/mcp.json`: `"mcp-server-get-weather": { "command": "node", "args": ["<path-to-your-project>/dist/index.js"] }`

4

What transport protocol does the server use?

The server uses stdio transport, as specified in the project structure.

5

Does Weather MCP Server require any authentication or API keys?

No authentication or API keys are mentioned in the documentation.

评论

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