This repository provides a Dart SDK for the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources through various transport options. This repository provides a
This Dart SDK provides a full implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources or tools.
The SDK offers:
To install, add mcp_dart_sdk
to your pubspec.yaml
:
dependencies:
mcp_dart_sdk: ^0.1.0
Then, run dart pub get
or flutter pub get
.
The SDK provides examples for different transport methods, including stdio, WebSocket, and HTTP+SSE. These examples demonstrate how to connect to an MCP server, initialize a session, utilize available tools, and perform a clean shutdown.
Refer to the API reference and examples for detailed information.
Contributions are welcome through Pull Requests.
Licensed under the MIT License; see the LICENSE file.
Ayobami-00/mcp_dart_sdk
March 19, 2025
March 19, 2025
Dart