Skip to main content
Glama

Multi-Agent Communication Platform (MCP)

run_server.py613 B
#!/usr/bin/env python """Run the MCP server with uvicorn.""" import asyncio import uvicorn from mcp_server.server import mcp from mcp_server.models.database import init_database from mcp_server.utils.logging import setup_logging async def startup(): """Initialize on startup.""" setup_logging() await init_database() print("MAC-P Server initialized", flush=True) if __name__ == "__main__": # Run initialization asyncio.run(startup()) # Create the SSE app from FastMCP app = mcp.create_sse_handler() # Run with uvicorn uvicorn.run(app, host="0.0.0.0", port=8000)

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/thiagovictorino/chat-mcp'

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