MCP.so
ログイン

My MCP Weather Server

@EnigmaticHarvest

基本情報

カテゴリ

メディアとデザイン

ライセンス

MIT license

トランスポート

stdio

作者

EnigmaticHarvest

My MCP Weather Server について

A dummy MCP server to test the mcp-chat-cli at

My MCP Weather Server の設定

標準の設定はありません

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

リポジトリ

My MCP Weather Server のツール

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

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

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is My MCP Weather Server?

My MCP Weather Server is an example MCP (Model Context Protocol) server built with the @modelcontextprotocol/sdk for TypeScript. It exposes a single tool that returns dummy weather information for a few predefined cities, intended for use as a backend by MCP-compliant clients such as LLM‑powered agents.

How to use My MCP Weather Server?

Clone or create the project, install dependencies with npm install, then run npm run build (or use the development command with ts-node and nodemon). The server uses Streamable HTTP Transport; clients call the get_city_weather tool by providing a city string and an optional unit parameter.

Key features of My MCP Weather Server

  • Implements the Model Context Protocol (MCP)
  • Uses Streamable HTTP Transport for communication
  • Exposes a get_city_weather tool with structured output
  • Accepts optional unit parameter (metric/imperial, defaults to metric)
  • Returns dummy weather data: temperature, description, humidity
  • Demonstes simple in-memory session management

Use cases of My MCP Weather Server

  • Prototyping an MCP‑compliant weather tool for an LLM agent
  • Learning how to build and test an MCP server with TypeScript
  • Demonstrating structured tool output and session handling
  • Testing MCP client‑server integration without a real weather API

よくある質問

1

What does the `get_city_weather` tool return?

It returns dummy weather information including temperature, description, and humidity, along with `structuredContent` matching a defined `outputSchema` for reliable client parsing.

2

What are the runtime dependencies?

Node.js v18 or higher and npm (or yarn/pnpm). The server uses the `@modelcontextprotocol/sdk` and runs via `ts-node` in development mode.

3

Does My MCP Weather Server use a real weather API?

No. All weather data is dummy/in‑memory for a few predefined cities (e.g., paris, london, tokyo). It is an example server, not a production service.

4

What transport does the server use?

It uses `StreamableHTTPServerTransport`, the recommended MCP transport for HTTP‑based communication.

5

Is authentication or session management included?

The server demonstrates basic in‑memory session handling, but no authentication mechanism is implemented.

コメント

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