MCP.so
登录

Weather MCP Server

@Annihilater

关于 Weather MCP Server

暂无概览

基本信息

分类

媒体与设计

许可证

MIT

运行时

node

传输方式

stdio

发布者

Annihilater

配置

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

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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

FAQ from Weather MCP Server

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.

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.

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"] }

What transport protocol does the server use?

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

Does Weather MCP Server require any authentication or API keys?

No authentication or API keys are mentioned in the documentation.

评论

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