MCP ExplorerExplorer

Kotlin Mcp Hue Light Sample

@SebastianAigneron a year ago
12 MIT
FreeCommunity
AI Systems
Kotlin MCP integration for controlling Hue Smart Lights with Claude Desktop.

Overview

What is Kotlin Mcp Hue Light Sample

kotlin-mcp-hue-light-sample is a sample project that demonstrates how to integrate Hue Smart Lights with Claude Desktop using the Model Context Protocol (MCP) and Kotlin. It serves as a practical example for building applications that can control smart home devices through natural language.

Use cases

Use cases include controlling smart lights in a home environment, creating voice-activated lighting systems, and developing custom applications that require interaction with smart home devices using natural language.

How to use

To use kotlin-mcp-hue-light-sample, run the installDist Gradle task and point your MCP client to the generated startup script located in build/install/huelight-mcp/bin. This will set up the environment for controlling smart lights.

Key features

Key features include integration with Hue Smart Lights, the use of Kotlin for development, and the ability to control devices using natural language through Claude Desktop. It also utilizes the MCP inspector for debugging and exploring the application.

Where to use

kotlin-mcp-hue-light-sample can be used in smart home automation projects, particularly for developers looking to create integrations between natural language processing applications and smart devices.

Content

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

This repo contains supplemental code for this YouTube video.

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

How to run

Run the installDist Gradle task, and point your MCP client to the generated startup script in build/install/huelight-mcp/bin.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers