We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tianhuil/agent-state'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
addition.py•426 B
"""Main MCP server module with addition tool."""
from fastmcp import FastMCP
# Create the MCP server instance
mcp = FastMCP("Addition MCP Server")
@mcp.tool()
def add(a: float, b: float) -> float:
"""Add two numbers together.
Args:
a: The first number to add
b: The second number to add
Returns:
The sum of a and b
"""
return a + b
if __name__ == "__main__":
mcp.run()