Skip to main content
Glama
server.py389 B
from fastmcp import FastMCP mcp = FastMCP(name="Basic Console Server") @mcp.tool() def echo(message: str) -> str: """Prints the provided message to the console and returns it.""" print(f"MCP Server received: {message}") return message def run_server(): print("Starting basic MCP server...") mcp.run(transport="stdio") if __name__ == "__main__": run_server()

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/jairosoft-com/mcp-server-python-template'

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