Skip to main content
Glama
main.py579 B
from fastapi import FastAPI from app.api.routes.health import router as health_router from app.mcp.sse import messages_app as mcp_sse_messages_app from app.mcp.sse import router as mcp_sse_router from app.mcp.http_compat import router as mcp_http_compat_router def create_app() -> FastAPI: app = FastAPI(title="weather-mcp", version="0.1.0") app.include_router(health_router) app.include_router(mcp_sse_router, prefix="/mcp") app.include_router(mcp_http_compat_router) app.mount("/mcp/messages", mcp_sse_messages_app) return app app = create_app()

Latest Blog Posts

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/Jayleonc/weather-mcp'

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