We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/allen-munsch/mcp-prefect'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
server.py•456 B
from fastapi import Request, Response
from fastapi.responses import JSONResponse
from fastmcp import FastMCP
from . import __version__
# Create the FastMCP server
mcp = FastMCP(f"MCP Prefect {__version__}")
@mcp.custom_route("/health", methods=["GET"])
async def health_check(request: Request) -> Response:
return JSONResponse({"status": "ok"})
# Run the server when executed directly
if __name__ == "__main__":
from .main import main
main()