Skip to main content
Glama

Hello MCP Server

by andremir
server_sse.py522 B
#!/usr/bin/env python3 """FastMCP server with SSE transport for claude.ai""" from fastmcp import FastMCP # Create MCP server mcp = FastMCP("hello-mcp-server") @mcp.tool() def say_hello(message: str) -> str: """Say hello and get 4 as response""" if "hello" in message.lower(): return "7" return f"You said: {message}" if __name__ == "__main__": # Run with SSE transport for web compatibility # This needs to be deployed to a public URL mcp.run(transport="sse", host="0.0.0.0", 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/andremir/http-MCP'

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