kotlin-sdk

kotlin-sdk

Kotlin multiplatform SDK for implementing MCP clients and servers.

MCPDevOpen sourceKotlinMCPSDK
Type
MCP
Open source
Yes
GitHub Stars
★ 1.4k
Source
mcp-github

Overview

The official Kotlin SDK for Model Context Protocol (MCP), supporting JVM, Native, JS, and Wasm platforms. It enables developers to easily build MCP clients and servers, providing resources, prompts, and tools through standardized protocol interfaces. The SDK supports multiple transport protocols such as stdio, SSE, Streamable HTTP, and WebSocket. Ideal for applications needing to supply context to LLMs.

Capabilities

  • Create MCP clients
  • Create MCP servers
  • Support multiplatform (JVM, Native, JS, Wasm)
  • Support multiple transport protocols (stdio, SSE, HTTP, WebSocket)
  • Handle MCP protocol messages and lifecycle events

Use cases

Build an MCP client connecting to an MCP serverCreate an MCP server to expose resources, prompts, and toolsUse the MCP protocol in multiplatform projects

Setup

Requires: Ktor 依赖Node 环境
Add the dependency in your Gradle project: [implementation("io.modelcontextprotocol:kotlin-sdk:$mcpVersion")]

This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.

FAQ

Which platforms does this SDK support?

JVM, Native, JS, and Wasm platforms.

How do I install this SDK?

Add the Maven Central repository and SDK dependency in your Gradle project.

Related skills