Engwe N1 Air MCP Server
Click on "Install 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., "@Engwe N1 Air MCP ServerSet speed limit to 30 km/h"
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.
π² Engwe N1 Air β BLE Reverse Engineering + Claude MCP Server
Reverse engineered the Engwe N1 Air e-bike's Bluetooth protocol and built a Claude AI integration to control it from your Mac.
What This Does
π Unlock speed limit via Bluetooth (up to 40 km/h)
π Lock/unlock the bike remotely via IoT API
π Find your bike (sound + light alarm)
π Battery, mileage, cadence real-time stats
π Geo-fence management
πͺ PAS level control via Bluetooth
π€ Claude AI integration β control your bike by talking to Claude
π₯οΈ Mac menubar app β one-click access to all features
Related MCP server: Lovense Cloud MCP
How It Was Built
Step 1 β API Discovery (Charles Proxy)
Captured network traffic from the Engwe iOS app using Charles Proxy. Found the main API endpoint at app-api.engweapp.com with JWT authentication.
Step 2 β APK Decompile (JADX)
Decompiled the Android APK using JADX to find all internal API endpoints and BLE command codes.
jadx -d engwe-source ENGWE_2.7.2_APKPure.xapk
grep -r "iot/device" engwe-source --include="*.java" | grep -o '"[^"]*iot/device[^"]*"' | sort -uStep 3 β BLE Protocol Reverse Engineering
Found the complete BLE protocol in ProtocolUtil.java and BLEBikeCommand.java.
V2 Protocol Format:
456E + CMD(4) + LEN(4) + DATA + CRC16(4) + 7765BLE UUIDs (from BluetoothRegulate.java):
Service: 00001820-0000-1000-8000-00805f9b34fb
Write: 00001822-0000-1000-8000-00805f9b34fb
Notify: 00001821-0000-1000-8000-00805f9b34fbBLE Command Reference
All commands use V2 protocol format: 456E + CMD + LEN + DATA + CRC16 + 7765
Command | Hex | Description |
Speed Limit |
| 0x00=0, 0x10=10, 0x20=20, 0x30=30, 0x40=40 km/h |
PAS Level |
| 0x00β0x05 |
Motor Current Limit |
| Under investigation |
Cruise Control Set |
| Under investigation |
Wheel Diameter |
| Under investigation |
Factory Reset |
| β οΈ Irreversible |
Lock State |
| Query lock |
Power On/Off |
| 01=on, 02=off |
Auto Shutdown Time |
| Minutes |
Speed Limit Example (40 km/h):
# Index 4 * 16 = 0x40
command = "456E2A650001406A237765"CRC16 Calculation (ModBus):
def crc16(hex_str):
data = bytes.fromhex(hex_str)
crc = 0xFFFF
for byte in data:
crc ^= byte
for _ in range(8):
crc = (crc >> 1) ^ 0xA001 if crc & 1 else crc >> 1
return format(crc, "04X")
# CRC input = CMD + LEN + DATA
# Example: crc16("2A65" + "0001" + "40") = "6A23"IoT API Endpoints
Base URL: https://app-api.engweapp.com
Endpoint | Description |
| Lock/unlock bike |
| Sound + light alarm |
| Vibration alarm + signal |
| Geo-fence on/off |
| List geo-fences |
| BLE auto-unlock |
| Headlight + realtime PAS/charge |
| Battery SOC/SOH, mileage, cadence |
| IoT/BT/4G firmware versions |
| Real-time attributes |
| IoT subscription info |
| Weekly ride statistics |
Installation
Requirements
Node.js 18+
Python 3.9+
Mac (for menubar app)
git clone https://github.com/SafaAslan/engwe-n1air-mcp
cd engwe-n1air-mcp
npm install
pip3 install bleakGet Your Token
Use Charles Proxy to capture traffic from the Engwe iOS/Android app. Find the Authorization header in any request to app-api.engweapp.com.
Configure Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"engwe-n1air": {
"command": "node",
"args": ["/path/to/engwe-n1air-mcp/index.js"],
"env": {
"ENGWE_IMEI": "YOUR_IMEI",
"ENGWE_BLE_MAC": "YOUR_BLE_MAC",
"ENGWE_TOKEN": "YOUR_JWT_TOKEN"
}
}
}
}Find Your IMEI & BLE MAC
# IMEI β visible in Engwe app under bike settings
# BLE MAC β run while bike is on:
python3 -c "
import asyncio
from bleak import BleakScanner
async def scan():
devices = await BleakScanner.discover(timeout=10)
for d in devices:
if d.name and 'ENGWE' in d.name.upper():
print(d.address, d.name)
asyncio.run(scan())
"Usage
Claude AI (via MCP)
Once configured, just talk to Claude:
"Lock my bike"
"What's my battery level?"
"Set speed limit to 35 km/h"
"Show my ride stats for this week"
Menubar App (Mac)
npm install electron
./node_modules/.bin/electron tray.jsAuto-start on Boot
chmod +x setup_autostart.sh
bash setup_autostart.shSpeed Limit Script (standalone)
python3 ble_speed3.pyProject Structure
engwe-n1air-mcp/
βββ index.js # Claude MCP server (18 tools)
βββ tray.js # Mac menubar app
βββ ble_speed3.py # Standalone speed limit script
βββ ble_scan2.py # BLE device scanner
βββ setup_autostart.sh # Mac autostart setup
βββ README.mdβ οΈ Disclaimer
Unlocking the speed limit above 25 km/h is illegal on public roads in the EU. This project is for educational and off-road/private use only. Use at your own risk. This project is not affiliated with Engwe.
Contributing
Pull requests welcome! Especially interested in:
Testing on other Engwe models (P275 SE, M20, etc.)
Cruise control command (
0128)Motor current limit (
2A66)Android version of menubar app
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-quality-maintenanceEnables Claude to control Nordic Thingy:52 IoT devices via Bluetooth LE, allowing users to manage LED colors, play sounds, and read environmental sensors through natural language conversations.Last updated
- Alicense-qualityCmaintenanceEnables remote control of Lovense toys through Claude using natural language commands. Supports vibration patterns, presets, and intensity control from any device via Cloudflare Workers.Last updated4Apache 2.0
- Flicense-qualityCmaintenanceConnect Claude to XERT cycling analytics - access fitness signature (FTP, LTP, HIE), training load, workouts, and activities.Last updated5
- Flicense-qualityDmaintenanceEnables natural language control of an esieabot robot (motors, servo, camera) through Claude Desktop or MCP Inspector.Last updated
Related MCP Connectors
Garmin data in Claude & ChatGPT via the Garmin Health API. OAuth sign-in, no password sharing.
Garmin data in Claude: 135 tools β activities, sleep, HRV, training, workouts. Free, open source.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SafaAslan/engwe-n1air-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server