MCP Server
MCP-Server
Ein erweiterbarer Model Context Protocol (MCP)-Server mit Wetter- und Zeit-Tools. Entwickelt zum Lernen – verbinden Sie ihn mit Claude Desktop und beginnen Sie zu chatten.
Erste Schritte
1. Klonen & Installieren
git clone <repo-url> && cd mcp-server
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux / WSL
pip install -e .Oder mit uv:
git clone <repo-url> && cd mcp-server
uv venv
source .venv/bin/activate
uv pip install -e .2. Mit Claude Desktop verbinden
Führen Sie das Setup-Skript aus, um die Konfigurationsdatei von Claude Desktop automatisch zu schreiben:
macOS:
python setup_claude_agent.pyDies schreibt ~/Library/Application Support/Claude/claude_desktop_config.json und verweist auf das .venv/bin/python Ihres Projekts.
Wenn sich Ihr Projekt an einem nicht standardmäßigen Speicherort befindet, geben Sie diesen explizit an:
python setup_claude_agent.py --project-path /path/to/mcp-serverWindows (via WSL):
python3 setup_claude_agent.py --windows --win-user <YourWindowsUser> --wsl-user <YourWSLUser>Zum Beispiel:
python3 setup_claude_agent.py --windows --win-user Cam --wsl-user camDies schreibt %APPDATA%\Claude\claude_desktop_config.json und konfiguriert Claude Desktop so, dass der Server über WSL gestartet wird.
3. Claude Desktop neu starten
Schließen Sie Claude Desktop und öffnen Sie es erneut. Um zu überprüfen, ob der Server verbunden ist, gehen Sie zu Einstellungen → Entwickler — Sie sollten mcp-server mit einem grünen running-Badge sehen.
4. Ausprobieren
Fragen Sie Claude eines der folgenden Dinge:
"Wie spät ist es?" — verwendet das
get_current_time-Tool"Hole Wetterwarnungen für Kalifornien" — verwendet die Ressource
weather://alerts/CA"Wie ist die Vorhersage für Breitengrad 40.7128, Längengrad -74.0060?" — verwendet die Vorhersage-Ressource
Sie müssen den Server nicht manuell starten — Claude Desktop startet ihn automatisch.
Related MCP server: mcp-weather
Verfügbare Tools & Ressourcen
Typ | Name | Was es tut |
Tool |
| Gibt die aktuelle Uhrzeit mit automatischer Zeitzonenerkennung zurück |
Ressource |
| Wetterwarnungen für einen US-Bundesstaat (z. B. |
Ressource |
| 5-Perioden-Vorhersage für Koordinaten |
Prompt |
| Leitet Claude durch eine vollständige Wetteranalyse |
Prompt |
| Hilft bei Zeitzonenprüfungen, Konvertierungen und Vergleichen |
Eigene Tools hinzufügen
Öffnen Sie src/mcp_server/server.py und fügen Sie eine Funktion mit dem @mcp.tool()-Dekorator hinzu:
@mcp.tool()
async def my_tool(param: str) -> str:
"""Description of what this tool does."""
return f"Result for {param}"Starten Sie Claude Desktop neu, um die Änderung zu übernehmen.
Für Ressourcen und Prompts siehe CONTRIBUTING.md.
Tests ausführen
pip install -e ".[dev]" # or: uv pip install -e ".[dev]"
pytestProjektstruktur
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 toolsLizenz
MIT
Ressourcen
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