We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sukruthr/weather-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
main.py•357 B
from mcp.server.fastmcp import FastMCP
from tools.weather import get_weather
from typing import Dict, Any
mcp = FastMCP("weather-bot")
@mcp.tool()
async def fetch_weather(location: str) -> str:
"""
Get weather information for a given location
"""
return get_weather(location)
if __name__ == "__main__":
mcp.run(transport="stdio")