Function Calling Comparison

•
9
•

Illustrates the differences between LLM function calling and the Model Context Protocol (MCP) by controlling Home Assistant lights.

This repository provides a practical comparison between LLM function calling and the Model Context Protocol (MCP). Through examples, including a CLI app leveraging OpenAI's function calling and a Node.js MCP server, it showcases how MCP builds upon function calling to facilitate external service communication and command execution. The repository focuses on controlling Home Assistant lights, demonstrating the distinct approaches of local function execution versus standardized protocol-based interaction with third-party services.

主な機能

01Offers a clear comparison between function calling and MCP.
02Provides a Node.js MCP server for exposing functions to LLMs.
03Demonstrates OpenAI function calling for Home Assistant control.
043 GitHub stars
05Includes a Home Assistant WebSocket API client.
06Provides setup instructions for the MCP server.

ユースケース

01Integrating LLMs with Home Assistant using function calling or MCP.
02Building MCP-compatible servers for external services.
03Understanding the benefits of MCP over function calling.