Independent by design · no pay-to-rank placements  · How we evaluate tools →
Anclum Submit
M

modelcontextprotocol/kotlin-sdk

Official Kotlin SDK for MCP servers and clients

Before you install: no copy-paste command · no license recorded · link reachable

First step: npx -y @modelcontextprotocol/inspector

View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
  "mcpServers": {
    "modelcontextprotocol-kotlin-sdk": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/inspector"]
    }
  }
}

Parsed from the README we fetched on 2026-11-05; we have not executed it.

command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
  "servers": {
    "modelcontextprotocol-kotlin-sdk": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/inspector"]
    }
  }
}
Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio modelcontextprotocol-kotlin-sdk -- npx -y @modelcontextprotocol/inspector
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
Source
collected from the abordage/awesome-mcp list · type: MCP server
Harvest history
first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
Score
score 1,003 · 10 sources · mcp
Install
npx -y @modelcontextprotocol/inspector
FAQ (answers come from our records)
How do I install it?
The repository provides this install command: npx -y @modelcontextprotocol/inspector. It comes from the repository itself; we cannot guarantee it runs as-is in your client.
Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.

# MCP Kotlin SDK

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

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
Artifacts
Gradle setup (JVM)
Multiplatform
Ktor dependencies
Quickstart
Creating a Client
Creating a Server
Core Concepts
MCP Primitives
Capabilities
Server Capabilities
Client Capabilities
Server Features
Prompts
Resources
Tools
Completion
Logging
Pagination
Client Features
Roots
Sampling
Transports
STDIO Transport
Streamable HTTP Transport
SSE Transport
WebSocket Transport
ChannelTransport (testing)
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 APIs
io.modelcontextprotocol:kotlin-sdk-server – server-only APIs
### Gradle setup (JVM)
Add the Maven Central repository and the SDK dependency:
kotlin
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:
kotlin
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:
kotlin
commonMain {
dependencies {
// Works as a common dependency as well as the platform one
implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")
### Ktor dependencies
The Kotlin MCP SDK uses Ktor, but it does not add Ktor engine dependencies transitively.
You need to declare
Ktor client/server
dependencies yourself (or reuse the ones already used in your project),
for example:
kotlin
dependencies {
// MCP client with Ktor
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.modelcontextprotocol:kotlin-sdk-client:$mcpVersion")
// MCP server with Ktor
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.modelcontextprotocol:kotlin-sdk-server:$mcpVersion")
## Quickstart
Let's create a simple MCP client and server to demonstrate the basic usage of the Kotlin SDK.
### Creating a Client
Create an MCP client that connects to a server via Streamable HTTP transport and lists available tools:
kotlin
import io.ktor.client.HttpClient
import io.ktor.client.plugins.sse.SSE
import io.modelcontextprotocol.kotlin.sdk.client.Client
import io.modelcontextprotocol.kotlin.sdk.client.StreamableHttpClientTransport
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/en/s/modelcontextprotocol-kotlin-sdk/)
Source
awesome · https://github.com/modelcontextprotocol/kotlin-sdk
Browse by field
MCP servers
Listed by
10 independent sources
added
today

More like this

All 6,229 →

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields →

← Back to index