Skip to main content
Glama

MCP Server Example

by sakthigcp
deployment.py192 B
from mcp.server.fastmcp import FastMCP mcp = FastMCP("Demo") @mcp.tool() def add(a: int, b: int) -> int: """ Adds two numbers a and b and returns the result! """ return a + b

Latest Blog Posts

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/sakthigcp/mcpserverexample'

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