ClaudeMap

MCP Kotlin SDK

Official Kotlin SDK for MCP — built with JetBrains, targeting JVM/Android/server-side Kotlin.

SDKs & Toolingofficialkotlinmcpjetbrains

Official Kotlin implementation of the Model Context Protocol, built in collaboration with JetBrains. Coroutine-first, multiplatform-ready (JVM, Android, Native). Idiomatic Kotlin DSL for tool and prompt definitions.

What it does

  • Kotlin Multiplatform SDK targeting JVM, Native, JS and Wasm from one codebase
  • Ships on Maven Central as io.modelcontextprotocol:kotlin-sdk, with kotlin-sdk-client / kotlin-sdk-server for one-sided APIs
  • Transport menu: STDIO, Streamable HTTP, SSE, WebSocket, plus a ChannelTransport for tests
  • Covers the MCP primitive set — prompts, resources, tools, completion, logging, pagination — with client-side roots and sampling

When to use it

Pick it when one MCP codebase must serve JVM and web/native targets alike; Ktor powers the HTTP transports (Kotlin 2.2+, JVM 11+).

Getting started

dependencies {
  implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")
}
// client-only / server-only: kotlin-sdk-client / kotlin-sdk-server

Things to know

The SDK does not add Ktor engine dependencies transitively — you declare Ktor client/server engine dependencies yourself or reuse your project's.

Repository

modelcontextprotocol/kotlin-sdk

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup