Skip to main content
Glama

MCP-Add-Weather

mathserver.py470 B
from mcp.server.fastmcp import FastMCP mcp = FastMCP(name="math") @mcp.tool() def add(a: int, b: int) -> int: """ _summary_ Add two numbers """ return a + b @mcp.tool() def subtract(a: int, b: int) -> int: """ _summary_ Subtract two numbers """ return a - b @mcp.tool() def multiply(a: int, b: int) -> int: """ _summary_ Multiply two numbers """ return a * b if __name__ == "__main__": mcp.run(transport="stdio")

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/kasinathnalla/MCP-Add-Weather'

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