Skip to main content
Glama

altium-designer-mcp

CI codecov altium-designer-mcp MCP server – quality and maintenance score on Glama altium-designer-mcp MCP server on mcprush

Let an AI build your Altium libraries — it does the engineering, this tool writes the files.

An MCP server that gives AI assistants (Claude Code, Claude Desktop, Cursor, Antigravity, VS Code Copilot — any MCP client) file I/O and primitive-placement tools for Altium Designer .PcbLib (footprint) and .SchLib (symbol) libraries — so the AI can create and maintain any component, not just pre-programmed packages.


The Problem

Building Altium component libraries by hand is slow and repetitive — every footprint means looking up IPC-7351B pad sizes, courtyards, and silkscreen, then placing each primitive by hand. AI assistants are excellent at exactly that reasoning, but they cannot write Altium's binary .PcbLib/.SchLib files — an undocumented OLE compound format that is easy to corrupt, and Altium silently refuses to open a malformed file.

Approach

Problem

Draw every footprint by hand in Altium

Slow and repetitive; the AI can't touch the file

Ask an AI to emit the binary file directly

It produces a corrupt file Altium won't open

Pre-programmed footprint generators

Only the package types someone coded in advance


Related MCP server: altium-mcp

The Core Idea

The AI handles the intelligence. The tool handles file I/O.

Responsibility

Owner

IPC-7351B calculations

AI

Package layout decisions

AI

Style choices

AI

Datasheet interpretation

AI

Reading/writing Altium files

This tool

Primitive placement

This tool

STEP model attachment

This tool

This means the AI can create any footprint — not just pre-programmed package types. See docs/VISION.md for the full architectural rationale.


Who Is This For?

Anyone who builds or maintains Altium component libraries and uses an MCP-capable AI assistant. The AI does the engineering (datasheet → dimensions → style); this server lets it read and write the actual .PcbLib / .SchLib files.

If you…

Then…

Use Claude Code, Claude Desktop, Cursor, Antigravity, VS Code + Copilot — any MCP client — and design in Altium

✅ This is for you

Want pre-baked generators for a fixed set of packages

❌ Not this — the point is any component

Don't use Altium

❌ Not applicable


Quick Start

Client Setup — verified configuration for Claude Code, Claude Desktop, Google Antigravity, Cursor, VS Code, GitHub Copilot CLI, Windsurf, Cline, Roo Code, Kiro, JetBrains, Zed, Gemini CLI, Codex CLI, Continue, Goose, OpenCode and any other stdio MCP client, plus troubleshooting — on Windows, Linux, and macOS.

Using the server — what to ask for once it is connected: example workflows, prompts and tips, identical for every client.


How It Works

┌─────────────────────────────────────────────────────────────────────────────┐
│  AI-ASSISTED COMPONENT CREATION                                             │
│                                                                             │
│  Engineer                    AI                         MCP Server          │
│    │                         │                              │               │
│    │  "Create 0603 resistor" │                              │               │
│    ├────────────────────────►│                              │               │
│    │                         │                              │               │
│    │                         │  AI reasons about:           │               │
│    │                         │  • IPC-7351B pad sizes       │               │
│    │                         │  • Courtyard margins         │               │
│    │                         │  • Silkscreen/symbol style   │               │
│    │                         │                              │               │
│    │                         │  write_pcblib(primitives)    │               │
│    │                         ├─────────────────────────────►│               │
│    │                         │                              │ Writes        │
│    │                         │                              │ .PcbLib +     │
│    │                         │  write_schlib(symbol)        │ .SchLib files │
│    │                         ├─────────────────────────────►│               │
│    │                         │◄─────────────────────────────┤               │
│    │                         │  { status: "success" }       │               │
│    │                         │                              │               │
│    │  "Done! Footprint       │                              │               │
│    │   and symbol created"   │                              │               │
│    │◄────────────────────────┤                              │               │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

MCP Tools

The server exposes 34 tools, working on both .PcbLib (footprints) and .SchLib (symbols). Every tool's full parameters and examples live in docs/TOOLS.md — this is the categorised overview.

Read & write

Tool

Purpose

read_pcblib

Read footprints from a .PcbLib.

write_pcblib

Write footprints to a .PcbLib.

read_schlib

Read symbols from a .SchLib.

write_schlib

Write symbols to a .SchLib.

Inspect & visualise

Tool

Purpose

list_components

List component names (paginated).

get_component

Get one component's full data.

search_components

Search across libraries by regex/glob.

component_exists

Check whether components exist.

render_footprint

ASCII-art preview of a footprint.

render_symbol

ASCII-art preview of a symbol.

extract_style

Extract styling from an existing library.

Compare

Tool

Purpose

diff_libraries

Compare two library files.

compare_components

Diff two specific components.

Edit in place

Tool

Purpose

update_component

Update a component, preserving its position.

update_pad

Update one pad's properties.

update_primitive

Update one primitive (track/arc/text/fill/region).

batch_update

Batch updates across all components.

reorder_components

Reorder components in a library.

manage_schlib_parameters

List/get/set/remove SchLib parameters.

manage_schlib_footprints

Manage footprint links in SchLib symbols.

Manage components

Tool

Purpose

delete_component

Delete one or more components.

copy_component

Duplicate a component within a library.

rename_component

Rename a component (atomic).

