Umeko Serial MCP logo

Umeko Serial MCP

Community
umeiko

使用AI进行单片机开发的好工具,通过自然语言让 AI 助手与你的单片机、嵌入式设备通过串口直接对话。

Publisherumeiko
Repositoryumeko_serial_mcp
LanguageHTML
Forks
11
Stars
63
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Umeko Serial MCP 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

    63 stars and 11 forks from the linked repository.

Umeko Serial MCP

Dashboard

✨ 功能特性

  • 🖥️ MCP 支持 — 通过 Model Context Protocol 与 AI 客户端无缝集成
  • 🔌 串口控制 — 自动扫描、连接、读写串口设备
  • 🌐 Web 监控面板 — 内置 HTTP + WebSocket 双端口服务,浏览器实时旁路监控
  • 兼容 Windows, MacOS, Linux

🛠️ 可用工具

工具说明
list_ports扫描本机所有可用串口
connect_port连接指定串口(支持自定义波特率,默认 115200)
close_port显式断开当前串口连接
write_data向串口写入数据(自动补全换行符)
read_data读取串口缓冲区数据(含用户干预历史)
start_monitor_ui启动 Web 监控面板(默认 HTTP 8080 / WebSocket 8081)

📦 直接配置到AI助手中(推荐)

本项目已经打包上传到了uv与pypi仓库,各大AI助手中可以直接通过以下命令行添加,会自动拉取并配置。

通过命令行添加

bash
# claude code
claude mcp add serial-mcp -- uvx --from umeko-serial-mcp start-serial-mcp
bash
# codex
codex mcp add serial-mcp -- uvx --from umeko-serial-mcp start-serial-mcp

使用 mcp.json 添加 (Kimi Code)

Kimi Code 通过 mcp.json 配置 MCP 服务器。编辑用户级配置 ~/.kimi-code/mcp.json(或项目级 .kimi-code/mcp.json),添加以下内容:

json
{
  "mcpServers": {
    "serial-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "umeko-serial-mcp",
        "start-serial-mcp"
      ]
    }
  }
}

也可以在 Kimi Code 的 TUI 中运行 /mcp-config 交互式添加;配置后运行 /mcp 可查看连接状态。

使用 toml 添加 (Codex)

这是 Codex CLI 默认和推荐的配置格式 。打开你的配置文件(如 ~/.codex/config.toml),添加以下内容:

toml
[mcp_servers.serial-mcp]
command = "uvx"
args = ["--from", "umeko-serial-mcp", "start-serial-mcp"]

通过JSON添加

🦞OpenClaw, Cursor, Cline, TRAE, Cherry Studio, Qwen Chat等其它客户端,在mcp服务器设置中,选择使用json添加并且粘贴以下字段。

json
{
  "mcpServers": {
    "serial-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "umeko-serial-mcp",
        "start-serial-mcp"
      ]
    }
  }
}

📦 手动下载安装运行

如果你想要自定义修改本工具使用。

方式一:通过 Python 安装

bash
# 使用 uvx 直接运行(无需安装)
uvx --from umeko-serial-mcp start-serial-mcp

或使用 pip:

bash
pip install umeko-serial-mcp
start-serial-mcp

方式二:本地开发安装

1. 克隆仓库

bash
git clone https://github.com/umeiko/umeko_serial_mcp.git
cd umeko_serial_mcp

2. 安装依赖

确保已安装 uv:

bash
uv sync

3. 本地运行

bash
# 直接运行源码
uv run start-serial-mcp

# 或者先构建 wheel 再通过 uvx 运行(推荐,避免源码缓存问题)
uv build --wheel
uvx --from . start-serial-mcp

⚠️ 开发注意:uvx --from . 会缓存 wheel 包,修改源码后需先升级 pyproject.toml 版本号,再执行 uv build --wheel,最后重启 MCP 客户端才能生效。


⚙️ 客户端配置示例

如果要让客户端使用你本地部署的本服务,在支持 MCP 的客户端(如 Claude-code、Cursor、Cline 等)的 mcp.json 中添加:

json
{
  "mcpServers": {
    "serial-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "/path/to/umeko_serial_mcp",
        "start-serial-mcp",
        "--reinstall"
      ]
    }
  }
}

将 /path/to/umeko_serial_mcp 替换为本地路径(如 /home/user/umeko_serial_mcp),并加上 --reinstall 参数强制刷新缓存。

配置保存并重启客户端后,即可通过自然语言调用串口功能。


🚀 快速开始

使用类似提示词:

请使用串口工具,连接到我的esp32开发板并且测试通信

启动后,AI 会自动执行以下初始化检查:

1. start_monitor_ui    → 启动 Web 面板 http://localhost:8080
2. list_ports          → 发现 /dev/cu.usbmodem101
3. connect_port        → 连接 ESP32(115200)
4. write_data("hello")     → 测试通信
5. read_data()          → 读取串口输入

在浏览器中打开 http://localhost:8080,你可以:

  • 🔘 手动控制串口连接/断开
  • 💬 实时查看 LLM 与单片机的全部对话
  • ✏️ 手动下发命令(旁路干预)

Serial Panel

Use Umeko Serial MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Umeko Serial MCP 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 Umeko Serial MCP 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 Umeko Serial MCP 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": {
    "umeko-serial-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Umeko Serial MCP 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 Umeko Serial MCP 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 Umeko Serial MCP to help me with this task?
Umeko Serial MCP
Sure. I read it.
Here is what I found using Umeko Serial MCP.

Frequently asked questions

What is the Umeko Serial MCP MCP server used for?

Umeko Serial MCP 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 Umeko Serial MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Umeko Serial MCP 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 Umeko Serial MCP 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 Umeko Serial MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Umeko Serial MCP MCP to TypingMind?

Umeko Serial MCP 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 Umeko Serial MCP MCP provide in TypingMind?

Umeko Serial MCP 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 Umeko Serial MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Umeko Serial MCP 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 👇