JM

jir13/mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

4 stars 4 forks 质量 58 趋势 5

jir13/mcp 是从 https://github.com/jir13/mcp. 导入的 MCP 服务器候选

概览

jir13/mcp 是从 https://github.com/jir13/mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

一套由三台模型上下文协议服务器组成的套件,为AI助手(如Claude等)提供对FPV无人机硬件的直接控制:无线电发射机配置、飞行控制调谐和黑箱日志分析。

建筑

服务器 语言 工具 目的
betaflight-mcp Python 66 通过串行MSP协议配置飞行控制器
tango2-mcp-server TypeScript 17 TBS Tango 2 无线电二进制模型编辑器(FreedomTX .bin)
黑盒-mcp-服务器 TypeScript 4 Betaflight黑盒日志解析器和飞行分析器

总计:87个工具分布在3台服务器上,~8,600行代码。


betaflight-mcp

通过MSP协议通过USB串口与Betaflight飞行控制员通信。支持完整配置、遥测和机队管理。

地点: MCP/

能力

  • 连接:自动检测FC,连接/断开/重新连接并重试
  • PID 调优:读写 PID 设置、RC 速率、滤波器配置
  • 模式与开关:配置辅助模式(ARM、角度、地平线等)
  • OSD:带预设的完整OSD布局编辑(自由式、远程、竞速)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

FPV Drone MCP Platform

A suite of three Model Context Protocol servers that give AI assistants (Claude, etc.) direct control over FPV drone hardware: radio transmitter configuration, flight controller tuning, and blackbox log analysis.

Claude ──MCP──┬── betaflight-mcp        ──USB/Serial──► Flight Controller
              ├── tango2-mcp-server     ──SD Card────► TBS Tango 2 Radio
              └── blackbox-mcp-server   ──Filesystem──► Blackbox Logs

Architecture

Server Language Tools Purpose
betaflight-mcp Python 66 Flight controller config via MSP protocol over serial
tango2-mcp-server TypeScript 17 TBS Tango 2 radio binary model editor (FreedomTX .bin)
blackbox-mcp-server TypeScript 4 Betaflight blackbox log parser and flight analyzer

Total: 87 tools across 3 servers, ~8,600 lines of code.


betaflight-mcp

Communicates with Betaflight flight controllers over USB serial using the MSP protocol. Supports full configuration, telemetry, and fleet management.

Location: MCP/

Capabilities

  • Connection: Auto-detect FC, connect/disconnect/reconnect with retry
  • PID Tuning: Read/write PID settings, RC rates, filter config
  • Modes & Switches: Configure AUX modes (ARM, ANGLE, HORIZON, etc.)
  • OSD: Full OSD layout editing with presets (freestyle, long range, racing)
  • VTX: Band, channel, power, pit mode control
  • GPS: GPS status monitoring, GPS Rescue configuration
  • Safety: Preflight checks, motor test (individual), emergency stop, beeper
  • Fleet Management: Register multiple drones, backup all configs, compare settings
  • Sensors: Live IMU data, attitude, battery status, RC channels, motor values
  • CLI: Send raw Betaflight CLI commands, backup/restore via diff

Handler Modules

MCP/src/betaflight_mcp/
├── server.py          # MCP server + tool definitions + dispatch
├── msp.py             # MSP protocol implementation (v1)
└── handlers/
    ├── connection.py  # Serial port management
    ├── config.py      # PIDs, rates, filters, features, failsafe
    ├── sensors.py     # IMU, attitude, battery, RC, motors
    ├── safety.py      # Preflight, motor test, stop, calibration
    ├── fleet.py       # Multi-drone registry and bulk operations
    ├── osd.py         # OSD layout, elements, presets
    ├── vtx.py         # Video transmitter settings
    └── gps.py         # GPS status and rescue config

Setup

cd MCP
python -m venv venv
source venv/bin/activate
pip install -e .

MCP Config

{
  "mcpServers": {
    "betaflight": {
      "command": "MCP/venv/bin/python",
      "args": ["-m", "betaflight_mcp"]
    }
  }
}

Environment Variables

Variable Default Description
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "betaflight": { "command": "MCP/venv/bin/python", "args": ["-m", "betaflight_mcp"] } } }