MCP Server
MCPサーバー
天気および時刻ツールを備えた拡張可能なModel Context Protocol (MCP)サーバーです。学習用に構築されており、Claude Desktopに接続してすぐにチャットを開始できます。
はじめに
1. クローンとインストール
git clone <repo-url> && cd mcp-server
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux / WSL
pip install -e .または uv を使用する場合:
git clone <repo-url> && cd mcp-server
uv venv
source .venv/bin/activate
uv pip install -e .2. Claude Desktopへの接続
セットアップスクリプトを実行して、Claude Desktopの設定ファイルを自動的に書き込みます:
macOS:
python setup_claude_agent.pyこれにより、プロジェクトの .venv/bin/python を指す ~/Library/Application Support/Claude/claude_desktop_config.json が書き込まれます。
プロジェクトが標準以外の場所にある場合は、明示的にパスを渡してください:
python setup_claude_agent.py --project-path /path/to/mcp-serverWindows (WSL経由):
python3 setup_claude_agent.py --windows --win-user <YourWindowsUser> --wsl-user <YourWSLUser>例:
python3 setup_claude_agent.py --windows --win-user Cam --wsl-user camこれにより、%APPDATA%\Claude\claude_desktop_config.json が書き込まれ、WSL経由でサーバーを起動するようにClaude Desktopが設定されます。
3. Claude Desktopの再起動
Claude Desktopを閉じてから再度開きます。サーバーが接続されていることを確認するには、設定 → 開発者に移動してください。mcp-server と緑色の 実行中 バッジが表示されるはずです。
4. 試してみる
Claudeに以下のように尋ねてみてください:
「今何時?」 —
get_current_timeツールを使用します「カリフォルニア州の気象警報を取得して」 —
weather://alerts/CAリソースを使用します「緯度40.7128、経度-74.0060の天気予報は?」 — 予報リソースを使用します
サーバーを手動で起動する必要はありません。Claude Desktopが自動的に起動します。
Related MCP server: mcp-weather
利用可能なツールとリソース
タイプ | 名前 | 機能 |
ツール |
| 自動タイムゾーン検出による現在時刻を返します |
リソース |
| 米国の州の気象警報 (例: |
リソース |
| 座標に基づいた5期間の天気予報 |
プロンプト |
| Claudeによる詳細な気象分析をガイドします |
プロンプト |
| タイムゾーンの確認、変換、比較を支援します |
独自のツールの追加
src/mcp_server/server.py を開き、@mcp.tool() デコレータを使用して関数を追加します:
@mcp.tool()
async def my_tool(param: str) -> str:
"""Description of what this tool does."""
return f"Result for {param}"Claude Desktopを再起動して変更を反映させます。
リソースとプロンプトについては、CONTRIBUTING.md を参照してください。
テストの実行
pip install -e ".[dev]" # or: uv pip install -e ".[dev]"
pytestプロジェクト構造
src/mcp_server/
├── server.py # MCP server entry point — register tools here
└── tools/
├── weather/ # Weather alerts & forecasts (NWS API)
├── time/ # IP-based timezone & current time
└── conversation/ # Conversation toolsライセンス
MIT
リソース
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceProvides real-time weather data from Open-Meteo API, mathematical calculations, and time zone information through MCP protocol. Works with both Claude Desktop and Gemini AI CLI for natural language interactions.
- Flicense-qualityDmaintenanceA Model Context Protocol (MCP) server built with the mcp-framework to provide weather-related tools and data to AI clients. It enables integration of weather capabilities and custom tools into the MCP ecosystem for use with platforms like Claude Desktop.17
- AlicenseAqualityCmaintenanceAn MCP server that provides weather and time tools, enabling users to get current time, weather alerts, and forecasts through natural language with Claude Desktop.4MIT
- Flicense-qualityDmaintenanceA simple MCP server that provides weather tools, deployable with Docker, and designed to be used with Claude Desktop via a WSL bridge.
Related MCP Connectors
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Timezone MCP — wraps WorldTimeAPI (free, no auth)
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/naggbagg/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server