TinyMCP is a lightweight C++ SDK for implementing the MCP Server.
🤔 What is MCP?
MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
SDK public directory, used to store global type definitions, global constant resources, helper classes, etc.
Message
Definition and implementation of the basic data structures of the MCP protocol, mainly including the implementation of protocol data such as standard requests, responses, and notifications that follow the JSON-RPC 2.0 protocol.
Session
Definition and implementation of MCP protocol interaction sessions, mainly including the implementation of stateful sessions based on the C/S architecture and the maintenance of the complete MCP session lifecycle (initialization phase, running phase, and closing phase).
Transport
Definition of data transmission channels between various endpoints based on the C/S architecture, including an implementation scheme for the default standard stdio transmission channel and an optional SEE transmission channel.
Task
Definition and implementation of various MCP tasks, such as the three - way handshake and capability negotiation task during the initialization phase, and the processing tasks for major requests like Prompts, Resources, Tools, etc. Time - consuming tasks are executed asynchronously, while ordinary tasks are executed synchronously.
Entity
Definition of various protocol entity classes for MCP, mainly including the base class of the Server following the Singleton pattern.
# TinyMCP 🧩
📖 What is TinyMCP?
TinyMCP is a lightweight C++ SDK for implementing the MCP Server.
🤔 What is MCP?
MCP is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
💻 TinyMCP supported system platforms
🚀 Usage Guide
Please check the wiki for more information.
📦 Dependencies
📌 MCP protocol version
MCP Specification 2024-11-05
🗂️ Code structure brief
✅ Feature support brief
📄 LICENSE
TinyMCP is licensed under the MIT License - see the LICENSE file for details.