copy_component_cross_library

Copy a component to another library.

bulk_rename

Pattern-based multi-rename.

Library operations

Tool

Purpose

merge_libraries

Merge multiple libraries into one.

write_libpkg

Write a .LibPkg project grouping libraries for IntLib compilation.

export_library

Export to JSON/CSV.

import_library

Import from JSON (inverse of export).

validate_library

Validate for common issues.

repair_library

Remove orphaned data.

extract_step_model

Extract embedded STEP 3D models.

Backups & safety

Tool

Purpose

list_backups

List automatic backups.

restore_backup

Restore from a backup.

Primitive Types

Footprint Primitives (PcbLib)

Primitive

Description

Pad

SMD or through-hole pad with designator, position, size, shape, layer (see Pad Shapes below), power-plane thermal relief, and its own polygon-connect style

Via

Vertical interconnect with layer span, hole size, and thermal relief

Track

Line segment on any layer (silkscreen, assembly, etc.)

Arc

Arc or circle on any layer

Region

Filled polygon (courtyard, copper pour), with optional hole contours

Text

Text string with font, size, position, layer

Fill

Filled rectangle on any layer

ComponentBody

3D model reference (embedded STEP models)

Pad Shapes and Pin 1 Indicator

The shape property on pads controls the copper shape. Use this to indicate pin 1:

Shape

Value

Usage

Rectangle

"rectangle"

Pin 1 indicator — use for the first pad to distinguish it visually

Rounded Rectangle

"rounded_rectangle"

Default for SMD pads (most common)

Round

"round" or "circle"

Circular pads, default for through-hole (both values are equivalent)

Oval

"oval"

Oblong pads for constrained spaces

Octagonal

"octagonal"

Eight-sided pads (chamfered corners)

Example — marking pin 1 with a rectangular pad:

{
    "pads": [
        { "designator": "1", "x": -0.75, "y": 0, "width": 0.9, "height": 0.95, "shape": "rectangle" },
        { "designator": "2", "x": 0.75, "y": 0, "width": 0.9, "height": 0.95, "shape": "rounded_rectangle" }
    ]
}

This follows the IPC-7351 convention where pin 1 has a distinct shape (typically rectangular or square corners) while other pads use rounded corners.

Symbol Primitives (SchLib)

Primitive

Description

Pin

Component pin with name, designator, electrical type, orientation

Rectangle

Filled or unfilled rectangle (component body)

RoundRect

Rounded rectangle with corner radii

Line

Single line segment

Polyline

Multiple connected line segments

Polygon

Filled polygon with border and fill colours

Arc

Arc or circle

Pie

Filled circular sector (arc geometry plus fill)

Image

Embedded or linked raster picture with a bounding box

Ellipse

Ellipse or circle (filled or unfilled)

EllipticalArc

Elliptical arc segment with fractional radii

Bezier

Cubic Bezier curve (4 control points)

Label

Text string (RECORD=4) — the only free text on a symbol

IeeeSymbol

IEEE symbol glyph (RECORD=3): a dot, a clock, an active-low input, …

TextFrame

Bordered multi-line text box (word-wrap, alignment)

Parameter

Component parameter (Value, Part Number, etc.)

FootprintModel

Reference to a footprint in a PcbLib

Standard Altium Layers

Common layers for footprints (each has a Bottom equivalent):

Layer

Usage

Top Layer

Copper pads (SMD)

Bottom Layer

Bottom copper pads

Multi-Layer

Through-hole pads (all copper layers)

Top Overlay

Silkscreen

Top Paste

Solder paste stencil

Top Solder

Solder mask openings

Top Assembly

Assembly outline (documentation)

Top Courtyard

Courtyard boundary (IPC-7351)

Top 3D Body

3D model outline

Additional layers supported:

Layer

Usage

Mid-Layer 1–30

Internal copper layers

Internal Plane 1–16

Power/ground planes

Mechanical 1–32

User-defined mechanical layers

Drill Guide

Drill hole markers

Drill Drawing

Drill chart/table

Keep-Out Layer

Routing exclusion zones

A layer may be named as Altium spells it (Top Overlay, Mechanical 13) or in camel case (TopOverlay, Mechanical13), in any case; every tool accepts the same spellings.


Installation

Prebuilt binaries for Linux (x86_64), macOS (aarch64) and Windows (x86_64) are on the Releases page — each archive bundles a setup README plus docs/CLIENT_SETUP.md, which wires the server into every MCP client we know of. The Linux binary needs glibc 2.34 or newer: Ubuntu 22.04, Debian 12, RHEL 9 (and its free rebuilds, AlmaLinux and Rocky Linux 9) and later.

Claude Desktop users need no archive at all: install the one-click extension altium-designer-mcp.mcpb from the same page (older builds: the identical altium-designer-mcp.dxt) via Settings → Extensions → Advanced settings → Install Extension… — see CLIENT_SETUP.md § Claude Desktop.

Code signing policy: docs/CODE_SIGNING_POLICY.md. The Windows binaries are to be signed through SignPath Foundation; until that is approved they are unsigned, and every release carries a signed build-provenance attestation.

In a container — for a Linux box, a NAS or a CI job that generates libraries into a mounted folder (Altium itself never needs to be inside): the repository's Dockerfile produces the same --locked release build as the published binaries.

