Regennexus Mcp

io.github.ReGenNow由 GitHub 账号 ReGenNow 发布v0.1.1更新于 Oct 25, 2026

AI-controlled hardware: GPIO, robotics, sensors, cameras, mesh networking for IoT

概览

AI 生成的概览

本地 MCP 服务器,通过 RegenNexus UAP 让 AI 助手控制实体硬件,如 GPIO 引脚、传感器、摄像头、机械臂和网状网络节点。

可以做什么
设置和读取 GPIO 引脚电平,设置电机、LED、舵机的 PWM 占空比,读取传感器数值或扫描 I2C 总线。通过串口(UART)发送和读取数据。将机械臂移动到指定关节位置,并开合夹爪。从摄像头抓取单张图像。列出已连接设备并获取 CPU、内存、IP、温度等设备详情。发现网状网络节点、对其 ping、发送或广播消息,并按能力查找节点。
适用场景
当希望助手操作机器上或附近的真实硬件时使用,例如切换引脚、读取传感器、移动机械臂、拍摄快照或通过局域网与网状节点通信。适合爱好者、实验室和原型开发场景,而非纯软件工作。
运行要求
以本地 Python 进程运行,从 PyPI 安装 regennexus-mcp。本地模式需在同一台机器上安装 regennexus 包;远程模式需运行中的 UAP API 服务器,并配置 REGENNEXUS_ENDPOINT 和 REGENNEXUS_API_KEY。REGENNEXUS_MODE 选择 auto、local 或 remote;REGENNEXUS_CONFIG 和 REGENNEXUS_LOG_LEVEL 可选。仅限桌面端。
安装前请注意
助手可实际驱动硬件:GPIO 写入、PWM 输出、机械臂与夹爪动作、串口发送和网状广播都会改变现实世界,在人员或设备附近可能不安全。远程模式会把命令发送到 UAP 服务器,需要 REGENNEXUS_API_KEY。部分工具仅限免费层,高级功能需另行购买。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Regennexus Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

RegenNexus MCP Server

[RegenNexus Logo]

MCP (Model Context Protocol) server adapter for RegenNexus UAP - enabling AI-controlled hardware.

This package exposes RegenNexus hardware capabilities as MCP tools, allowing Claude Code, Claude Desktop, and other MCP-compatible AI clients to control physical devices.

Features

  • Hardware Control: GPIO, PWM, robotic arms, sensors, cameras
  • Mesh Networking: Discover and communicate with nodes over LAN (UDP/WebSocket)
  • Serial/I2C: Communicate with microcontrollers and sensors
  • Two Connection Modes: Local (direct import) or Remote (HTTP API)
  • Auto-Discovery: Automatically detects installed RegenNexus and mesh nodes
  • MCP Compatible: Works with Claude, Codex, Gemini, and any MCP client

Installation

bash
# MCP server only (for remote UAP connection)
pip install regennexus-mcp

# With local UAP support
pip install regennexus-mcp[local]

# With remote API support
pip install regennexus-mcp[remote]

# Everything
pip install regennexus-mcp[all]

Quick Start

1. Configure Claude Code

Add to your Claude Code MCP settings:

json
{
  "mcpServers": {
    "regennexus": {
      "command": "regennexus-mcp"
    }
  }
}

2. Use with Claude

Once configured, Claude can control hardware:

User: "List all connected devices"
Claude: [calls list_devices tool]

User: "Turn on GPIO pin 18"
Claude: [calls gpio_write with pin=18, value=1]

User: "Move the robot arm to position [0, 45, -30, 0, 60, 0, 0]"
Claude: [calls robot_arm_move with positions]

Configuration

Configure via environment variables:

bash
# Connection mode: auto, local, or remote
REGENNEXUS_MODE=auto

# Remote mode settings
REGENNEXUS_ENDPOINT=https://your-uap-server.com
REGENNEXUS_API_KEY=your-api-key

# Local mode settings
REGENNEXUS_CONFIG=/path/to/regennexus-config.yaml

# Logging
REGENNEXUS_LOG_LEVEL=INFO

Claude Code Config with Environment

json
{
  "mcpServers": {
    "regennexus": {
      "command": "regennexus-mcp",
      "env": {
        "REGENNEXUS_MODE": "local",
        "REGENNEXUS_LOG_LEVEL": "DEBUG"
      }
    }
  }
}

Available Tools (Free Tier)

These tools are provided by the regennexus package (open source):

GPIO & Basic I/O

ToolDescription
gpio_writeSet a GPIO pin to HIGH (1) or LOW (0)
gpio_readRead the current state of a GPIO pin
pwm_writeSet PWM duty cycle (0-100%) for motors, LEDs, servos

Sensors & I2C

ToolDescription
read_sensorRead value from a sensor (temperature, humidity, etc.)
i2c_scanScan I2C bus for connected devices

Serial Communication

ToolDescription
serial_sendSend data over serial port (UART)
serial_readRead data from serial port

Robotics

ToolDescription
robot_arm_moveMove a robotic arm to specified joint positions
gripper_controlOpen or close a robotic gripper

Device Management

ToolDescription
list_devicesList all connected hardware devices
device_infoGet device details (CPU, memory, IP, temperature)

Camera

ToolDescription
camera_captureCapture a single image from a camera

Mesh Network

ToolDescription
list_nodesList all nodes in the mesh network
ping_nodePing a node and measure network latency
send_to_nodeSend a message/command to a specific node
broadcast_messageBroadcast a message to all nodes
find_by_capabilityFind nodes with a specific capability

Premium tools with additional capabilities are available separately.

Connection Modes

Local Mode (Recommended)

Requires regennexus package installed on the same machine. Directly imports UAP modules for minimal latency. No API server needed.

bash
pip install regennexus-mcp[local]
REGENNEXUS_MODE=local regennexus-mcp

This is the recommended mode for most users.

Remote Mode (Advanced)

Connects to a UAP instance running as a service via HTTP API. Requires UAP API server to be running (regen server).

bash
# On the UAP server machine:
regen server --port 8080

# On the Claude Code machine:
pip install regennexus-mcp[remote]
REGENNEXUS_MODE=remote \
REGENNEXUS_ENDPOINT=http://uap-server:8080 \
regennexus-mcp

Auto Mode (Default)

Tries local first, falls back to remote if UAP not installed.

bash
regennexus-mcp  # Auto-detects best mode

Running Standalone

bash
# Run MCP server
regennexus-mcp

# Or via Python
python -m regennexus_mcp

Architecture

Claude Code (MCP Client)
        │
        ▼
regennexus-mcp (This Package)
        │
        ├── Local Mode: Direct import
        │       │
        │       ▼
        │   regennexus (UAP)
        │
        └── Remote Mode: HTTP API
                │
                ▼
            UAP Service

Development

bash
# Clone
git clone https://github.com/regennow/regennexus-mcp
cd regennexus-mcp

# Install dev dependencies
pip install -e ".[dev]"

# Run tests
pytest

# Format code
black src/
ruff check src/

Related Projects

License

MIT License

来源:README.md,提交 510e35d

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分