mc3000-mcp
This server lets an AI agent safely inspect and control SKYRC MC3000-compatible chargers over local BLE, with dry-run profile handling and explicit confirmation for live writes/starts.
Scan for, connect to, and disconnect from supported BLE chargers; fake backend available for hardware-free use.
Read charger status, per-slot details, firmware/version, basic settings, and read-only MC5000 slot status.
Read and export charger-stored voltage curves as JSON or CSV.
List and validate battery profiles against enforced chemistry/device safety limits.
Build profile frames, apply profiles, and start prepared slots; live writes default to dry-run and require confirmation tokens.
Perform immediate emergency slot/all-slot stops.
Set basic device settings, use raw/debug tools for protocol experiments, and export a bounded redacted session log.
Provides tools for monitoring and controlling SKYRC MC3000-compatible battery chargers over Bluetooth Low Energy.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mc3000-mcp scan for nearby MC3000 chargers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mc3000-mcp
Safe local MCP control for SKYRC MC3000-compatible chargers.
mc3000-mcp connects an AI agent to a battery charger without handing it an unsupervised
hardware API. BLE control is local. Charging is dry-run by default. Live writes and starts need
explicit per-slot confirmation. Emergency stop is always one call away.
Agent ──MCP stdio── mc3000-mcp ──BLE FFE0/FFE1── SKYRC MC3000
│
├─ profile validation and chemistry limits
├─ dry-run profile rendering
├─ confirmation tokens for live writes/starts
└─ bounded, redacted audit logImplementation | Rust binary; no Python runtime |
MCP | stdio, 27 tools, resources and prompts |
Safety | code-enforced validation, dry-run first, explicit confirmation |
Hardware | MC3000 read/write; MC5000 read-only |
Live-tested | MC3000 firmware |
Registry | crates.io, MCP Registry MCPB, AUR |
Hardware warning. Wrong chemistry, current, voltage, slot, or unsupervised charging can damage cells or start a fire. The MCP server is the safety boundary, not the LLM. Keep the charger in sight. See SECURITY.md.
Install
# crates.io
cargo install mc3000-mcp --locked
# Arch Linux
paru -S mc3000-mcp
# released tag, if you prefer installing from source
cargo install --git https://github.com/nietonchique/mc3000-mcp.git --tag v0.2.4 --lockedA Linux x86_64 MCPB bundle is attached to each release for MCPB-compatible clients.
Linux BLE requires BlueZ/D-Bus:
bluetoothctl show
# If the adapter is off:
sudo rfkill unblock bluetooth && bluetoothctl power onRelated MCP server: aranet4-mcp-server
Connect an MCP client
{
"mcpServers": {
"mc3000": {
"command": "mc3000-mcp",
"args": []
}
}
}Client-specific examples are in examples/.
Try it without hardware:
{
"mcpServers": {
"mc3000": {
"command": "mc3000-mcp",
"args": ["--backend", "fake"]
}
}
}Agent skill
charger-agent uses the portable Agent Skills layout: one folder with a
SKILL.md manifest. No vendor-specific installer is required.
Install it for Codex:
mkdir -p ~/.codex/skills
curl -fsSL https://github.com/nietonchique/mc3000-mcp/releases/download/v0.2.4/mc3000-mcp-skill-v0.2.4.tar.gz \
| tar -xz -C ~/.codex/skillsFor OMP, use ~/.omp/agent/skills as the destination. For Claude-compatible clients, use
~/.claude/skills. Hermes can also install the raw file, but it is just one compatible client—not
the distribution format.
The folder contains the charger workflow plus a pre-start checklist and example profile. It is guidance only; the Rust MCP server remains the enforced safety boundary.
CLI
The default command starts MCP stdio. Read-only diagnostics are also available directly:
mc3000-mcp --version
mc3000-mcp scan --timeout 8
mc3000-mcp status --address AA:BB:CC:DD:EE:FF
mc3000-mcp --backend fake scanThe CLI can scan and read slots. It cannot write profiles, change settings, or start charging.
Safe workflow
Read slot status.
Validate a battery profile.
Render it as a dry run.
Apply it with
confirmation_token=APPLY_PROFILE_SLOT_<slot>.Start it with a separate
confirmation_token=START_SLOT_<slot>.Monitor voltage, current, temperature, and status.
Use
charger.stop_slot/charger.stop_allimmediately if anything looks wrong.
Example dry run for physical slot 4 / API slot 3:
{
"name": "charger.apply_profile",
"arguments": {
"slot": 3,
"profile_id": "nimh-aa-conservative-charge"
}
}Start requires a second explicit confirmation:
{
"name": "charger.start",
"arguments": {
"slot": 3,
"confirmation_token": "START_SLOT_3"
}
}Emergency stop is deliberately tokenless:
{"name": "charger.stop_all", "arguments": {}}Tools
Production surface is namespaced as charger.*:
Tool | Purpose |
| Read-only BLE scan. |
| Manage the charger connection. |
| Slot chemistry, mode, voltage/current, temperature, state. |
| Charger-stored voltage series as JSON/CSV. |
| Bundled profiles and enforced safety checks. |
| Dry-run by default; live write requires its slot token. |
| Start a prepared slot; requires a separate token. |
| Immediate emergency stop. |
| Bounded, redacted audit log. |
Fourteen legacy mc3000_* tools remain for protocol/debugging work. They use the same
confirmation policy for non-emergency writes. Raw writes cannot implicitly start slots and always
block factory/calibration restore opcodes.
Safety model
API slots are zero-based
0..3; physical slots are1..4.apply_profiledefaults todry_run=true.Live profile writes require exactly
APPLY_PROFILE_SLOT_<slot>.Starts require exactly
START_SLOT_<slot>.Safety checks run before any backend call; unsupported chemistry fails closed.
NiMH/Eneloop/NiCd, LiIon, and LiFe have enforced limits.
Unknown charger models and MC5000 connections are read-only.
Session logs redact addresses and confirmation tokens and are bounded in memory.
Full model: docs/safety-model.md.
Profile schema and bundled examples: docs/profile-schema.md.
Compatibility
Confirmed live: SKYRC MC3000 firmware 1.23, hardware 2.20.
Protocol details are documented from the official Android app and hardware testing in
docs/ble-protocol-notes.md and
docs/reverse-notes.md. MC5000 support is intentionally read-only until
writes are verified on real hardware.
Charger firmware behavior can differ. A profile write acknowledgement is not proof that the charger applied it—start the slot and verify mode/current/status.
Development
cargo fmt --all -- --check
cargo clippy --all-targets --all-features --locked -- -D warnings
cargo test --all-features --locked
cargo audit && cargo deny checkThe fake backend keeps hardware out of normal tests and CI. See
CONTRIBUTING.md for the full workflow and hardware-safety rule.
Documentation
Security and disclosure:
SECURITY.mdSafety model:
docs/safety-model.mdSupported devices:
docs/supported-devices.mdExamples:
docs/examples.mdRelease/publishing checklist:
docs/publishing.mdAgent skill:
skill/SKILL.md
License
Apache-2.0. See LICENSE.
Available Tools
27 toolscharger.apply_profileB
Validate and apply a profile to a slot. Dry-run is default; live write requires token.
Inputs: slot (required), dry_run, profile, profile_id, +1 more.
charger.connectC
Connect to a selected charger. Prefer an explicit address from scan_devices.
Inputs: address, timeout.
charger.export_session_logA
Export in-memory session log with redacted device identifiers.
Inputs: no named parameters.
charger.export_voltage_curveC
Export the charger-stored voltage curve as JSON or CSV.
Inputs: slot (required), format, timeout.
charger.get_statusA
Read current charger status for all slots.
Inputs: no named parameters.
charger.get_voltage_curveB
Read the charger-stored app-style voltage time-series for one slot. No polling.
Inputs: slot (required), timeout.
charger.list_profilesC
List bundled safe example profiles.
Inputs: no named parameters.
charger.read_slotsB
Read one slot or all slot statuses. Slot is zero-based 0..3.
Inputs: slot.
charger.scan_devicesC
Read-only BLE scan for supported chargers.
Inputs: timeout.
charger.startC
Start the already-applied operation on a slot. Requires START_SLOT_ token.
Inputs: slot (required), confirmation_token (required).
charger.stop_allA
Emergency stop for all slots; bypasses profile validation.
Inputs: no named parameters.
charger.stop_slotA
Emergency stop for one slot; bypasses profile validation.
Inputs: slot (required).
charger.validate_profileB
Validate a battery profile against enforced chemistry/device/safety limits.
Inputs: profile, profile_id.
mc3000_apply_profileB
Apply a profile/program. Pass profile_hex from mc3000_build_profile or pass the same profile fields directly. Optionally start selected slots.
Inputs: mode, start, breakin, slot_mask, +18 more.
mc3000_build_profileA
Build a 40-byte MC3000 profile/program frame without sending it.
Inputs: slot_mask (required), mode, breakin, cycle_mode, +16 more.
mc3000_connectC
Connect to MC3000 by BLE address, or scan and connect to the first matching charger if address is omitted.
Inputs: address, timeout.
mc3000_disconnectA
Disconnect from charger.
Inputs: no named parameters.
mc3000_get_basicB
Read basic device settings.
Inputs: no named parameters.
mc3000_get_versionB
Read firmware/hardware version.
Inputs: mac.
mc3000_get_voltage_curveB
Read voltage curve for a zero-based slot. Response is parsed into millivolt points.
Inputs: slot (required), timeout.
mc3000_mc5000_statusA
Read slot status using MC5000 frame layout (opcode 0x91).
Inputs: slot (required).
mc3000_scanC
Scan BLE devices and return devices whose advertised name matches the official MC3000 app filters.
Inputs: timeout.
mc3000_send_rawC
Send a raw hex frame. Escape hatch for protocol experiments.
Inputs: hex, wait, start, timeout, +1 more.
mc3000_set_basicC
Set basic device settings.
Inputs: display, input_mv, temp_unit, cooling_fan, +2 more.
mc3000_startC
Start charging/program on a zero-based slot 0..3.
Inputs: slot (required).
mc3000_statusA
Poll slot status. Slot is zero-based 0..3; omit slot to poll all four.
Inputs: slot.
mc3000_stopC
Stop a zero-based slot 0..3.
Inputs: slot (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Many tools have overlapping purposes, e.g., charger.connect vs mc3000_connect, charger.get_status vs mc3000_status, charger.get_voltage_curve vs mc3000_get_voltage_curve. This duplication makes it difficult for agents to choose the correct tool.
Two inconsistent naming conventions are used: 'charger.' prefix with dot notation and 'mc3000_' prefix with underscore notation. Within each set, names are consistent, but mixing them is confusing. Also, 'mc3000_mc5000_status' is an outlier.
27 tools is excessive for a charger control server. Much of this is due to duplication between the two tool sets. The server would be better served with a single, streamlined set of around 10-15 tools.
Despite the duplication, the server covers most essential operations: connect, disconnect, scan, apply profiles, start/stop, get status, get voltage curve, and export logs. Minor gaps like firmware update are present but not critical.
Maintenance
Related MCP Connectors
MCP server wrapping the Tesla Fleet API and TeslaMate API
MCP server for Yoto: manage cards, tracks, icons and family devices from any MCP client.
MCP server for Klever blockchain smart contract development.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceBluetooth Low Energy (BLE) MCP server that allows AI agents to scan, connect to and communicated with BLE devices, as well as simulate BLE perhipherals.27BSD 2-Clause "Simplified"
- FlicenseNot gradedqualityCmaintenanceMCP server to manage your Aranet4 CO2 sensor, enabling scanning, data fetching, historical querying, and plotting.4-
- AlicenseNot gradedqualityDmaintenanceMCP server for controlling compatible boards over Bluetooth serial, including DC motors, servos, IO, and sensors.MIT
- AlicenseAqualityBmaintenanceMCP server that connects to Felicity Solar cloud battery data, allowing natural language queries about battery status, cell voltages, and charge state.1752 npm1MIT