#!/usr/bin/env python3
from fastmcp import FastMCP
# Create MCP server instance configured for HTTP transport
mcp = FastMCP("Animal Data Server")
@mcp.tool()
def get_cat_info() -> str:
"""Get information about cats"""
return "Cats are independent, agile domestic animals known for their hunting skills and affectionate nature."
@mcp.tool()
def get_dog_info() -> str:
"""Get information about dogs"""
return "Dogs are loyal, social companion animals known for their intelligence and strong bond with humans."
@mcp.tool()
def get_bird_info() -> str:
"""Get information about birds"""
return "Birds are feathered, winged animals capable of flight, known for their diverse songs and nesting behaviors."
if __name__ == "__main__":
# Run as HTTP server on port 8000
mcp.run(transport="http", host="0.0.0.0", port=8000)