JUHE API Marketplace
kri77 avatar
MCP Server

MCP LEDAPI Intent Controller

A Model Context Protocol server that translates high-level intents into commands for controlling an Arduino-based LED system via a RESTful interface.

0
GitHub Stars
11/22/2025
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. MCPForLedAPI

README Documentation

MCP LEDAPI Intent Controller

This project implements a Model Context Protocol (MCP)-style server using FastAPI to control an Arduino-based LED system via a RESTful interface. For best results, use this together with the MCPForLedAPI project. It interprets high-level intents like TurnOnLed, SetMood, or GetStatus, and translates them into commands for the Arduino LED API.


Features

  • Supports contextual LED control via structured intents
  • Communicates with an Arduino LED controller API (/setLedStatus, /status)
  • Automatically exposes Swagger UI for testing
  • Extensible architecture for adding new devices or control logic

Intents Supported

IntentDescriptionParameters
TurnOnLedTurns on a specific LED{ "color": "red" }
TurnOffLedTurns off all LEDsnone
SetPatternSets specific LED pattern{ "pattern": "1100" }
SetMoodUses predefined mood pattern{ "mood": "calm" }
PowerDownAlias for turning everything offnone
GetStatusQueries the current LED statenone

Example Requests

POST /intent
{
  "intent": "TurnOnLed",
  "parameters": {
    "color": "green"
  }
}
POST /intent
{
  "intent": "SetMood",
  "parameters": {
    "mood": "calm"
  }
}

Requirements

  • Python 3.8+
  • FastAPI
  • Uvicorn
  • Requests

Install via:

pip install fastapi uvicorn requests

Running the Server

uvicorn mcp_server:app --reload

Then open your browser at:

  • Swagger UI: http://localhost:8000/docs
  • ReDoc UI: http://localhost:8000/redoc

Architecture Overview

[ User or System ]
        ↓
  MCP Intent Server (FastAPI)
        ↓
Arduino LED API (Flask)
        ↓
      Arduino Nano (via USB)

File Overview

  • mcp_server.py: Main FastAPI server with intent handling logic
  • requirements.txt: Python dependencies
  • README.md: Project overview and usage

License

MIT License

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.ai
Copyright © 2025 - All rights reserved