uniwire

Electrical single-line and multi-line diagrams: build, check (NF C 15-100, IEC 60364), draw, PDF.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
82%
Naming quality
90%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~4,098Tokens (tool definitions)
~1.8 KBTypical response size
Significant attention impact (3.20% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "uniwire": {
      "url": "https://mcp.uniwire.sh/mcp"
    }
  }
}

Remote endpoints

https://mcp.uniwire.sh/mcpstreamable-http

What it can do

Tool inventory

Tools (14)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢get_reference_card(level, lang)

Return the reference card of the uniwire format for electrical diagrams: document skeleton, node types (breakers, RCDs, cables, loads, transformers, PV...) and their fields, enums, links, pitfalls, examples. Read it once before writing a document; type_info gives the fields of one type in detail.

Input Schema

{
  "type": "object",
  "properties": {
    "level": {
      "default": "compact",
      "description": "'compact' (about 3k tokens) or 'full' (every field).",
      "title": "Level",
      "type": "string"
    },
    "lang": {
      "default": "en",
      "description": "Language of the returned texts: 'en' (English) or 'fr' (French).",
      "title": "Lang",
      "type": "string"
    }
  },
  "title": "get_reference_cardArguments"
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "get_reference_cardOutput"
}
🟢list_types(category, lang)

List the node types of the format (type, category, label), optionally for one category. Use it to find the type name of a device or load before writing a node; type_info then gives its fields.

Input Schema

{
  "type": "object",
  "properties": {
    "category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only the types of this category: source, measure, protection, switching, control, converter, conductor, container, connector or load; default: all.",
      "title": "Category"
    },
    "lang": {
      "default": "en",
      "description": "Language of the returned texts: 'en' (English) or 'fr' (French).",
      "title": "Lang",
      "type": "string"
    }
  },
  "title": "list_typesArguments"
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "items": {
        "additionalProperties": {
          "type": "string"
        },
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_typesOutput"
}
🟢type_info(type, lang)

Return every field of one node type with its description, unit and allowed values (enums). Use it before writing or editing a node of that type; list_types gives the type names.

Input Schema

{
  "type": "object",
  "properties": {
    "type": {
      "description": "A node type name from list_types, e.g. 'breaker', 'rcd', 'socket'.",
      "title": "Type",
      "type": "string"
    },
    "lang": {
      "default": "en",
      "description": "Language of the returned texts: 'en' (English) or 'fr' (French).",
      "title": "Lang",
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "title": "type_infoArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "type_infoDictOutput"
}
🟢validate(document)

Validate a uniwire document (electrical diagram as JSON) against the format only: structure, types, ids, references and links, without the electrical rules (use check for those). Returns valid + issues, each naming the node id and field when possible, plus viewer_url (the document in the uniwire web editor) and pdf_url (the PDF drawn by uniwire).

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    }
  },
  "required": [
    "document"
  ],
  "title": "validateArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "validateDictOutput"
}
🟢check(document, profiles)

Check an electrical installation (single-line diagram, panel, schéma unifilaire, tableau électrique): validates the document, then applies the rule profiles (NF C 15-100 'nfc15100', French grid connection 'enedis', IEC 60364 'iec60364', PLC; default: the document's 'profiles'; 'core' always applies): breaker ratings against cable sections, RCDs, circuits per protection, selectivity... Returns findings (level error/warning/info, rule, node id, message, source), a summary, 'scope' (what the checks cover and do not cover: automatic checks of the document data, not a conformity certificate), viewer_url (the document in the uniwire web editor: drawing, findings, downloads) and pdf_url (the PDF drawn by uniwire).

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    },
    "profiles": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Rule profiles to apply, e.g. ['nfc15100', 'enedis'] (France) or ['iec60364']; default: the 'profiles' of the document. 'core' always applies.",
      "title": "Profiles"
    }
  },
  "required": [
    "document"
  ],
  "title": "checkArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "checkDictOutput"
}
🟢describe(document, lang)

Return a text outline of an electrical diagram: installation, full tree of the panel with stable ids, ratings and cables, links, interlocks, boards and findings summary. Use it to read a document and find the node ids before apply_patch.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    },
    "lang": {
      "default": "en",
      "description": "Language of the returned texts: 'en' (English) or 'fr' (French).",
      "title": "Lang",
      "type": "string"
    }
  },
  "required": [
    "document"
  ],
  "title": "describeArguments"
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "describeOutput"
}
🟡apply_patch(document, ops, validate)

Edit an electrical diagram by node id (change a rating, add a circuit, move a load...) and return the new document. ops (applied in order): {"op":"set","id":ID,"path":"in_A","value":20} (null value removes; no id = document root, e.g. path "installation.earthing"); {"op":"add","parent":ID,"node":{...},"index":0} (or "at":"sources"); {"op":"remove","id":ID}; {"op":"move","id":ID,"parent":ID,"index":0}; {"op":"rename","id":ID,"new_id":NEW}; {"op":"link","link":{"kind":"control","from":ID,"to":ID}}; {"op":"unlink","id":LINK_ID} or {"op":"unlink","from":ID,"to":ID,"kind":K}. On failure returns ok=false and errors naming the failing op index (null = validation of the result).

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    },
    "ops": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "string"
        }
      ],
      "description": "The edit operations, applied in order (list, or its JSON text): see the description for the operation forms.",
      "title": "Ops"
    },
    "validate": {
      "default": true,
      "description": "Validate the resulting document (default true).",
      "title": "Validate",
      "type": "boolean"
    }
  },
  "required": [
    "document",
    "ops"
  ],
  "title": "apply_patchArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "apply_patchDictOutput"
}
🟢render(document, kind, format, sheet, view, ...)

