ESP32 CYD MCP Server logo

ESP32 CYD MCP Server

Community
OfryL

Control esp cyd with mcp

PublisherOfryL
Repositoryesp-cyd-mcp
LanguageC++
Forks
3
Stars
11
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    ESP32 CYD MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    11 stars and 3 forks from the linked repository.

ESP32 CYD MCP Server

A comprehensive Model Context Protocol (MCP) server implementation for the ESP32 CYD (Cheap Yellow Display) board. This project provides extensive remote control capabilities for the ESP32-2432S028R board through a WebSocket-based MCP interface.

Features

MCP Server Core

  • WebSocket-based MCP protocol implementation
  • JSON-RPC 2.0 compliant
  • Real-time bidirectional communication
  • Multiple client support
  • Event notifications

Tool Categories

Display Tools (20+ tools)

  • display.clear - Clear screen with color
  • display.text - Draw text with positioning and styling
  • display.line - Draw lines with thickness
  • display.rectangle - Draw rectangle outlines
  • display.fillRectangle - Draw filled rectangles
  • display.circle - Draw circle outlines
  • display.fillCircle - Draw filled circles
  • display.pixel - Draw individual pixels
  • display.backlight - Control backlight on/off
  • display.brightness - Set display brightness (0-255)
  • display.rotation - Set display rotation (0-3)
  • display.progressBar - Draw progress bars
  • display.info - Get display information

Touch Tools (10+ tools)

  • touch.getState - Get current touch state
  • touch.enable - Enable/disable touch input
  • touch.calibrate - Calibrate touch screen
  • touch.getHistory - Get recent touch events
  • touch.simulate - Simulate touch events
  • touch.getCalibration - Get calibration values
  • touch.saveCalibration - Save calibration to file
  • Gesture detection (swipe support)

GPIO Tools (15+ tools)

  • gpio.pinMode - Set pin mode (input/output/PWM)
  • gpio.digitalWrite - Write digital value
  • gpio.digitalRead - Read digital value
  • gpio.analogWrite - PWM output
  • gpio.analogRead - Read analog value
  • gpio.attachInterrupt - Attach interrupts
  • gpio.setPWM - Configure PWM with frequency
  • gpio.tone - Generate tones
  • gpio.pulseIn - Measure pulse duration

Sensor Tools (10+ tools)

  • sensor.readTemperature - Read temperature sensor
  • sensor.readLight - Read light sensor
  • sensor.readInternalTemp - ESP32 internal temperature
  • sensor.readHallSensor - Built-in hall sensor
  • sensor.readBatteryVoltage - Power supply voltage
  • sensor.readAll - Read all sensors at once
  • sensor.calibrate - Calibrate sensors
  • sensor.getEnvironment - Environmental summary

Network Tools (15+ tools)

  • network.status - Get network status
  • network.connect - Connect to WiFi
  • network.scan - Scan for networks
  • network.startAP - Start access point
  • network.httpRequest - Make HTTP requests
  • network.ping - Ping hosts
  • network.getTime - Get NTP time
  • network.setMDNS - Configure mDNS

System Tools (20+ tools)

  • system.info - Comprehensive system information
  • system.restart - Restart ESP32
  • system.sleep - Deep/light sleep modes
  • system.memory - Memory statistics
  • system.tasks - FreeRTOS task info
  • system.setCPUFrequency - CPU speed control
  • system.performanceMode - Performance optimization
  • system.factoryReset - Factory reset

File Tools (15+ tools)

  • file.list - List files/directories
  • file.read - Read file contents
  • file.write - Write to file
  • file.delete - Delete files
  • file.mkdir - Create directories
  • file.copy - Copy files
  • file.storage - Storage statistics
  • Support for SPIFFS and SD card

Audio Tools (15+ tools)

  • audio.tone - Play single tone
  • audio.playMelody - Play melodies
  • audio.beep - Simple beep sounds
  • audio.playPattern - Custom tone patterns
  • audio.notification - Notification sounds
  • audio.alarm - Alarm patterns
  • audio.setVolume - Volume control
  • Predefined melodies (Mario, Star Wars, etc.)

