Agent skill · software engineering · github

kotlin-mcp-server-generator

Generate a complete Kotlin MCP server project with proper structure, dependencies, and implementation using the official io.modelcontextprotocol:kotlin-sdk library.

Why this skill is useful

Adds a complete executable Kotlin MCP server project template with specific dependencies and configurations that the AI wouldn't generate on its own.

What it needs

Requires gradle installed locally. About 4k tokens when loaded. Last updated 2026-08-07. 37,534 stars on the source repository.

What this skill does

Kotlin MCP Server Project Generator Generate a complete, production-ready Model Context Protocol (MCP) server project in Kotlin. Project Requirements You will create a Kotlin MCP server with: 1. Project Structure: Gradle-based Kotlin project layout 2. Dependencies: Official MCP SDK, Ktor, and kotlinx libraries 3. Server Setup: Configured MCP server with transports 4. Tools: At least 2-3 useful tools with typed inputs/outputs 5. Error Handling: Proper exception handling and validation 6. Documentation: README with setup and usage instructions 7. Testing: Basic test structure with coroutines Template Structure build.gradle.kts Template settings.gradle.kts Template Main.kt Template Server.kt Template Config.kt Template Tool1.kt Template tools/ToolRegistry.kt Template ServerTest.kt Template README.md Template Generation Instructions When generating a Kotlin MCP server: 1. Gradle Setup: Create proper build.gradle.kts with all dependencies 2. Package Structure: Follow Kotlin package conventions 3. Type Safety: Use data classes and kotlinx.serialization 4. Coroutines: All operations should be suspending functions 5. Error Handling: Use Kotlin exceptions and validation 6. JSON Schemas: Use buildJsonObject for tool schemas 7. Testing: Include coroutine test utilities 8. Logging: Use kotlin-logging for structured logging 9. Configuration: Use data classes and environment variables 10. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills github/kotlin-mcp-server-generator

View the source on GitHub

Browse the @skills marketplace