weather_mcp_server

weather_mcp_server

3.2

If you are the rightful owner of weather_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The Weather MCP Server is a TypeScript-based implementation for querying weather information using the Model Context Protocol (MCP) SDK.

Weather MCP Server

基于@modelcontextprotocol/sdk实现的一个纯TS实现的天气查询MCP server

基本思路

  1. 使用 McpServer 类创建服务器实例
  2. 通过 server.tool() 注册工具
  3. 使用 zod 进行参数验证
  4. 返回标准化的响应格式

quick start

安装依赖

  1. npm run build
  2. npx @modelcontextprotocol/inspector node dist/index.js