EbikePartsPicker
Checks whether a DIY e-bike conversion is legal in each US state, whether a motor kit fits a bike and matches a battery, and estimates range. Cited state law for all 50 states and DC. Read-only, no API key.
Hosted MCP Server
npx add-mcp 'https://ebikepartspicker.com/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
API and MCP server
The rules behind the Build Checker are free to use from code or from an AI assistant. Read-only, no key, no sign-up.
MCP server (for AI assistants)
A Model Context Protocol server is available at:
https://ebikepartspicker.com/mcp
Transport: Streamable HTTP, stateless, JSON responses. No authentication. Add it as a custom connector or remote MCP server in any client that supports MCP.
| Tool | What it does |
|---|---|
check_conversion_legality | Checks whether a DIY e-bike conversion (motor kit on a regular bicycle) qualifies as a legal electric bicycle in a US state. Returns a pass / warn / fail verdict with a reason for each rule: motor power, speed and class, licence/registration/insurance, class label, battery certification, plus state notes on conversions and recent law changes, with source links. |
check_build_compatibility | Checks whether a conversion motor or kit fits a bicycle and matches a battery: bottom bracket or dropout width, wheel size, frame and fork material, battery voltage against the controller, and battery current rating against controller draw. Pass a component_id from list_components. |
check_full_build | Runs legality, compatibility and range together for one planned conversion. Use when the user gives their state, bike details, motor or kit and battery in one go. |
get_state_ebike_law | Returns the researched e-bike rules for one US state or DC: definition, wattage and speed limits, age, helmet, licence, registration, insurance, label and modification rules, what an out-of-class bike becomes, battery rules, conversion notes, recent changes, statute citations and sources. |
list_state_ebike_laws | Returns a one-line summary for all 50 states and DC: framework, wattage limit, speed limits, and whether licence, registration, insurance or a label is required. Use to compare states. |
get_federal_ebike_law | Returns the federal position: the consumer-product definition of a low-speed electric bicycle (15 U.S.C. 2085), the three-class definition for federally funded paths (23 U.S.C. 217), and the status of CPSC battery rulemaking. |
list_components | Lists common e-bike conversion motors and kits with rated power, voltages, certification status and typical price. Optional filter by type. |
get_component | Returns full specifications for one conversion motor or kit: power, voltages, controller current, torque, sensor type, bottom bracket or dropout sizes, wheel sizes, certification wording, fit notes and the source page. |
estimate_range | Estimates range in miles (low, typical, high) from battery size, total weight, speed, terrain and rider effort, and returns the formula's assumptions. |
get_battery_safety_guidance | Explains UL 2271 and UL 2849, the difference between certified and 'tested to', and which states and cities require certified e-bike batteries, with sources. |
list_conversion_kit_rebates | Lists e-bike incentive programs and whether each covers conversion kits. Optional two-letter state filter. |
Example request:
curl -s https://ebikepartspicker.com/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"check_conversion_legality","arguments":{"state":"CA","motor_watts":750,"has_throttle":true}}}'
JSON API
| Endpoint | Returns |
|---|---|
GET /api/v1/states | Summary of all 50 states and DC |
GET /api/v1/states/{code} | Full record for one state, with sources |
GET /api/v1/federal | Federal position |
GET /api/v1/legality | Legality verdict. Parameters: state, motor_watts, has_throttle, throttle_top_mph, assist_top_mph, has_pedals, battery_cert |
GET /api/v1/compatibility | Fit and electrical checks. Parameters: component_id, wheel, bb, rear_dropout_mm, front_dropout_mm, brake, frame, fork, battery_volts, battery_ah, bms_amps |
GET /api/v1/check | Legality, compatibility and range together |
GET /api/v1/range | Range estimate. Parameters: battery_volts, battery_ah, total_weight_lb, speed_mph, terrain, rider_effort |
GET /api/v1/components | Motors and kits; optional type |
GET /api/v1/components/{id} | One motor or kit |
GET /api/v1/battery-guidance | Certification facts and state battery rules |
GET /api/v1/rebates | Incentive programs and whether they cover kits; optional state |
The check endpoints also accept POST with a JSON body. Example:
curl "https://ebikepartspicker.com/api/v1/legality?state=NY&motor_watts=500&has_throttle=true"
Terms of use
- Free for personal and commercial use. Please link to the state page you rely on.
- Results are general information, not legal advice. Pass the disclaimer and sources through to your users.
- Data carries a research date (
researched) and a rules version (rules_version). Cache responses for a day or more; the data does not change hourly. - No uptime guarantee. Heavy automated use may be limited.
Also available: llms.txt and sitemap.xml. Questions or corrections: contact.