Skip to main content
Glama

FastMCP QuickCalc Server

  • Linux
  • Apple
server.py458 B
from fastmcp import FastMCP import asyncio import os mcp = FastMCP("QuickCalc") @mcp.tool() def add(a: int, b: int) -> int: """Add two numbers together.""" return a + b @mcp.tool() def subtract(a: int, b: int) -> int: """Subtract second number from first number.""" return a - b if __name__ == "__main__": port = int(os.environ.get("PORT", 9000)) asyncio.run(mcp.run_async(transport="streamable-http", host="0.0.0.0", port=port))

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/isaramadunika/fast-mcp'

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