Skip to main content
Glama
main.pyβ€’618 B
from mcp.server.fastmcp import FastMCP from bookings import book_cab, cancel_cab, get_driver_details # Initialize the MCP server mcp = FastMCP("cab_service") # βœ… Register your tools using the latest FastMCP API mcp.add_tool(book_cab, name="book_cab", description="Book a cab from pickup to dropoff") mcp.add_tool(cancel_cab, name="cancel_cab", description="Cancel an existing cab booking") mcp.add_tool(get_driver_details, name="get_driver_details", description="Get driver details for a booking") if __name__ == "__main__": print("πŸš€ Starting Cab Service MCP Server (FastMCP latest API)...") 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/MaheshPonnam6842/MCP-Server'

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