Skip to main content
Glama

Agentic MCP Weather System

by Shivbaj
run_server.py•515 B
#!/usr/bin/env python3 """ Simple script to run the weather MCP server """ if __name__ == "__main__": from weather import main print("Starting weather MCP server on http://localhost:8000") print("Available endpoints:") print(" POST /tools/get_weather - Get current weather for a city") print(" POST /tools/get_forecast - Get forecast for lat/lon coordinates") print(" POST /tools/get_alerts - Get weather alerts for a US state") print("\nPress Ctrl+C to stop the server") main()

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/Shivbaj/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server