Skip to main content
Glama

Terminal MCP Server

by YongpengFu
math.py316 B
from mcp.server.fastmcp import FastMCP mcp = FastMCP(name="math_server") @mcp.tool() def add(a: int, b: int) -> int: return a + b @mcp.tool() def subtract(a: int, b: int) -> int: return a - b @mcp.tool() def multiply(a: int, b: int) -> int: return a * b 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/YongpengFu/mcp-server'

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