Hardware Requirements

  • ESP32-2432S028R (CYD) board
  • 2.8" ILI9341 TFT display (240x320)
  • XPT2046 resistive touch controller
  • Optional: SD card for file storage
  • Optional: External sensors (temperature, light)

Installation

  1. Install PlatformIO or Arduino IDE
  2. Clone this repository
  3. Open the project in PlatformIO
  4. Build and upload to your ESP32 CYD board
bash
git clone https://github.com/yourusername/esp32-cyd-mcp
cd esp32-cyd-mcp
pio run -t upload

Configuration

Edit include/config.h to customize:

  • WiFi credentials
  • Pin assignments
  • Server ports
  • Display settings
  • Sensor calibration

Usage

Connecting to the MCP Server

  1. Power on the ESP32 CYD board
  2. Connect to WiFi or use the AP mode
  3. Find the device IP address on the display
  4. Connect via WebSocket to ws://[IP]:3001

Example MCP Request

json
{
  "jsonrpc": "2.0",
  "id": "1",
  "method": "tools/invoke",
  "params": {
    "name": "display.text",
    "arguments": {
      "text": "Hello MCP!",
      "x": 50,
      "y": 100,
      "color": "white",
      "size": 2
    }
  }
}

Using with Claude Desktop

Add to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "esp32-cyd": {
      "command": "websocat",
      "args": ["ws://192.168.1.100:3001"]
    }
  }
}

API Documentation

Tool Invocation

All tools are invoked using the standard MCP tools/invoke method:

json
{
  "method": "tools/invoke",
  "params": {
    "name": "tool.name",
    "arguments": { ... }
  }
}

Event Notifications

The server sends notifications for various events:

  • touch.event - Touch input events
  • sensor.update - Periodic sensor updates
  • network.event - Network state changes
  • gpio.interrupt - GPIO interrupt events

Development

Adding New Tools

  1. Create header file in include/tools/
  2. Implement in src/tools/
  3. Register tools in the registerTools() method
  4. Add initialization in main.cpp

Project Structure

esp32-cyd-mcp/
├── include/
│   ├── config.h           # Configuration
│   ├── mcp_server.h       # MCP server core
│   └── tools/            # Tool headers
├── src/
│   ├── main.cpp          # Main application
│   ├── mcp_server.cpp    # MCP implementation
│   └── tools/           # Tool implementations
├── platformio.ini        # PlatformIO config
└── README.md

Troubleshooting

  • WiFi Connection Issues: Check credentials in config.h
  • Touch Not Working: Run touch calibration tool
  • Display Issues: Verify display rotation setting
  • Memory Issues: Monitor free heap, reduce tool usage

License

This project is open source and available under the MIT License.

Contributing

Contributions are welcome! Please submit pull requests or open issues for bugs and feature requests.

Acknowledgments

  • ESP32 community for hardware support
  • TFT_eSPI library for display drivers
  • MCP specification for protocol design

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "ofryl-esp-cyd-mcp": {
      "command": "",
      "args": []
    }
  }
}

Use ESP32 CYD MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once ESP32 CYD MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add ESP32 CYD MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the ESP32 CYD MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "ofryl-esp-cyd-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "esp-cyd-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the ESP32 CYD MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the ESP32 CYD MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use ESP32 CYD MCP Server to help me with this task?
ESP32 CYD MCP Server
Sure. I read it.
Here is what I found using ESP32 CYD MCP Server.

Frequently asked questions

What is the ESP32 CYD MCP Server MCP server used for?

ESP32 CYD MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use ESP32 CYD MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use ESP32 CYD MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use ESP32 CYD MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With ESP32 CYD MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect ESP32 CYD MCP Server MCP to TypingMind?

ESP32 CYD MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does ESP32 CYD MCP Server MCP provide in TypingMind?

ESP32 CYD MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use ESP32 CYD MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If ESP32 CYD MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