WebSocket
Implements a Model Context Protocol (MCP) server and client using WebSockets for improved communication with local language models.
WebSocket MCP provides a robust and flexible Model Context Protocol (MCP) server and client implementation leveraging a custom WebSocket transport layer. Designed to overcome limitations of standard I/O and SSE transports, it facilitates efficient message exchange between clients and local language models (LLMs). The included demo showcases a complete local LLM chatbot, enabling users to interact with models via a client that can connect to a local or remote server. The solution provides a foundation for building sophisticated applications that require real-time interaction with LLMs.
主要功能
01WebSocket-based transport for efficient communication
02Local LLM server integration using the `ollama` package
03Supports various LLM models and configurations
04Generic MCP client for resource listing and data streaming
05Configurable server and client via command-line arguments
060 GitHub stars
使用案例
01Facilitating communication between clients and LLMs
02Creating real-time applications that require LLM interaction
03Building local LLM chatbot applications