Skip to main content
Glama

MCP Example Simple Server

by rory-mccrory
server.py•271 B
from fastmcp import FastMCP mcp = FastMCP(name="mcp-example-simple") @mcp.tool() def greet(name: str) -> str: """Greet a user by name.""" return f"Hello, {name}!" if __name__ == "__main__": mcp.run(transport="streamable-http", host="localhost", port=8000)

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/rory-mccrory/mcp-example-simple'

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