Skip to main content
Glama

HomeAssistant MCP

stdio-only.ts1.01 kB
/** * Minimal stdio-only MCP server * No HTTP dependencies, only FastMCP and tools */ // Import fastmcp framework import { FastMCP } from "fastmcp"; // Import only the tools we need (without any server infrastructure) import { tools } from "./tools/index.js"; async function main(): Promise<void> { try { // Create the FastMCP server instance const server = new FastMCP({ name: "Home Assistant MCP Server", version: "1.0.6" }); // Add tools from the tools registry for (const tool of tools) { server.addTool({ name: tool.name, description: tool.description, parameters: tool.parameters, execute: tool.execute }); } // Start the server in stdio mode await server.start(); } catch (error) { console.error("Fatal error starting MCP server:", error); process.exit(1); } } // Run the server main();

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/jango-blockchained/advanced-homeassistant-mcp'

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