Kotlin MCP SDK icon

Kotlin MCP SDK

Official Kotlin SDK for building modern Model Context Protocol servers and clients with coroutines

View Source

Kotlin MCP SDK

The official Kotlin SDK for building Model Context Protocol (MCP) servers and clients. This SDK provides modern, idiomatic Kotlin APIs with full coroutines support for building reactive MCP applications.

Features

  • Native Kotlin implementation with coroutines support
  • Type-safe DSL for server and client configuration
  • Reactive streams with Kotlin Flow
  • Multiplatform support (JVM, Android, Native)
  • Built-in serialization with kotlinx.serialization
  • Structured concurrency and error handling
  • Android-optimized client libraries

Installation

dependencies {
    implementation("com.modelcontextprotocol:kotlin-sdk:latest")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:latest")
}

Getting Started

Build modern MCP applications in Kotlin with full coroutines support, perfect for Android development and reactive server applications.

Multiplatform Support

  • JVM: Full server and client support
  • Android: Optimized client libraries
  • Native: Cross-platform client support
Sponsored
Algolia Inc logo

Algolia Inc

Supporting the MCP ecosystem with cutting-edge tools and services

Try Algolia MCP

Related Categories