from mcp.server.fastmcp import FastMCP
# Create server instance with only required name
mcp = FastMCP("Demo Prompt Server")
# Define a minimal prompt with only required fields
@mcp.prompt()
def minimal_demo() -> str:
"""A demonstration of a minimal MCP prompt with only required fields."""
# Return a simple string (converts to user message)
return "This is a minimal demo prompt response!"
# Define another minimal prompt
@mcp.prompt()
def greeting_prompt() -> str:
"""A simple greeting prompt for demonstration."""
return "Hello! This is a greeting from the demo prompt server."
if __name__ == "__main__":
mcp.run()
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/jck411/MCP_BACKEND_OPENROUTER'
If you have feedback or need assistance with the MCP directory API, please join our Discord server