tinkercad-circuits-mcp
v0.1.0Builds and simulates Arduino breadboard circuits in Tinkercad Circuits.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
tinkercad_status Check Tinkercad sign-in
Opens the Tinkercad dashboard in the server's Chrome profile and reports whether you are signed in. If not, the user has to run `npm run login` once.
tinkercad_list_parts List parts
Lists the parts that can go in a circuit spec, with their pin names, pin offsets (in breadboard holes, at angle 0) and settable properties. Filter with a word like 'led', 'motor' or 'sensor'.
| Parameter | Type | Description |
|---|---|---|
query | string |
tinkercad_open_circuit Open or create a circuit
Opens an existing Tinkercad Circuits design (link or id) in the editor, or creates a new one with target "new". Optionally renames it.
| Parameter | Type | Description |
|---|---|---|
target * | string | "new", a design link like https://www.tinkercad.com/things/abc123, or just the id |
title | string |
tinkercad_build_circuit Build a circuit
Replaces everything in the open circuit with the one described here: an Arduino Uno, one small breadboard, the listed parts placed in breadboard holes, the wires and (optionally) the Arduino code. If no circuit is open, a new one is created. Holes are named like '12e' (columns 1-30, rows a-j; a-e and f-j are the two halves). Rails are T+, T-, B+, B- with an optional column (T-12). Wire ends are holes, rails, uno.PIN (uno.D13, uno.A0, uno.5V, uno.GND1) or ref.pin (led1.anode). `pin` says which leg of the part goes into `at`; the part is rotated until all legs land in holes. See docs/circuit-spe…
| Parameter | Type | Description |
|---|---|---|
arduino | boolean | |
code | string | |
parts | array | |
title | string | |
wires | array |
tinkercad_get_circuit Read the open circuit
Returns the open circuit as Tinkercad has it saved: each part with the hole under every pin, its properties, every wire and the Arduino code.
tinkercad_set_code Set the Arduino code
Replaces the Arduino sketch of the open circuit (text code, not blocks).
| Parameter | Type | Description |
|---|---|---|
code * | string |
tinkercad_set_part Change a part setting
Changes a setting on a part that is already in the circuit, e.g. a potentiometer position (0-1) or the distance an ultrasonic sensor sees. Use it between simulation runs to test different inputs.
| Parameter | Type | Description |
|---|---|---|
props * | object | friendly settings, e.g. {"position": 0.8} or {"distance_cm": 40} |
ref * | string |
tinkercad_simulate Run the simulation
Starts the simulator, optionally presses buttons and types into the Serial Monitor, and samples LED brightness, servo angles and simulator time at the given moments (milliseconds after start). Returns the samples and the end of the Serial Monitor text. The simulator usually runs a bit slower than real time, so leave some margin and check sim_time.
| Parameter | Type | Description |
|---|---|---|
samples_ms * | array | |
keep_running | boolean | |
leds | array | refs of LEDs to read |
presses | array | |
serial | boolean | return the Serial Monitor text |
serial_input | array | |
servos | array | refs of servos to read |
wait_for_serial | string | start the timeline only after this text is printed (e.g. READY) |
tinkercad_screenshot Screenshot
Returns a PNG of the Tinkercad window as it is right now.