# kotlin-sdk

> MCP Server

This Kotlin SDK implements the Model Context Protocol, enabling developers to build MCP clients and servers for standardized LLM context management. It supports various transports and simplifies integration with LLM surfaces.

## Overview

- **Category:** Developer Tools
- **Language:** Kotlin
- **Stars:** 1436
- **Forks:** 37
- **Owner:** modelcontextprotocol
- **GitHub:** https://github.com/modelcontextprotocol/kotlin-sdk
- **Created:** 2024-12-16T15:35:02+00:00
- **Updated:** 2025-03-28T16:30:39+00:00
- **Source:** https://model-context-protocol.com/servers/kotlin-sdk-model-context-protocol-implementation

## Setup

## Setup

Add the new repository to your build file:

```kotlin
repositories {
    mavenCentral()
}
```

Add the dependency:

```kotlin
dependencies {
    implementation("io.modelcontextprotocol:kotlin-sdk:0.4.0")
}
```

## Tools

## Available Tools

1.  Build MCP clients (connect to any MCP server).
2.  Create MCP servers (expose resources, prompts and tools).
3.  Use standard transports (stdio, SSE, and WebSocket).
4.  Handle all MCP protocol messages (and lifecycle events).

