MCP Server
Servidor MCP
Un servidor extensible del Protocolo de Contexto de Modelo (MCP) con herramientas de clima y hora. Creado para aprender: conéctalo a Claude Desktop y empieza a chatear.
Primeros pasos
1. Clonar e instalar
git clone <repo-url> && cd mcp-server
python3 -m venv .venv
source .venv/bin/activate # macOS / Linux / WSL
pip install -e .O con uv:
git clone <repo-url> && cd mcp-server
uv venv
source .venv/bin/activate
uv pip install -e .2. Conectar a Claude Desktop
Ejecuta el script de configuración para escribir automáticamente el archivo de configuración de Claude Desktop:
macOS:
python setup_claude_agent.pyEsto escribe ~/Library/Application Support/Claude/claude_desktop_config.json apuntando al .venv/bin/python de tu proyecto.
Si tu proyecto se encuentra en una ubicación no estándar, pásala explícitamente:
python setup_claude_agent.py --project-path /path/to/mcp-serverWindows (vía WSL):
python3 setup_claude_agent.py --windows --win-user <YourWindowsUser> --wsl-user <YourWSLUser>Por ejemplo:
python3 setup_claude_agent.py --windows --win-user Cam --wsl-user camEsto escribe %APPDATA%\Claude\claude_desktop_config.json y configura Claude Desktop para iniciar el servidor a través de WSL.
3. Reiniciar Claude Desktop
Cierra y vuelve a abrir Claude Desktop. Para verificar que el servidor está conectado, ve a Settings → Developer (Ajustes → Desarrollador); deberías ver mcp-server con una insignia verde de running (en ejecución).
4. Pruébalo
Pregúntale a Claude cualquiera de las siguientes cosas:
"What time is it?" (¿Qué hora es?) — utiliza la herramienta
get_current_time"Get weather alerts for California" (Obtén alertas meteorológicas para California) — utiliza el recurso
weather://alerts/CA"What's the forecast for latitude 40.7128, longitude -74.0060?" (¿Cuál es el pronóstico para la latitud 40.7128, longitud -74.0060?) — utiliza el recurso de pronóstico
No necesitas iniciar el servidor manualmente: Claude Desktop lo inicia automáticamente.
Related MCP server: mcp-weather
Herramientas y recursos disponibles
Tipo | Nombre | Qué hace |
Herramienta |
| Devuelve la hora actual con detección automática de zona horaria |
Recurso |
| Alertas meteorológicas para un estado de EE. UU. (ej. |
Recurso |
| Pronóstico de 5 periodos para coordenadas |
Prompt |
| Guía a Claude a través de un análisis meteorológico completo |
Prompt |
| Ayuda con comprobaciones, conversiones y comparaciones de zonas horarias |
Añadir tus propias herramientas
Abre src/mcp_server/server.py y añade una función con el decorador @mcp.tool():
@mcp.tool()
async def my_tool(param: str) -> str:
"""Description of what this tool does."""
return f"Result for {param}"Reinicia Claude Desktop para aplicar el cambio.
Para recursos y prompts, consulta CONTRIBUTING.md.
Ejecutar pruebas
pip install -e ".[dev]" # or: uv pip install -e ".[dev]"
pytestEstructura del proyecto
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 toolsLicencia
MIT
Recursos
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