#!/usr/bin/env python3
"""
Simple test MCP server to verify tool registration
"""
from fastmcp import FastMCP
# Initialize FastMCP server
mcp = FastMCP("Simple Test Server")
@mcp.tool()
def hello_world(name: str = "World") -> str:
"""
Say hello to someone.
Args:
name: The name to greet
Returns:
A greeting message
"""
return f"Hello, {name}!"
@mcp.tool()
def add_numbers(a: int, b: int) -> int:
"""
Add two numbers together.
Args:
a: First number
b: Second number
Returns:
The sum of a and b
"""
return a + b
if __name__ == "__main__":
print("Starting Simple Test MCP Server...")
print("Available tools should be: hello_world, add_numbers")
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/RyanCadby/mcp-license-scanner'
If you have feedback or need assistance with the MCP directory API, please join our Discord server