Skip to main content
Glama
sample_mcp_streamable_server.py354 B
from mcp.server.fastmcp import FastMCP # Initialize the MCP server for prompting an MCP client mcp = FastMCP("Streamable MCP Server") @mcp.tool() def greet(name: str) -> str: """Greets the user with their name.""" return f"Hello, {name}! Hope you're having a great day! 😊" if __name__ == "__main__": mcp.run(transport="streamable-http")

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/sritajkumarpatel/learn_mcp_2025'

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