The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Kotlin SDK
The official Kotlin SDK for Model Context Protocol servers and clients. Maintained in collaboration with JetBrains
Install
claude mcp add --transport http kotlin-mcp http://localhost:3000Install command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →MCP Kotlin SDK
Kotlin Multiplatform SDK for the Model Context Protocol. It enables Kotlin applications targeting JVM, Native, JS, and Wasm to implement MCP clients and servers using a standardized protocol interface.
Table of Contents
- Overview
- Installation
- Quickstart
- Core Concepts
- Transports
- Connecting your server
- Examples
- Documentation
- Contributing
- License
Overview
The Model Context Protocol allows applications to provide context for LLMs in a standardized way, separating the concerns of providing context from the actual LLM interaction. This Kotlin SDK implements the MCP specification, making it easy to:
- Build MCP clients that can connect to any MCP server
- Create MCP servers that expose resources, prompts, and tools
- Target JVM, Native, JS, and Wasm from a single codebase
- Use standard transports like stdio, SSE, Streamable HTTP, and WebSocket
- Handle MCP protocol messages and lifecycle events with coroutine-friendly APIs
Installation
Artifacts
io.modelcontextprotocol:kotlin-sdk– umbrella SDK (client + server APIs)io.modelcontextprotocol:kotlin-sdk-client– client-only APIsio.modelcontextprotocol:kotlin-sdk-server– server-only APIs
Gradle setup (JVM)
Add the Maven Central repository and the SDK dependency:
repositories {
mavenCentral()
}
dependencies {
// See the badge above for the latest version
implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")
}
Use kotlin-sdk-client or kotlin-sdk-server if you only need one side of the API:
dependencies {
implementation("io.modelcontextprotocol:kotlin-sdk-client:$mcpVersion")
implementation("io.modelcontextprotocol:kotlin-sdk-server:$mcpVersion")
}
Multiplatform
In a Kotlin Multiplatform project you can add the SDK to commonMain:
commonMain {
dependencies {
// Works as a common dependency as well as the platform one
implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")
}
}
Ktor dependencies
Similar plugs
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)