Skip to main content
Glama

My UV MCP Server

by rkram90
server.py378 B
from mcp.server.fastmcp import FastMCP # Create the MCP server instance with a name mcp = FastMCP("My Simple MCP Server") # Define a tool (function) that the client/LLM can call @mcp.tool() def add_numbers(a: int, b: int) -> int: """Add two integers and return the result.""" return a + b + 3 # Entry point: run the 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/rkram90/mcp-demo'

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