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.
Frequently asked
- What is 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.
- Is kotlin-sdk open source?
- Yes — modelcontextprotocol/kotlin-sdk is an open-source project tracked on heatdrop.
- What language is kotlin-sdk written in?
- modelcontextprotocol/kotlin-sdk is primarily written in Kotlin.
- How popular is kotlin-sdk?
- modelcontextprotocol/kotlin-sdk has 1.4k stars on GitHub.
- Where can I find kotlin-sdk?
- modelcontextprotocol/kotlin-sdk is on GitHub at https://github.com/modelcontextprotocol/kotlin-sdk.