altium-designer-mcp
This MCP server lets an AI read, create, edit, validate, compare, and manage Altium Designer .PcbLib and .SchLib libraries, including primitives and 3D STEP model references.
Read/write libraries: Parse and create/overwrite/append footprint and symbol libraries as structured JSON.
Inspect/search: List, search, fetch, check existence, render ASCII previews, and extract styling from existing libraries.
Author components: Place pads, vias, tracks, arcs, regions, text, fills, 3D bodies, pins, graphics, parameters, and footprint links.
Edit in place: Update whole components, individual pads/primitives, batch-update properties, reorder, and manage SchLib parameters/footprint links.
Manage components: Delete, copy within or across libraries, rename, bulk rename, and merge libraries.
Library operations: Export/import JSON, export CSV, validate, repair orphaned 3D data, and generate
.LibPkgproject files.3D models: Attach existing STEP models, handle embedded vs external references, and extract embedded STEP data.
Compare: Diff whole libraries or compare specific components.
Safety: Automatic timestamped backups, dry-run previews, and backup listing/restoration.
Provides tools for creating, reading, writing, and managing Altium Designer component libraries (.PcbLib and .SchLib files), enabling AI-assisted footprint and symbol creation with primitive placement.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@altium-designer-mcp create a 0603 resistor footprint"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
altium-designer-mcp
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 footprints from a | |
Write footprints to a | |
Read symbols from a | |
Write symbols to a |
Inspect & visualise
Tool | Purpose |
List component names (paginated). | |
Get one component's full data. | |
Search across libraries by regex/glob. | |
Check whether components exist. | |
ASCII-art preview of a footprint. | |
ASCII-art preview of a symbol. | |
Extract styling from an existing library. |
Compare
Tool | Purpose |
Compare two library files. | |
Diff two specific components. |
Edit in place
Tool | Purpose |
Update a component, preserving its position. | |
Update one pad's properties. | |
Update one primitive (track/arc/text/fill/region). | |
Batch updates across all components. | |
Reorder components in a library. | |
List/get/set/remove SchLib parameters. | |
Manage footprint links in SchLib symbols. |
Manage components
Tool | Purpose |
Delete one or more components. | |
Duplicate a component within a library. | |
Rename a component (atomic). | |
Copy a component to another library. | |
Pattern-based multi-rename. |
Library operations
Tool | Purpose |
Merge multiple libraries into one. | |
Write a | |
Export to JSON/CSV. | |
Import from JSON (inverse of export). | |
Validate for common issues. | |
Remove orphaned data. | |
Extract embedded STEP 3D models. |
Backups & safety
Tool | Purpose |
List automatic backups. | |
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 |
| Pin 1 indicator — use for the first pad to distinguish it visually |
Rounded Rectangle |
| Default for SMD pads (most common) |
Round |
| Circular pads, default for through-hole (both values are equivalent) |
Oval |
| Oblong pads for constrained spaces |
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-mcpThe 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.txtThe 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 |
| Path to configuration file (optional, uses default location if omitted) |
| Grant access to library folders directly (repeatable). Adds to the config file's |
| 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 ( |
| Serve the MCP Streamable HTTP transport on this address (for example |
| A browser origin allowed to reach the HTTP transport besides the local ones (repeatable) |
| Increase logging verbosity ( |
| Decrease logging verbosity (only show errors) |
| Print help information |
| 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.jsonWindows:
%USERPROFILE%\.altium-designer-mcp\config.json
{
"allowed_paths": [
"/path/to/your/altium/libraries",
"/another/library/path"
],
"logging": {
"level": "warn"
}
}Configuration Options
Option | Description |
| Array of directory paths where library files can be accessed; |
| Log level: trace, debug, info, warn, error (default: warn) |
| Path to an append-only JSON-lines audit log of destructive operations (default: null — no audit log is written) |
| Maximum burst of mutating operations before throttling; read-only tools are never rate limited (default: 120) |
| Token-bucket refill rate for mutating operations, in tokens per second (default: 30.0) |
| 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_libraryandmerge_librariesboth 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_libraryremoves them with a warning by default, since a path relative to the source library rarely resolves elsewhere — passpreserve_external_paths=trueto keep them.merge_librariescarries 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.bakA 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_componentupdate_componentupdate_padupdate_primitiverename_componentcopy_componentcopy_component_cross_library(target file)merge_libraries(target file)reorder_componentsbatch_updatebulk_renamerepair_librarymanage_schlib_parametersmanage_schlib_footprintswrite_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 deletedupdate_component— preview component replacement changesupdate_pad/update_primitive— preview property changesbulk_rename— preview name changesrepair_library— preview orphaned references to removebatch_update— preview library-wide updatescopy_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_pagein the configuration file or--ansi-code-pageon 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
--httpit 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_pathsor--allow), plus the timestamped.bakcopies 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 | |
The file formats, byte by byte | |
Security model and threat analysis | docs/SECURITY.md (reporting: SECURITY.md) |
How releases are built and verified |
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Follow the style guide in STYLE.md
Security issues: see SECURITY.md
Development
cargo testWrite-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.
Links
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 toolsbatch_updateBatch-update a libraryADestructive
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 patternADestructive
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 componentsARead-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 existARead-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 componentADestructive
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 libraryADestructive
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 componentsADestructive
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 librariesARead-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 libraryARead-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 modelARead-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 styleARead-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 componentARead-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 libraryADestructive
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 backupsARead-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 componentsARead-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 linksADestructive
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 parametersADestructive
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 librariesADestructive
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 PcbLibARead-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 SchLibARead-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 componentADestructive
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 footprintARead-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 symbolARead-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 componentsADestructive
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 libraryADestructive
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 backupADestructive
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 componentsARead-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 placeADestructive
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 padADestructive
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 primitiveADestructive
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 libraryARead-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 projectADestructive
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 PcbLibADestructive
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 SchLibADestructive
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
Scored across 34 tools
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.
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.
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.
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
Related MCP Connectors
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Related MCP Servers
- AlicenseAqualityAmaintenanceThis MCP server enables AI agents to understand and analyze electrical schematics from Cadence and Altium for comprehensive design reviews through natural conversations.11491 npm69Apache 2.0
- AlicenseNot gradedqualityAmaintenanceUse Claude to control or ask questions about your Altium project.228MIT
- AlicenseAqualityAmaintenanceMCP servers for KiCad schematic, PCB, symbol, footprint, and project automation, enabling AI-assisted electronic design via tools for read/write, analysis, and exports.109521 PyPI16GPL 3.0
- AlicenseAqualityDmaintenanceEnables querying PCB and schematic data and driving DelphiScript automation in Altium Designer via MCP.1310MIT