MCP Weather Client & Server Example with Typescript
@ijshd7
关于 MCP Weather Client & Server Example with Typescript
MCP Client & Server
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Weather Client & Server Example with Typescript?
This is a tutorial project demonstrating the Model Context Protocol (MCP) with Anthropic’s Claude models. It includes a CLI-based client and a weather tools server that communicate via MCP over stdio.
How to use MCP Weather Client & Server Example with Typescript?
Prerequisites are Node.js v20+, an Anthropic API key with credits, and the @anthropic-ai/sdk. Run npm install && npm run build in both the client and server directories, then from client execute node build/index.js ../server/build/index.js.
Key features of MCP Weather Client & Server Example with Typescript?
- MCP‑compliant server exposing
get-alertsandget-forecasttools - CLI client using Anthropic Claude to call weather tools
- Written in TypeScript for both client and server
- Communicates over stdio transport
- Supports
.envconfiguration withANTHROPIC_API_KEY
Use cases of MCP Weather Client & Server Example with Typescript?
- Learning how to build an MCP server and client from scratch
- Prototyping weather‑alert and forecast tool integrations with Claude
- Testing MCP’s stdio transport in a local development environment
- Demonstrating a complete end‑to‑end MCP workflow with Anthropic models
FAQ from MCP Weather Client & Server Example with Typescript?
What runtime and dependencies are required?
Node.js v20+ and an Anthropic API key with credits. The @anthropic-ai/sdk is used by the client.
How does the server communicate with the client?
The server and client communicate over stdio using the Model Context Protocol (MCP).
What tools does the server expose?
The server exposes the get-alerts and get-forecast tools for weather data.
Where is the API key configured?
The API key is set via a .env file using the ANTHROPIC_API_KEY variable.
What transport does MCP use in this example?
This example uses stdio as the MCP transport between the client and server.
媒体与设计 分类下的更多 MCP 服务器

Spotify MCP
varunnealMCP to connect your LLM with Spotify.
Spotify MCP Server
marcelmaraisLightweight MCP server for Spotify
YouTube MCP Server
ZubeidHendricksMCP Server for YouTube API, enabling video management, Shorts creation, and advanced analytics
yt-dlp-mcp
kevinwattA Model Context Protocol (MCP) server that bridges Video & Audio content with Large Language Models using yt-dlp.
Image-Gen-Server
fengin一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
评论