Skip to main content
Glama

GitHub Remote MCP Server

by brentlaster
multi_tool_server.py529 B
from fastapi import FastAPI from fastmcp import FastMCP from mcp import tool @tool def calculator(expression: str) -> str: try: result = eval(expression, {"__builtins__": {}}) return str(result) except Exception as e: return f"Error: {str(e)}" @tool def reverse_string(text: str) -> str: return text[::-1] # Combine tools into one FastMCP app app = FastMCP().app if __name__ == "__main__": import uvicorn uvicorn.run("multi_tool_server:app", host="0.0.0.0", port=7860, reload=True)

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/brentlaster/agent-mcp-ollama'

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