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•566 B
from fastapi import Request, Response
from fastapi.responses import JSONResponse
from fastmcp import FastMCP
# Create the FastMCP server
mcp = FastMCP("Prefect MCP",
host='0.0.0.0',
dependencies=[
"prefect>=3.2.15",
"uvicorn>=0.34.0"
])
@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()