MCP ExplorerExplorer

Weather Mcp Server

@yxsci66on 10 months ago
1 MIT
FreeCommunity
AI Systems
weather_mcp_server

Overview

What is Weather Mcp Server

weather_mcp_server is a weather query MCP server implemented in pure TypeScript based on the @modelcontextprotocol/sdk.

Use cases

Use cases include providing real-time weather updates for users, integrating weather data into smart home systems, and developing weather-related analytics tools.

How to use

To use weather_mcp_server, first install the dependencies by running ‘npm run build’. Then, start the server using ‘npx @modelcontextprotocol/inspector node dist/index.js’.

Key features

Key features include the creation of server instances using the McpServer class, tool registration through server.tool(), parameter validation with zod, and standardized response formatting.

Where to use

weather_mcp_server can be used in applications that require weather data retrieval, such as mobile apps, web applications, and IoT devices.

Content

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

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers