modelcontextprotocol/kotlin-sdk
Kotlin Multiplatform SDK for building Model Context Protocol clients and servers that enable AI models to interact with external tools and data.

This Kotlin Multiplatform library implements the Model Context Protocol specification, allowing developers to create MCP-compatible clients and servers targeting JVM, Native, JS, and Wasm platforms. It provides standardized abstractions for MCP primitives, server capabilities (prompts, resources, tools, completion, logging), and client features (roots, sampling). The SDK includes STDIO and HTTP/SSE transport implementations for communication between AI models and external tool providers.