Connect an AI assistant
Connect Claude Code, Claude Desktop or another MCP client to your Ohmstead account with the Ohmstead MCP server: sign in once, add one line, and ask.
The Ohmstead MCP server lets Claude and other AI assistants work in your Ohmstead projects as you. The assistant searches the Codex, places parts, types the wires, fixes fan-outs and validates, and you open the project in Ohmstead to see the drawing. Setup takes about two minutes.
Why it works with AI
Section titled “Why it works with AI”An Ohmstead project is data, and the drawing is generated from it. Components are linked to Codex parts with their real terminals, each wire is a row with a signal type, and terminal strips and bundles are worked out from the wiring. The assistant edits that model, never a drawing, so one instruction like PSU1:+ → K1:A1 is a complete edit and forty I/O points go in one call.
Its edits run through the same code as yours in the app:
add_connectionsrefuses a terminal that isn't on the Codex part, and every wiring edit returns the project's issues straight after the change.validate_projectruns the app's own checks: fan-outs, signal clashes, missing or unknown terminals, cables whose plugs don't mate, supply overloads, wires outside their terminal block's clamp range, and wire and fuse sizing against the project's standard (NEC, NFPA 79 or ABYC E-11), including voltage drop.save_partandadd_part_terminalscheck a part's function and terminal roles the same way the Codex does, and refuse a part that's missing one, naming it.fix_fanoutsis the app's Fix all: it routes extra wires through jumpered terminal strips, or through splices (SP1…) withvia: "splice". Withoutviait follows the project type (update_project project_type): splices in a vehicle project, strips otherwise.explain_sizingshows one wire's numbers, the same ones its details show in Ohmstead.
Before you start
Section titled “Before you start”- The Ohmstead app, installed and signed in once. The MCP server signs in to the same account. Get it here.
- Node.js 20 or newer. Check with
node --version. - An MCP client, such as Claude Code or Claude Desktop.
1. Sign in
Section titled “1. Sign in”In a terminal:
npx -y ohmstead login --desktopEnter the email you use in Ohmstead, then the 6-digit code it sends you. --desktop picks the same server as your Ohmstead app. You sign in once; the session refreshes itself and is kept in ~/.ohmstead/.
Check it worked:
npx -y ohmstead whoamiIt prints your name, plan and teams.
2. Add it to your assistant
Section titled “2. Add it to your assistant”Claude Code:
claude mcp add ohmstead -s user -- npx -y ohmstead-s user makes it available in every folder. Start a new Claude Code session to load it.
Claude Desktop: open Settings → Developer → Edit Config and add Ohmstead to claude_desktop_config.json:
{ "mcpServers": { "ohmstead": { "command": "npx", "args": ["-y", "ohmstead"] } }}Save, then quit and reopen Claude Desktop.
Other MCP clients: add a local (stdio) server that runs npx -y ohmstead.
3. Try it
Section titled “3. Try it”Ask your assistant something that reads first:
Which Ohmstead projects do I have?
Then something real:
Make a project for a 24 VDC supply driving two contactor coils, wire it, and fix any fan-outs.
The assistant creates the project, places a power supply and two contactors from the Codex, wires the coils, and routes the shared +24 V through a terminal strip. Open the project in Ohmstead to see the drawing. If it's already open, it updates live as the assistant works.
What it can do
Section titled “What it can do”| Area | Tools |
|---|---|
| Projects | list_projects, get_project, create_project, update_project, import_wiring_list, export_project_file, import_project_file, export_io_points |
| Components | add_components, update_components, remove_components, add_subsystem, update_subsystem, split_subsystem, remove_subsystem |
| Layout and pages | layout_view, set_block_positions, clear_block_positions, add_page, update_page, remove_page |
| Wires and cables | add_connections, update_connection, remove_connections, add_cable, update_cable, remove_cable, mate_connectors, unmate_connectors, get_pinouts, assign_gland |
| Terminal strips | add_terminal_strip, add_splice, fix_fanouts, optimize_strips, split_strips, set_strip_blocks, set_strip_parts |
| P&ID | add_pid_items, update_pid_items, add_process_lines, link_instrument, list_pid_symbols and the sheet tools |
| Checks | validate_project, explain_sizing, allow_multiple_wires |
| Bill of materials | get_bom (table or CSV) |
| Codex | search_codex, save_part, add_part_terminals, fork_part, list_signal_types, save_signal_type, list_manufacturers |
Everything runs under your account's permissions, the same as the app. It reads and edits, and it never deletes projects or Codex parts. Issued or submitted projects are read-only to it. It can also import an existing design.
On Free, the assistant can read projects, search the Codex and validate. Editing through it needs Pro, Student or an editor role or higher in a team or class. To work in a team's projects, name the team in your request; whoami lists the teams you're in.
Troubleshooting
Section titled “Troubleshooting”- "Not signed in to Ohmstead": run
npx -y ohmstead login --desktopagain, then retry. No restart needed. - The tools don't show up: start a new session (Claude Code) or quit and reopen the app (Claude Desktop). In Claude Code,
claude mcp listshows whether the server connected. npxnot found: install Node.js 20 or newer, then reopen your terminal or assistant.- Edits disappear: if the project is open in Ohmstead with unsaved changes when the assistant edits it, choose Load their changes. See Working in several places.
- Company or on-prem server: sign in with
npx -y ohmstead login --server https://… --key <anon key>instead of--desktop.
npx -y ohmstead logout signs out.