MCP.so
ログイン

MCP Weather Client & Server Example with Typescript

@ijshd7

基本情報

カテゴリ

メディアとデザイン

ライセンス

ISC license

トランスポート

stdio

作者

ijshd7

MCP Weather Client & Server Example with Typescript について

MCP Client & Server

MCP Weather Client & Server Example with Typescript の設定

標準の設定はありません

このサーバーの README には解析可能な MCP 設定ブロックが含まれていません。インストール手順はリポジトリをご確認ください。

リポジトリ

MCP Weather Client & Server Example with Typescript のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは 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-alerts and get-forecast tools
  • CLI client using Anthropic Claude to call weather tools
  • Written in TypeScript for both client and server
  • Communicates over stdio transport
  • Supports .env configuration with ANTHROPIC_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

よくある質問

1

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.

2

How does the server communicate with the client?

The server and client communicate over stdio using the Model Context Protocol (MCP).

3

What tools does the server expose?

The server exposes the `get-alerts` and `get-forecast` tools for weather data.

4

Where is the API key configured?

The API key is set via a `.env` file using the `ANTHROPIC_API_KEY` variable.

5

What transport does MCP use in this example?

This example uses stdio as the MCP transport between the client and server.

コメント

「メディアとデザイン」の他のコンテンツ