docker build -t altium-designer-mcp .
docker run -i --rm -v /path/to/libraries:/libraries altium-designer-mcp

The mounted /libraries folder is the container's whole allow-list. In a client's configuration that is "command": "docker" with "args": ["run", "-i", "--rm", "-v", "/path/to/libraries:/libraries", "altium-designer-mcp"].

To build from source instead, see CONTRIBUTING.md § Development Setup; an optimised binary comes from cargo build --release and lands at target/release/altium-designer-mcp.

Verifying a downloaded release

Released archives are built by GitHub Actions and carry a signed SLSA build provenance attestation, so a download can be traced back to the workflow run and commit that produced it:

gh attestation verify <archive> --repo embedded-society/altium-designer-mcp
sha256sum --check --ignore-missing SHA256SUMS.txt

The binaries are not code-signed, so Windows SmartScreen and macOS Gatekeeper warn on first run (on macOS, right-click → Open). The attestation is the stronger check. See docs/RELEASING.md for how releases are produced.

Command-Line Usage

altium-designer-mcp [OPTIONS] [CONFIG_FILE]

Option

Description

CONFIG_FILE

Path to configuration file (optional, uses default location if omitted)

--allow <DIR>...

Grant access to library folders directly (repeatable). Adds to the config file's allowed_paths, and works with no config file at all — the other settings then take their defaults

--ansi-code-page <PAGE>

The Windows ANSI code page new footprint names are written in, tried first when a library's page is detected, and used for a library that shows none (936 for GBK, 1250, 1252, …); overrides ansi_code_page in the config file

--http <ADDR>

Serve the MCP Streamable HTTP transport on this address (for example 127.0.0.1:8080) at the path /mcp, instead of stdio. A non-loopback address is refused unless a bearer token is set in ALTIUM_DESIGNER_MCP_HTTP_TOKEN. See docs/CLIENT_SETUP.md § HTTP transport

--http-allow-origin <ORIGIN>...

A browser origin allowed to reach the HTTP transport besides the local ones (repeatable)

-v, --verbose

Increase logging verbosity (-v info, -vv debug, -vvv trace)

-q, --quiet

Decrease logging verbosity (only show errors)

-h, --help

Print help information

-V, --version

Print version information

Connecting an AI client

Every MCP client needs the same two absolute paths — the binary and your config file — and differs only in where they are written. The standard block most clients read:

{
    "mcpServers": {
        "altium": {
            "command": "/usr/local/bin/altium-designer-mcp",
            "args": ["/home/you/.altium-designer-mcp/config.json"]
        }
    }
}

Where that goes for Claude Desktop, Cursor, VS Code, Windsurf, Cline, Zed, JetBrains, Gemini CLI, Codex CLI and the rest — and what to do when a client cannot see the server — is in docs/CLIENT_SETUP.md. Use absolute paths: clients do not search PATH or expand ~ for you.


Configuration

The server reads one JSON file — or none: altium-designer-mcp --allow <DIR> grants folders on the command line and runs on defaults for everything else, which is how the Claude Desktop extension starts it. Configuration file location:

  • Linux/macOS: ~/.altium-designer-mcp/config.json

  • Windows: %USERPROFILE%\.altium-designer-mcp\config.json

{
    "allowed_paths": [
        "/path/to/your/altium/libraries",
        "/another/library/path"
    ],
    "logging": {
        "level": "warn"
    }
}

Configuration Options

Option

Description

allowed_paths

Array of directory paths where library files can be accessed; --allow adds to it (default when neither grants anything: the current working directory)

logging.level

Log level: trace, debug, info, warn, error (default: warn)

logging.audit_log_path

Path to an append-only JSON-lines audit log of destructive operations (default: null — no audit log is written)

rate_limit.max_burst

Maximum burst of mutating operations before throttling; read-only tools are never rate limited (default: 120)

rate_limit.refill_per_sec

Token-bucket refill rate for mutating operations, in tokens per second (default: 30.0)

ansi_code_page

The Windows ANSI code page new footprint names are written in: 874, 932, 936, 949, 950, 1250 to 1258 or 65001. The reader also tries it first when it detects a library's code page, and reads a library that shows none through it. Altium Designer 21 displays a footprint's name from those bytes through the machine's code page, so it should be the code page of the machine whose Altium opens the libraries (default: null — the system's code page on Windows, 1252 elsewhere)


STEP Model Integration

STEP models are attached, not generated. The tool links existing STEP files to footprints.

{
    "step_model": {
        "filepath": "./3d-models/0603.step",
        "x_offset": 0,
        "y_offset": 0,
        "z_offset": 0,
        "rotation": 0
    }
}

Embedded vs External Models

Altium supports two ways to reference 3D models:

Type

Storage

Portability

Embedded

STEP data stored inside the .PcbLib file

Fully portable — the model travels with the library

External

File path reference to a .step file on disk

Not portable — requires the file to exist at the referenced path

When copying or merging components between libraries:

  • Embedded models travel with the component — copy_component_cross_library and merge_libraries both copy the referenced model streams into the target (a model shared by several footprints is copied once), so the bodies still resolve after the move.

  • External model references: copy_component_cross_library removes them with a warning by default, since a path relative to the source library rarely resolves elsewhere — pass preserve_external_paths=true to keep them. merge_libraries carries them unchanged.

