Skip to main content
Glama

Home Assistant MCP

by hpohlmann
main.py520 B
from mcp.server.fastmcp import FastMCP from app.config import validate_config from app.tools import init_tools # Initialize FastMCP server mcp = FastMCP("home-assistant") # Initialize the tools with the FastMCP instance init_tools(mcp) if __name__ == "__main__": # Validate configuration try: validate_config() except ValueError as e: print(f"Configuration error: {str(e)}") exit(1) # Initialize and run the server using stdio transport mcp.run(transport='stdio')

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/hpohlmann/home-assistant-mcp'

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