Draw the electrical diagram (schéma unifilaire / multifilaire). kind: 'single-line' or 'multi-line'; view: a view id of the document (e.g. a wire-marking view). format 'svg' returns the SVG text of every sheet (or of 'sheet', numbered from 1); 'pdf' writes to 'path' if given, else returns base64 (requires the uniwire[pdf] extra); on the hosted server it returns pdf_url (the PDF drawn by uniwire) instead. color: 'none' | 'conductors' | 'phase' | 'source' | 'status' | 'voltage' (adds a legend); conductor_colors: 'iec' (IEC 60445) | 'us'.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    },
    "kind": {
      "default": "single-line",
      "description": "'single-line' or 'multi-line' (one line per conductor).",
      "title": "Kind",
      "type": "string"
    },
    "format": {
      "default": "svg",
      "description": "'svg' or 'pdf'.",
      "title": "Format",
      "type": "string"
    },
    "sheet": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Only this sheet (numbered from 1); default: all.",
      "title": "Sheet"
    },
    "view": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Id of a view of the document (its 'views' list); default: the first view of the requested kind.",
      "title": "View"
    },
    "path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "File to write the PDF to (local server only).",
      "title": "Path"
    },
    "color": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Colouring: 'none', 'conductors', 'phase', 'source', 'status' or 'voltage' (adds a legend).",
      "title": "Color"
    },
    "conductor_colors": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Conductor colour convention: 'iec' (IEC 60445) or 'us'.",
      "title": "Conductor Colors"
    }
  },
  "required": [
    "document"
  ],
  "title": "renderArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "renderDictOutput"
}
⚪viewer_link(document)

Links to a document: viewer_url opens it in the uniwire web editor (drawing, single-line and multi-line, rule findings, PDF and SVG downloads, nothing to install); pdf_url is the PDF drawn by uniwire. On the hosted server the document is kept 30 days so that the short links open it (anyone with a link can open it); elsewhere it travels in the link (after '#') and is stored nowhere.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    }
  },
  "required": [
    "document"
  ],
  "title": "viewer_linkArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "viewer_linkDictOutput"
}
🟢wiring(document, what, view)

Wiring exports of an installation as rows with stable column names (repérage des fils, carnet de câbles, liste d'E/S, borniers): what='markers' (one row per wire end, for label printers), 'wires' (wire list), 'cables' (cable schedule), 'io' (one row per PLC channel, connected or spare, with the device linked to it) or 'terminals' (one row per terminal of each terminal block). Marks follow the wire_marking rules of the view (id), by default the first view that declares them.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    },
    "what": {
      "default": "markers",
      "description": "'markers' (one row per wire end, for label printers), 'wires' (wire list), 'cables' (cable schedule), 'io' (I/O list of the PLCs) or 'terminals' (terminal strip table).",
      "title": "What",
      "type": "string"
    },
    "view": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Id of a view of the document (its 'views' list); default: the first view of the requested kind.",
      "title": "View"
    }
  },
  "required": [
    "document"
  ],
  "title": "wiringArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "wiringDictOutput"
}
🟢bom(document)

Compute the bill of materials (nomenclature) of an electrical installation from its document: one row per manufacturer / part number for the nodes with a product reference, then one row per kind of equipment without a reference (type and main characteristics in 'spec', e.g. 'C16 1P+N') and per kind of cable (total length in 'length_m'), with quantities and the reference designations involved. Use it to prepare a quote or an order; wiring gives the wire list and cable schedule.

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    }
  },
  "required": [
    "document"
  ],
  "title": "bomArguments"
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "bomOutput"
}
🟢list_examples

List the 53 example installations (dwellings, shops, offices, workshops, PV, EV charging, UPS, MV/LV substations, PLCs): name, title, language, profiles, earthing, system.

Input Schema

{
  "type": "object",
  "properties": {},
  "title": "list_examplesArguments"
}

Output Schema

{
  "type": "object",
  "properties": {
    "result": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "title": "Result",
      "type": "array"
    }
  },
  "required": [
    "result"
  ],
  "title": "list_examplesOutput"
}
🟢get_example(name)

Return an example installation document by name. Use it as a starting point for a similar installation, then edit it with apply_patch; list_examples gives the names.

Input Schema

{
  "type": "object",
  "properties": {
    "name": {
      "description": "Example name from list_examples, or its number prefix (e.g. '02').",
      "title": "Name",
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "title": "get_exampleArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_exampleDictOutput"
}
🟢normalize(document)

Return the resolved form of a document: templates ('use') applied, every node and link id assigned, numbers in canonical form. Use it to read a document exactly as the rules and drawings see it, or to get stable ids before apply_patch; it does not apply the electrical rules (see check).

Input Schema

{
  "type": "object",
  "properties": {
    "document": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "string"
        }
      ],
      "description": "The uniwire document of the electrical installation: a JSON object, or its JSON text, as returned by get_example, apply_patch or normalize (a file path is accepted when the server runs locally).",
      "title": "Document"
    }
  },
  "required": [
    "document"
  ],
  "title": "normalizeArguments"
}

Output Schema

{
  "type": "object",
  "additionalProperties": true,
  "title": "normalizeDictOutput"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded14 tools
verifiedversion not recorded14 tools
verifiedversion not recorded14 tools
verifiedversion not recorded14 tools