Embedding a model in the source library is the reliable way to keep 3D data through any copy.

Extracting Embedded Models

Use extract_step_model to extract embedded STEP data from a library:

{
    "name": "extract_step_model",
    "arguments": {
        "filepath": "./MyLibrary.PcbLib",
        "output_path": "./extracted_model.step"
    }
}

For parametric 3D model generation, a dedicated mechanical MCP server is planned as a future project.


Automatic Backups

Before any destructive operation (delete, update, merge, batch update), the server automatically creates a timestamped backup of the target file. Backups use the format:

MyLibrary.PcbLib.20260125_143022.bak

A backup never replaces another: a second one within the same second is MyLibrary.PcbLib.20260125_143022_001.bak, then _002, and so on.

Backup retention: The 5 most recent backups per file are kept, and so is the first one the server made of the file since it started, which holds the file as it was before the session's changes. Older backups are automatically removed to prevent unbounded disk usage.

Operations that create backups:

  • delete_component

  • update_component

  • update_pad

  • update_primitive

  • rename_component

  • copy_component

  • copy_component_cross_library (target file)

  • merge_libraries (target file)

  • reorder_components

  • batch_update

  • bulk_rename

  • repair_library

  • manage_schlib_parameters

  • manage_schlib_footprints

  • write_pcblib / write_schlib (when overwriting)

  • import_library (when overwriting)

  • restore_backup (the current file, before the chosen backup replaces it)

Managing backups: Use list_backups to view available backups and restore_backup to recover from a previous version.

Dry-run support: These operations support dry_run=true to preview changes without modifying files:

  • delete_component — preview which components would be deleted

  • update_component — preview component replacement changes

  • update_pad / update_primitive — preview property changes

  • bulk_rename — preview name changes

  • repair_library — preview orphaned references to remove

  • batch_update — preview library-wide updates

  • copy_component / rename_component / merge_libraries


Notes

Libraries from a Non-Western Windows

Altium stores most names as plain bytes in the Windows code page of the machine that wrote them, with no record of which page that was. A library authored on a Chinese, Japanese, Korean, Central European, Cyrillic, Greek, Turkish, Baltic, Hebrew, Arabic, Vietnamese or Thai Windows therefore reads as mojibake (£¨0402 for (0402) in a tool that assumes Windows-1252.

This server works out the library's code page from the footprints whose real name is recorded twice — once as those bytes, once in Unicode — reads every name through it, and writes it back unchanged, so a rewrite stays byte-identical. Nothing needs configuring to read or edit such a library.

Two cases are worth knowing:

  • A name your Altium must display. Altium Designer 21 and earlier show a footprint's name from those bytes, decoded through the code page of the machine they run on, and never read the Unicode copy. A new or renamed footprint is therefore written in the server's own code page — the system's on Windows. When the server runs on a machine with a different locale from the Altium that opens the libraries, name that page with ansi_code_page in the configuration file or --ansi-code-page on the command line (874, 932, 936, 949, 950, 1250 to 1258, or 65001).

  • A character the page cannot hold. Altium writes ? in its place, and so does this server; the full name is still preserved in the component parameters, as Altium preserves it, and comes back intact on the next read.

Long Component Names

Component names longer than 31 characters are supported. The OLE Compound File format limits storage names to 31 characters, so longer names are automatically truncated internally while the full name is preserved in component parameters. This is handled transparently — you can use any length component name and it will be preserved on read/write roundtrips.


Privacy Policy

altium-designer-mcp is a local tool and collects nothing.

  • Data collection: none. The server has no telemetry and no analytics, and it never contacts any service, including this project's. With --http it listens for an MCP client on the address you give; it still sends nothing anywhere.

  • Usage and storage: it reads and writes only the library files inside the folders you grant (allowed_paths or --allow), plus the timestamped .bak copies it makes beside them before a change. The optional audit log (logging.audit_log_path) is a local file you choose, holding tool names, file names and outcomes — never library contents.

  • Third-party sharing: none. Nothing leaves your machine.

  • Data retention: the files and backups stay until you delete them; backups are capped at the five most recent per library.

  • Contact: matejg03@gmail.com, or a GitHub issue for anything that need not be private.


Documentation

For…

Read

Wiring the server into your AI client

docs/CLIENT_SETUP.md — one section per client

What to ask for once it is connected

docs/USAGE.md — workflows, prompts, tips

Telling the AI how to use it well

docs/AGENT_GUIDE.md (paste into a project brief), docs/AI_WORKFLOW.md

Every tool, parameter and example

docs/TOOLS.md; error messages in docs/errors.md

Why it is built this way

docs/VISION.md, docs/ARCHITECTURE.md

The file formats, byte by byte

docs/PCBLIB_FORMAT.md, docs/SCHLIB_FORMAT.md

Security model and threat analysis

docs/SECURITY.md (reporting: SECURITY.md)

How releases are built and verified

docs/RELEASING.md; code signing policy


Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.


Development

cargo test

Write-path tests generate their own data programmatically; reader tests parse the committed Altium-authored golden fixtures (see Sample Files). Temporary files are created in .tmp/ (git-ignored) and automatically cleaned up.

The full build, formatting, and lint commands are canonical in CONTRIBUTING.md § Development Setup.


Licence

Copyright (C) 2026 The Embedded Society https://github.com/embedded-society/altium-designer-mcp.

GNU General Public License v3.0 — see LICENCE.



Sample Files

Altium-authored sample libraries are committed under scripts/samples/ as golden fixtures: the reader tests (tests/samples_pcblib.rs, tests/samples_schlib.rs) parse them in CI as ground truth. The PowerShell/DelphiScript tooling that (re)generates them needs a real Altium installation and is manual-only.

See scripts/README.md for details on the sample files and the on-site tooling.


Prior Art & Acknowledgements

This project stands on the shoulders of several excellent open-source efforts, and we're grateful for each:

  • AltiumSharp (MIT) — the most complete open Altium reader/writer. Used as the authoritative reference (its DTOs, binary serialisation code, and golden TestData) for verifying our binary format against ground truth.

  • pyAltiumLib — an independent Python reader, used as our CI readability oracle (tests/integration/) to check that generated files actually parse.

  • python-altium — early Altium format documentation.

  • coffeenmusic/altium-mcp (MIT) — an MCP server that drives the live Altium application. It's the complement to this project (we generate and edit library files offline; it controls a running session). We adapted its RunScript launch + file-based bridge pattern for our on-site Altium automation (scripts/altium/).

Available Tools

34 tools
batch_updateBatch-update a libraryA
Destructive

Perform one batch operation across all components in an Altium library file. PcbLib: 'update_track_width' (change every track of from_width to to_width, within tolerance) and 'rename_layer' (move every primitive from from_layer to to_layer). SchLib: 'update_parameters' (set parameter values across symbols). Use dry_run=true to preview changes without modifying the file.

Inputs: filepath (required), operation (required), parameters (required), dry_run.

bulk_renameRename components by patternA
Destructive

Rename multiple components in a library using regex pattern matching. Supports capture groups for flexible renaming (e.g., 'RESC(.*)' -> 'RES_$1').

Inputs: pattern (required), filepath (required), replacement (required), dry_run.

compare_componentsCompare two componentsA
Read-only

Compare two named components — from one library or two of the same type (.PcbLib with .PcbLib, .SchLib with .SchLib) — and report every difference: description and parameters, then per primitive kind: pads, vias, tracks, arcs, regions, text, fills and 3D bodies of a footprint; pins, every graphic shape, parameters and footprint links of a symbol. Geometry compares within tolerance (mm, default 0.001) and unmatched items are reported per side; include_geometry false compares counts and properties only. Identity (GUIDs, unique ids) is never a difference. Read-only; returns identical, difference_count, the differences and per-kind count summaries. Use diff_libraries first to find which components differ between two whole libraries, then this tool on one pair; use get_component for one component's full data rather than a comparison.

Inputs: filepath_a (required), filepath_b (required), component_a (required), component_b (required), +2 more.

component_existsCheck components existA
Read-only

Check if one or more components exist in an Altium library. Use this to validate component names before operations like rename, copy, or delete. Supports both .PcbLib and .SchLib files.

Inputs: filepath (required), component_names (required).

copy_componentDuplicate a componentA
Destructive

Copy/duplicate a component within an Altium library file. Creates a new component with a different name and identical primitives, but its own identity: the copy's GUIDs and unique ids are minted fresh rather than shared with the original. Useful for creating variants.

Inputs: filepath (required), source_name (required), target_name (required), dry_run, +1 more.

copy_component_cross_libraryCopy a component to another libraryA
Destructive

Copy a component from one Altium library to another. Both libraries must be the same type (PcbLib to PcbLib, or SchLib to SchLib), and different files (use copy_component to duplicate within a library). The component keeps its identity, and the embedded 3D models its bodies reference travel with it; an external STEP file reference is dropped with a warning unless preserve_external_paths is true, since a path relative to the source library rarely resolves elsewhere. Useful for consolidating libraries or sharing components between projects.

Inputs: component_name (required), source_filepath (required), target_filepath (required), new_name, +3 more.

delete_componentDelete componentsA
Destructive

Delete one or more components from an Altium library file (.PcbLib or .SchLib). The file type is auto-detected from the extension. Returns status for each component: deleted, not_found, or error. Use dry_run=true to preview changes without modifying the file.

Inputs: filepath (required), component_names (required), dry_run.

diff_librariesCompare two librariesA
Read-only

Compare two Altium library files and report differences. Shows added, removed, and modified components, a component counting as modified when its description, designator or count of any primitive kind differs. Each one in both files is also compared by the bytes of every stream it is stored in, so a change the model does not show is reported too: under modified as stored stream changes, or under stored_only when the compared fields are equal. Between a library and its own rewrite, a stored_only component is one the rewrite changed without being asked; between libraries saved apart, record identities differ and stored_only is expected. library_streams lists the library's own streams that differ (a PcbLib's Library/Data records its save path and time, so it differs after every save). Both files must be the same type (.PcbLib or .SchLib).

Inputs: filepath_a (required), filepath_b (required).

export_libraryExport a libraryA
Read-only

Export a .PcbLib or .SchLib as text in the response — nothing is written to disk. JSON carries every component in the same shape read_pcblib/read_schlib and write_pcblib/write_schlib use, plus for a PcbLib the embedded 3D models its bodies reference (embedded_models, base64 STEP data keyed by model GUID), so import_library can rebuild the library elsewhere; CSV is a summary table: name, description (and a symbol's designator), one count column per primitive kind, and the external 3D model / footprint link count. Use JSON to version-control, back up or move a library and CSV for an inventory; use read_pcblib/read_schlib instead to inspect components with pagination, and list_components with details for a quick overview.

Inputs: format (required), filepath (required), compact.

extract_step_modelExtract a STEP modelA
Read-only

Extract embedded STEP 3D models from an Altium .PcbLib file. Models are stored compressed inside the library and this tool extracts them to standalone .step files. Supports multiple modes: 'auto' (default), 'list', 'extract_all', or 'extract_by_footprint'.

Inputs: filepath (required), mode, limit, model, +3 more.

extract_styleExtract a library's styleA
Read-only

Extract style information from an existing Altium library file. A PcbLib reports track and arc widths per layer, pad shapes, text heights and the layer usage of every primitive kind (a via counts as Multi-Layer); a SchLib reports pin lengths, stroke widths and the stroke, fill and text colours of every record kind. Use this to learn from existing libraries and create consistent new components.

Inputs: filepath (required).

get_componentGet a componentA
Read-only

Get a single component by name from an Altium library. Returns the full component data (footprint or symbol) without needing to read and filter the entire library. Supports both .PcbLib (footprints) and .SchLib (symbols) files.

Inputs: filepath (required), component_name (required).

import_libraryImport a libraryA
Destructive

Import components from JSON data into an Altium library file. Accepts JSON in the format produced by export_library, enabling round-trip workflows: a PcbLib export's embedded_models are restored alongside the footprints, and a body whose model the data does not contain is reported in warnings. Auto-detects library type (PcbLib/SchLib) from the JSON data.

Inputs: json_data (required), output_path (required), append.

list_backupsList backupsA
Read-only

List available backup files for an Altium library. Shows timestamped .bak files that were automatically created before write operations.

Inputs: filepath (required).

list_componentsList componentsA
Read-only

List all component/footprint names in an Altium library file (.PcbLib or .SchLib). Supports pagination with limit/offset for large libraries. Use include_metadata for additional details like part_count and pin_count.

Inputs: filepath (required), limit, offset, include_metadata.

manage_schlib_footprintsManage symbol footprint linksA
Destructive

Manage the footprint links (PCB models) of one symbol in a .SchLib: list them, add one, or remove one. A link names a .PcbLib footprint; add refuses a name already linked and remove refuses one that is not (names match without regard to case), and neither touches the .PcbLib itself. Give library_path on add when Altium should resolve and preview the footprint from a specific library; omit it to link by name only. Every change backs the library up to a timestamped .bak beside it (the five newest are kept, and the first since the server started) before saving. Use manage_schlib_parameters for parameters such as Value, get_component or read_schlib to see the links together with the rest of the symbol, and update_component to rewrite a symbol wholesale.

Inputs: filepath (required), operation (required), component_name (required), description, +2 more.

manage_schlib_parametersManage symbol parametersA
Destructive

Manage the parameters of one symbol in a .SchLib (Value, Manufacturer, Part Number and the like): list them, get one, set an existing one, add a new one, or delete one. Names match without regard to case, as Altium treats them; set refuses a name the symbol lacks (use add) and add refuses one it already has (use set). Every change backs the library up to a timestamped .bak beside it (the five newest are kept, and the first since the server started) before saving, and the reply carries the parameter as stored; list returns every parameter with a count. Use get_component or read_schlib to see parameters together with the symbol's pins and graphics, update_component to rewrite a symbol wholesale, and manage_schlib_footprints for footprint links, which are models rather than parameters.

Inputs: filepath (required), operation (required), component_name (required), x, +7 more.

merge_librariesMerge librariesA
Destructive

Merge multiple Altium libraries into a single library. All source libraries must be the same type (all PcbLib or all SchLib). Components are copied from each source into the target library, together with the embedded 3D models their bodies reference (a model shared by several footprints is copied once; a body whose model is missing from its source is merged as-is and reported in warnings). External STEP file references are carried unchanged. Use dry_run=true to preview what would be merged.

Inputs: target_filepath (required), source_filepaths (required), dry_run, on_duplicate.

read_pcblibRead a PcbLibA
Read-only

Read an Altium .PcbLib file: every footprint with its description, height and primitives (pads, vias, tracks, arcs, regions, fills, text, component_bodies) as structured JSON, all coordinates and dimensions in millimetres, plus mechanical_layers: the name, kind (3DBodyTop, AssemblyTop, CourtyardTop and so on) and enabled flag the library's own layer stack gives each mechanical layer it uses, which can differ from the fixed names primitives are reported under (Mechanical 4 is Top Courtyard here, but a library may make it its 3D Body layer). Use it to study a library's footprint style or to fetch data for a read-modify-write. For one footprint whose name you know, get_component is cheaper; to find footprints by name pattern across libraries, search_components; for names alone, list_components. Each footprint is the same JSON shape get_component, export_library and write_pcblib use, so a footprint read here can be passed to write_pcblib or update_component as it is. Fields such as guid, unique_id, raw_tail, raw_block, raw_geometry, raw_contours, raw_layer_id, additional_parameters, param_key_order, primitive_order and storage_name are fidelity carriers: pass them back unchanged and the rewrite is byte-identical to the source; omit them when authoring from scratch. A list with no entries and an optional field with no value are omitted rather than empty or null. compact (default true) omits a pad's per-layer size and shape arrays when its stack_mode is Simple, since they only repeat the top-level values; set it false to see every layer. For a large library, page with limit and offset: the result reports total_count, returned_count, offset and has_more. component_name fetches one footprint and turns paging off.

Inputs: filepath (required), limit, offset, compact, +1 more.

read_schlibRead a SchLibA
Read-only

Read an Altium .SchLib file: every symbol with its primitives (pins, rectangles, round_rects, lines, polylines, polygons, arcs, pies, images, text_frames, beziers, ellipses, elliptical_arcs, labels, ieee_symbols), parameters and footprint links as structured JSON. Coordinates are in schematic units (10 units = 1 grid square, not mm). Use it to study a library's symbol style or to fetch data for a read-modify-write. For one symbol whose name you know, get_component is cheaper; to find symbols by name pattern across libraries, search_components; for names alone, list_components. Each symbol is the same JSON shape get_component, export_library and write_schlib use, so a symbol read here can be passed to write_schlib or update_component as it is. Fields such as unique_id, primitive_order, header_params, raw_params, all_pin_count, extra_streams and storage_name are fidelity carriers: pass them back unchanged and the rewrite is byte-identical to the source; omit them when authoring from scratch. A list with no entries and an optional field with no value are omitted rather than empty or null. For a large library, page with limit and offset: the result reports total_count, returned_count, offset and has_more. component_name fetches one symbol and turns paging off.

Inputs: filepath (required), limit, offset, component_name.

rename_componentRename a componentA
Destructive

Rename a component within an Altium library file. This is an atomic operation that changes the component's name while preserving all primitives and properties. More efficient than copy + delete for simple renames.

Inputs: filepath (required), new_name (required), old_name (required), dry_run.

render_footprintPreview a footprintA
Read-only

Render an ASCII art visualisation of a footprint from a PcbLib file: every primitive kind — pads (with designators), vias, tracks, arcs, fills, regions, text marks and 3D-body outlines — each with its own marker, plus a per-kind count line and a legend. A quick preview, not a rendering.

Inputs: filepath (required), component_name (required), scale, max_width, +1 more.

render_symbolPreview a symbolA
Read-only

Render an ASCII-art preview of one symbol in a .SchLib — a quick visual check of a layout after authoring or editing, not a drawing to keep. Every record kind of the requested part — pins (with designators), rectangles, rounded rectangles, lines, polylines, polygons, arcs, pies, ellipses, elliptical arcs, beziers, images, text frames, labels and IEEE symbols — gets its own marker, followed by a per-kind count line and a legend. part_id picks one part of a multi-part symbol (default 1; 0 draws all parts); scale sets characters per 10 schematic units and the picture is limited to max_width x max_height characters. Coordinates are schematic units (10 units = 1 grid). Use get_component or read_schlib for exact coordinates and properties, and render_footprint for a .PcbLib footprint.

Inputs: filepath (required), component_name (required), scale, part_id, +2 more.

reorder_componentsReorder componentsA
Destructive

Reorder components in an Altium library file (.PcbLib or .SchLib). Specify the desired order as a list of component names. Components not in the list are placed at the end in their original relative order.

Inputs: filepath (required), component_order (required).

repair_libraryRepair a libraryA
Destructive

Repair a PcbLib by removing orphaned 3D-model data: (1) embedded models not referenced by any footprint, and (2) component body references that point to non-existent models. This fixes libraries where STEP model data is missing but references remain (validate_library reports both conditions). PcbLib only; a SchLib is refused.

Inputs: filepath (required), dry_run.

restore_backupRestore a backupA
Destructive

Restore an Altium library file from a backup. If no specific backup is specified, restores from the most recent backup. The current file is snapshotted as a new backup first (reported as pre_restore_backup), so a wrong pick is itself reversible, and the restore is written atomically.

Inputs: filepath (required), backup_path.

search_componentsSearch componentsA
Read-only

Search for components across multiple Altium libraries using regex or glob patterns. Returns matching component names with their source library paths. Supports both .PcbLib (footprints) and .SchLib (symbols) files.

Inputs: pattern (required), filepaths (required), pattern_type.

update_componentUpdate a component in placeA
Destructive

Replace one existing component of an Altium library (.PcbLib or .SchLib) with the object given, keeping its position in the library. component_name must name a component the library holds, in any case; a name it does not hold is an error listing the available ones. Provide footprint for a .PcbLib or symbol for a .SchLib, in the shape write_pcblib or write_schlib takes: the object replaces the stored component wholesale, so a primitive left out is removed — start from get_component's output when editing. A name in the object that differs from component_name renames the component as well; a name another component already holds is refused, and an object without a name keeps the stored one. dry_run true changes nothing and reports would_rename and a changes list (description, primitive counts per kind); a real run backs the file up, saves, and returns renamed, old_description, component_count and a post-write validation. Alternatives: write_pcblib or write_schlib to rewrite a whole library, batch_update for one change across every component (track widths, a layer, a parameter), update_pad or update_primitive to change one primitive in place, rename_component for a rename alone.

Inputs: filepath (required), component_name (required), symbol, dry_run, +1 more.

update_padUpdate a padA
Destructive

Update specific properties of a pad in a PcbLib footprint without replacing the entire component. Find pad by designator and apply only the specified updates. On a stacked pad (stack_mode other than simple) a width/height/shape change also reaches the per-layer tables: layers that shared the old primary value follow it, layers with their own value keep it, and the response reports how many followed.

Inputs: updates (required), filepath (required), designator (required), component_name (required), +1 more.

update_primitiveUpdate a primitiveA
Destructive

Update specific properties of a primitive (track, arc, text, fill, region or via) in a PcbLib footprint. Find the primitive by type and index (its position in read_pcblib's list for that type), apply only the specified updates. Moving a primitive to another layer drops the layer carriers it was read with (a region's v7_layer, an unmapped raw_layer_id) so the new layer's own token is written. On a stacked via (diameter_stack_mode other than simple) a diameter change also reaches per_layer_diameters: layers that shared the old diameter follow it, layers with their own value keep it, and the response reports how many followed.

Inputs: index (required), updates (required), filepath (required), component_name (required), +2 more.

validate_libraryValidate a libraryA
Read-only

Validate an Altium library file for common issues. Checks for: empty components (no pads/pins), duplicate designators, invalid coordinates, zero-size primitives, overlapping pads, 3D bodies whose embedded model the library does not contain, embedded models no footprint references, and other integrity problems. Returns a list of warnings and errors.

Inputs: filepath (required).

write_libpkgWrite a LibPkg projectA
Destructive

Write an Altium Library Package (.LibPkg) project file that groups source library documents (.SchLib and .PcbLib) so they can be compiled into an Integrated Library (.IntLib). Member documents are referenced by their path relative to the .LibPkg. This generates only the project source; compiling to a binary .IntLib is a one-click operation inside Altium Designer (Project > Compile Integrated Library).

Inputs: filepath (required), documents (required).

write_pcblibWrite a PcbLibA
Destructive

Write footprints to an Altium .PcbLib file (set 'append': true to add to an existing library instead of replacing it). Each footprint is defined by its primitives: pads (with position, size, shape, layer), tracks, vias, fills, arcs, regions, text and component_bodies. The AI is responsible for calculating correct positions and sizes based on IPC-7351B or other standards. All coordinates and dimensions must be in millimetres (mm). A footprint authored without a '.Designator' text receives one on the Top Overlay automatically, just above its topmost pad, so every placed part shows its reference designator: supply your own to control its placement, or set 'auto_designator': false to omit it; a footprint echoed back from a read (carrying primitive_order) is never touched. The response 'bodies' array echoes each footprint's 3D body height and source; a footprint with no STEP model and no component body reports source 'none'. Set 'auto_3d_body': true to have an extruded placeholder body (default height 1.0 mm, flagged 'assumed_height': true) added to such footprints, then confirm or override it by supplying 'component_bodies' explicitly. The response also includes a 'warnings' array flagging silkscreen (overlay) tracks that overlap a pad (silk-on-pad) so you can move them clear. No text field may contain '|', the separator of Altium's record format, which cannot hold it.

Inputs: filepath (required), footprints (required), append, auto_3d_body, +1 more.

write_schlibWrite a SchLibA
Destructive

Write schematic symbols to an Altium .SchLib file (set 'append': true to add to an existing library instead of replacing it). Each symbol is defined by its primitives: pins, rectangles, round_rects, lines, polylines, polygons, arcs, pies, images, text_frames, beziers, ellipses, elliptical_arcs, labels, and text — plus its designator, parameters (Value, Manufacturer, ...) and footprint links ('footprints', name + optional library_path). Multi-part symbols set 'part_count' and tag each pin with 'owner_part_id'. Coordinates must be in schematic units (10 units = 1 grid square, not mm); a pin's (x, y) is its body-attach end and 'orientation' is the direction it points outward — the response echoes each pin's computed body_end and tip. No text field may contain '|', the separator of Altium's record format; Altium's own editor stores it as '¦' (U+00A6).

Inputs: symbols (required), filepath (required), append.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 34 tools

    Disambiguation4/5

    Most tools target distinct resource/action pairs, and descriptions explicitly cross-reference alternatives (e.g., get_component vs read_pcblib, update_component vs update_primitive/update_pad). A few overlaps remain—update_component can rename, update_pad is a specialized primitive update, and copy_component vs copy_component_cross_library—but they are well explained.

    Naming Consistency4/5

    All names use snake_case and mostly follow verb_noun (read_pcblib, write_schlib, delete_component). Minor deviations like component_exists (noun_verb), batch_update, and bulk_rename keep it from perfect consistency, but the pattern is predictable.

    Tool Count2/5

    34 tools is above the 25+ threshold and feels heavy for an agent; several type-specific and specialized operations (read_pcblib/read_schlib, write_pcblib/write_schlib, copy_component/copy_component_cross_library, rename_component/bulk_rename) could be consolidated. The domain is broad, but the surface is over-scoped.

    Completeness4/5

    Core library lifecycle is well covered: read/write both PcbLib and SchLib, component CRUD, primitive/pad updates, parameters, footprint links, backups, validation, repair, diff/merge, export/import, and rendering. Gaps include no in-place SchLib primitive update (only whole-symbol replacement), no LibPkg member management after creation, and no IntLib compilation, but these are minor.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers