MENU

Fun & Interesting

Building MCP with Kotlin: Claude Desktop Controls My Smart Home Lights!

Kotlin by JetBrains 11,825 1 month ago
Video Not Working? Fix It Now

Less than two months until KotlinConf 2025! 💜 Get ready for insightful sessions and great networking opportunities. We still have a few tickets left — can’t wait to see you in Copenhagen! 🎟️ https://kotl.in/kcnf2025 The Model Context Protocol Kotlin SDK (https://github.com/modelcontextprotocol/kotlin-sdk) makes it easy for you to build integrations between LLM clients like Claude Desktop and your own applications, whether that's software or hardware! Let's see it in practice: Join Sebastian Aigner building an integration between Hue Smart Lights and Claude Desktop, powered entirely by Kotlin. We walk through defining our interfaces, delegating some of the more mechanical tasks when working with Ktor to Junie, and then implement a basic version of an MCP using the official SDK for Kotlin. We use the MCP inspector to explore and debug our application, and finally integrate the Kotlin Gradle application with Claude Desktop by setting up the final configuration. In the end, we have a self-sufficient MCP server that can control smart lights with natural language! Junie, the coding agent by JetBrains: https://www.jetbrains.com/junie/ MCP Server Plugin for JetBrains IDEs: https://plugins.jetbrains.com/plugin/26071-mcp-server MCP inspector: https://github.com/modelcontextprotocol/inspector Find the project code on GitHub: https://github.com/SebastianAigner/kotlin-mcp-hue-light-sample

Comment