MCP ExplorerExplorer

Mcp Weather Service Server

@Sunwood-ai-labson 9 months ago
5 MIT
FreeCommunity
AI Systems
# MCP Weather Service Server Manages notes with custom URI access.

Overview

What is Mcp Weather Service Server

The mcp-weather-service-server is a weather service server that manages notes with custom URI access. It implements a simple note storage system, allowing users to access individual notes via a custom note:// URI scheme.

Use cases

Use cases for the mcp-weather-service-server include: 1) Personal note management for users who want to keep track of weather-related information; 2) Educational platforms that require summarization of notes for students; 3) Integration in applications that need a simple note storage and retrieval system.

How to use

To use the mcp-weather-service-server, you need to install it and configure it in your application. You can add new notes using the ‘add-note’ tool by providing the required ‘name’ and ‘content’ parameters. Additionally, you can summarize all stored notes with the ‘summarize-notes’ prompt.

Key features

Key features of the mcp-weather-service-server include: 1) Custom note access via note:// URI scheme; 2) Ability to summarize notes with customizable detail levels; 3) A straightforward interface for adding new notes.

Where to use

The mcp-weather-service-server can be used in various fields such as personal note-taking applications, educational tools, and any system requiring organized note management with easy access.

Content

🌦️ weather_service MCP サーバー

🧩 コンポーネント

📚 リソース

このサーバーは、シンプルなノート保存システムを実装しています:

  • カスタム note:// URIスキームで個別のノートにアクセス
  • 各ノートリソースには、名前、説明、text/plainのマイムタイプがあります

💡 プロンプト

サーバーは単一のプロンプトを提供します:

  • summarize-notes:保存されている全てのノートの要約を作成
    • オプションの"style"引数で詳細レベルを制御(brief/detailed)
    • 全ての現在のノートとスタイル設定を組み合わせてプロンプトを生成

🛠️ ツール

サーバーは1つのツールを実装しています:

  • add-note:新しいノートをサーバーに追加
    • "name"と"content"を必須の文字列引数として受け取り
    • サーバーの状態を更新し、リソースの変更をクライアントに通知

🚀 クイックスタート

📥 インストール

Claude Desktop

MacOSの場合: ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windowsの場合: %APPDATA%/Claude/claude_desktop_config.json

開発/未公開サーバーの設定 ``` "mcpServers": { "weather_service": { "command": "uv", "args": [ "--directory", "C:\Prj\weather_service", "run", "weather_service" ] } } ```
公開サーバーの設定 ``` "mcpServers": { "weather_service": { "command": "uvx", "args": [ "weather_service" ] } } ```

👨‍💻 開発

🏗️ ビルドと公開

パッケージを配布用に準備するには:

  1. 依存関係を同期しロックファイルを更新:
uv sync
  1. パッケージのディストリビューションをビルド:
uv build

これにより、dist/ディレクトリにソースとホイールのディストリビューションが作成されます。

  1. PyPIに公開:
uv publish

注意:PyPIの認証情報は環境変数またはコマンドフラグで設定する必要があります:

  • トークン:--tokenまたはUV_PUBLISH_TOKEN
  • またはユーザー名/パスワード:--username/UV_PUBLISH_USERNAME--password/UV_PUBLISH_PASSWORD

🔍 デバッグ

MCPサーバーはstdioを介して実行されるため、デバッグが難しい場合があります。最適なデバッグ体験のために、MCP Inspectorの使用を強く推奨します。

npmを使用して、次のコマンドでMCP Inspectorを起動できます:

npx @modelcontextprotocol/inspector uv --directory C:\Prj\weather_service run weather-service

起動時、InspectorはブラウザでアクセスできるURLを表示し、デバッグを開始できます。

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers