efinity-mcp
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., "@efinity-mcp create a new Trion T120 project with my top-level RTL and compile it"
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.
efinity-mcp
An MCP server for the Efinix Efinity FPGA toolchain (Trion, Titanium, Topaz). It lets an AI assistant such as Claude create projects, set up the Interface Designer (I/O, PLLs, LVDS, MIPI, DDR, SerDes), compile, read timing and utilization, run static-timing Tcl queries, and program boards, all through your local Efinity install.
Unofficial. This is a community project, not made or endorsed by Efinix, Inc. It contains no Efinix software; it drives the Efinity installation you already have.
What it looks like
Asked for "a multi-effect LED demo for my Ti375 N1156 dev kit", an assistant using this server did the whole job:
create_project, thenrun_flow(synthesis). The first run failed on a reserved word in the RTL;get_messagesreturned the file and line, the RTL was fixed, and synthesis passed.list_device_resourceslocated the board's 25 MHz oscillator pin (PLL_CLKIN, ball M23).edit_interfacecreated the clock input, a PLL with two outputs and a lock signal (auto_calc_pllsolved M/N/O for exactly 100 and 50 MHz), a 6-LED bus and 2 pushbuttons with pull-ups. It ran as a dry run first, then passed the design check and was saved.run_flow(compile)finished in 47 s.get_timing_summaryshowed timing met, andrun_sta_tclwithreport_cdcconfirmed the only clock crossing was the Gray-coded bus.get_io_assignmentsconfirmed every pin against the board's user guide. On the board, the design ran as intended.
That design is in examples/led_showcase.
Related MCP server: mcp-fpga
Tools
Area | Tool | What it does |
Setup |
| Install path, version, user folder, recent projects |
Projects |
| GUI recent projects + projects under |
| Device, top module, HDL/SDC/ISF/interface files, tool options | |
| New project | |
| Add/remove HDL or SDC files, change the top module or device (writes a | |
Build |
|
|
| Long runs continue in the background; poll or stop them | |
Results |
| Output timestamps, stale-bitstream check, resources, final timing, message counts |
| Fmax per clock, setup/hold slack per clock pair, timing met? | |
| Worst setup/hold paths (start/end points, slack, logic levels, optional full detail) | |
| Core + periphery usage, synthesis estimates, per-module hierarchy | |
| Errors and warnings from the latest run of each stage, filterable | |
| Pin, bank, voltage, I/O standard and pull of each user signal | |
| Any report or log, by section, regex, or page | |
Timing |
| Tcl in Efinity's STA: |
Interface Designer |
| Every GPIO and block (PLL, OSC, LVDS, MIPI, DDR, SerDes...) with key settings, bank voltages |
| All properties of one instance, with the allowed values for each | |
| Free (or all) pins by bank, feature or alternate function; PLL/LVDS/... resources | |
| Create/delete GPIOs, buses and blocks, set properties, assign pins, bank voltages, PLL auto-calc, ISF import | |
| PLL calculator: current frequencies, or divider solutions for target frequencies | |
| Interface Designer design check (DRC) | |
| Export settings as an | |
Hardware |
| Detect FTDI cables / dev boards and their JTAG chain |
| JTAG (SRAM, |
Every project argument accepts a project .xml path, a project folder, or just a project name
known to the Efinity GUI. See docs/TOOLS.md for details, including every
edit_interface operation.
Requirements
Efinity installed (tested with 2026.1.132). The free Efinity license is enough.
Python 3.10+ for the server. It runs separately from Efinity's bundled Python and starts that as a subprocess.
Windows 10/11 (tested). Linux: the environment setup follows Efinity's
setup.sh, but Linux has not been tested yet; reports are welcome.
Install
pip install git+https://github.com/shubhamdraveriya/efinity-mcp
efinity-mcp --check # prints the Efinity install it found and tests its PythonOr download the .whl from the Releases
page and run pip install efinity_mcp-0.1.0-py3-none-any.whl.
The server finds Efinity through the EFINITY_HOME environment variable, or else the newest
version under C:\Efinity\ (Windows), ~/efinity/ or /opt/efinity/ (Linux).
From source:
git clone https://github.com/shubhamdraveriya/efinity-mcp
cd efinity-mcp
python -m venv .venv
.venv/bin/pip install -e ".[dev]" # Windows: .venv\Scripts\pip install -e ".[dev]"Connect it to an assistant
Claude Code (all projects):
claude mcp add efinity --scope user -- efinity-mcpClaude Desktop and other clients that use an mcpServers JSON file (for Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.json or ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"efinity": {
"command": "C:\\path\\to\\python.exe",
"args": ["-m", "efinity_mcp"],
"env": { "EFINITY_HOME": "C:\\Efinity\\2026.1" }
}
}
}Use the Python that has efinity-mcp installed. env is optional; without it the newest
Efinity install is used. Restart the client after editing its config.
Things to ask
"List my Efinity projects and show the timing summary of blinky."
"Compile my_design. If timing fails, show the worst 5 setup paths and suggest fixes."
"Add a 1.8 V output
status_ledon a free pin in bank 4B and rebuild.""Set the PLL's second output to 156.25 MHz and check the design."
"Run report_cdc on the routed design and explain every crossing."
"Program the board over JTAG."
How it works
Builds call
scripts/efx_run.py <project>.xml --flow <flow>with Efinity's bundled Python and the same environmentbin/setup.bat/setup.shcreate. Outputs go to the project's normaloutflow/folder, so the Efinity GUI sees the same results.Background jobs: each run is a job with its console log in
%LOCALAPPDATA%\efinity_mcp\logs(Linux:~/.local/state/efinity_mcp/logs). Progress comes from efx_run's per-stagePASS/FAILlines. Only one job per project runs at a time.Results come from
<project>.route.rpt.xml,.pt.rpt.xml,.timing.rpt,.res.csv,.hier_util.rpt,.pinout.csvand the per-stage*.outlogs.run_sta_tcluses thesta_tclshflow. It reloads the routed design (about 6 s) and doesn't change the build.Interface Designer tools run a small worker (
pt_helper.py) under Efinity's Python, using Efinity's Interface Designer Python API (pt/bin/api_service). That API accepts unknown properties, invalid values and nonexistent pins without complaint, so every edit is checked against the API's own option lists and read back afterwards.Programming uses the command-line programmer (
pgm/bin/efx_pgm/ftdi_program.py).
Safety
Edits are all-or-nothing. If any operation in an
edit_interfacebatch fails, nothing is saved. After the batch, the Interface Designer design check runs, and the file is saved only if the batch added no new errors.dry_run=truepreviews a change, and a.peri.xml.bakbackup is written before every save.update_projectalso writes a.xml.bakfirst.Hardware: JTAG programming loads volatile SRAM. The flash modes (
active,passive,jtag_bridge) overwrite what the board boots from; the server's instructions tell the assistant to confirm with you first.GUI open at the same time: builds are fine. If you edit a project's
.xmlor.peri.xmlwhile it is open in the Efinity GUI, reload it there, or the GUI may save its old copy over the change.edit_interfacewarns when the GUI is running.
Things to know
No SDC means a 1 ns default. Without an SDC, Efinity constrains every clock to 1000 MHz, so large negative slack on an unconstrained design is expected, not a real failure.
get_timing_summarypoints this out.PLL output frequencies are read-only. In the API they follow from M/N/O and the dividers. Use
calc_pllor theauto_calc_plloperation.Debugger auto-instantiation: if a Debug Wizard profile is enabled, the command-line compile needs the generated core
work_dbg/debug_top.v, which the GUI creates the first time you use the Debug Wizard. The server checks for it and tells you when it's missing.Efinity versions: the Interface Designer tools use Efinity's Python API, which can change between releases. Tested with 2026.1.
Not covered yet
Simulation flows (
rtlsim,mapsim,pnrsim)Debugger (logic analyzer / virtual I/O) capture
IP Manager (generating and configuring IP cores)
Interface Designer global clock-mux / regional-buffer setup, PCIe root-port outbound tables, partial designs. These can still be done by importing an
.isfscript.
Development
pip install -e ".[dev]"
ruff check .
pytest # unit tests; no Efinity needed
pytest -m efinity -v # end-to-end tests against your Efinity install (creates and compiles a scratch project)See CONTRIBUTING.md.
License
Apache-2.0. See LICENSE and NOTICE. "Efinix", "Efinity", "Titanium", "Trion" and "Topaz" are trademarks of Efinix, Inc.
Available Tools
27 toolscalc_pllARead-only
PLL calculator. With no targets, reports the PLL's current VCO/PLL/output frequencies. With targets such as {"CLKOUT0_FREQ": 200, "CLKOUT1_FREQ": 50, "CLKOUT1_PHASE": 90}, returns counter/divider solutions (M, N, O, per-output dividers) without changing anything. Apply one with edit_interface op auto_calc_pll. Only enabled outputs (CLKOUTn_EN=1) can be solved.
Inputs: name (required), project (required), targets, max_results.
cancel_jobADestructive
Stop a running job and its child processes.
Inputs: job_id (required).
check_interfaceARead-only
Run the Interface Designer design check (DRC) on the saved design: unplaced pins, I/O standard vs bank voltage mismatches, PLL frequency ranges, clock routing rules, and so on.
Inputs: project (required).
create_projectA
Create a new Efinity project .xml.
family: Trion | Titanium | Topaz. device: e.g. Ti375N1156, Ti60F225, T20F256.
timing_model: speed grade such as C4, C3, I4. design_files and sdc_files may be absolute or
relative to directory. verilog_version: verilog_2k | sv_09 | ...; vhdl_version: vhdl_2008 | vhdl_93.
The Interface Designer file (.peri.xml) is created by the first edit_interface call
(create the GPIOs / PLLs the top module's ports need) before a full compile.
Inputs: name (required), device (required), family (required), directory (required), +6 more.
edit_interfaceA
Change the Interface Designer design (.peri.xml). Operations run in order; if any fails, nothing is saved. After the operations the design check runs, and the file is saved only if no new design-check errors appeared (allow_new_errors=True saves anyway). dry_run=True applies and checks without saving. A .peri.xml.bak backup is written before saving. If the project has no .peri.xml yet, one is created for the project's device.
Values are validated against the allowed values (see get_interface_block); I/O standards may be written as '3.3 V LVCMOS' or '3.3_V_LVCMOS'.
Operations (each is an object with "op"): {"op": "create_gpio", "name": "led", "mode": "output", "pin": "U4", "properties": {"IO_STANDARD": "1.8 V LVCMOS"}} mode: input | output | inout | open_drain_output | clock_input | regional_clock_input | pll_clock_input | pll_ext_feedback | mipi_clock_input | pcie_perstn | clockout | global_control | vref | unused. A bus: add "msb": 7, "lsb": 0 (input/output/inout); buses can't take "pin", so place members with assign_pin on "led[0]" etc. "resource" (e.g. "GPIOB_P_31") can be given instead of "pin". {"op": "create_block", "name": "pll0", "type": "PLL", "resource": "PLL_TL0", "properties": {...}} type: any of block_types_supported from get_interface_design (PLL, OSC, LVDS_TX, LVDS_RX, MIPI_DPHY_RX, DDR, JTAG, PMA_DIRECT, ...). Optional "params" are passed to the API's create_block (tx_mode / rx_conn_type for LVDS, mode / conn_type for MIPI lanes). {"op": "set_properties", "name": "led", "properties": {"PULL_OPTION": "WEAK_PULLUP", "DRIVE_STRENGTH": "8"}} On a bus name, sets every member. Add "type" if a name is ambiguous. {"op": "assign_pin", "name": "led", "pin": "U4"} (GPIO package ball) {"op": "assign_resource", "name": "pll0", "resource": "PLL_TR1"} Both refuse a resource already used by another instance unless "override": true. {"op": "delete", "name": "old_sig"} {"op": "set_bank_voltage", "bank": "4B", "voltage": "1.8"} {"op": "auto_calc_pll", "name": "pll0", "targets": {"CLKOUT0_FREQ": 200, "CLKOUT1_FREQ": 100}} Solves and applies M/N/O and dividers. Enable the outputs first (CLKOUTn_EN=1, CLKOUTn_PIN). PLL output frequencies are read-only properties; this is how they are set. {"op": "gen_pll_ref_clock", "name": "pll0", "refclk_name": "pll_refclk", "pll_res": "PLL_TL0"} Creates the reference-clock GPIO on the pin that feeds that PLL. {"op": "set_unused_gpio_state", "state": "INPUT_WITH_WEAK_PULLUP"} {"op": "import_isf", "file": "C:/path/settings.isf"} (Interface Scripting File)
After saving, run_flow(compile) rebuilds with the new interface. If the project is open in the Efinity GUI, close it or reload it there, or the GUI may save its old copy over these changes.
Inputs: project (required), operations (required), dry_run, allow_new_errors.
export_interface_isfA
Export Interface Designer settings to an Interface Scripting File (.isf, Python commands that recreate the blocks). Useful as a readable backup, for diffs, or to copy settings to another project (import with edit_interface op import_isf). Defaults to _export.isf in the project folder; block_types / instances limit what is exported.
Inputs: project (required), isf_file, instances, block_types, +1 more.
get_build_statusBRead-only
Summarise the latest build: which outputs exist and when they were made, whether sources changed since the bitstream was built, resource usage, final timing, and error/warning counts.
Inputs: project (required).
get_efinity_infoARead-only
Show the Efinity install this server uses: path, version, user settings folder, recent projects.
Inputs: no named parameters.
get_interface_blockARead-only
All properties of one Interface Designer instance (GPIO, GPIO bus, PLL, LVDS_TX, ...) with the allowed values for each: choice lists, 'min:max' ranges, or free-form. Use it before edit_interface to get exact property names. For PLLs it adds the calculated VCO/output frequencies and the reference clock source.
Inputs: name (required), project (required), block_type.
get_interface_designARead-only
Overview of the project's Interface Designer (.peri.xml) design: every GPIO (mode, I/O standard, resource, package pin, bank), every other block (PLL, OSC, LVDS, MIPI, DDR, JTAG, PMA_DIRECT, ...) with its resource and key settings, and the I/O bank voltages.
block_types limits the listing (e.g. ["GPIO"] or ["PLL"]). include_check also runs the Interface Designer design check. Reads the saved file, so it reflects the GUI only after the GUI saves.
Inputs: project (required), block_types, include_check.
get_io_assignmentsARead-only
Package pin assignments of user signals (pin, bank, voltage, I/O standard, pull) from the Interface Designer pinout. include_core_interface adds the core<->periphery signal list.
Inputs: project (required), include_core_interface.
get_job_statusARead-only
Status of a background job (flow run or programming). Optionally wait up to wait_seconds for it to finish. Shows stage results and the last console lines.
Inputs: job_id (required), tail_lines, wait_seconds.
get_messagesARead-only
Errors and warnings from the latest run of each stage (synthesis, debug core, place,
route, bitstream), most severe first. severity is the minimum level; pattern is a
case-insensitive regex filter.
Inputs: project (required), limit, pattern, severity.
get_project_infoBRead-only
Read a project's settings: device, top module, design/constraint/interface files and synthesis, place-and-route, and bitstream options.
Inputs: project (required).
get_timing_pathsARead-only
Worst critical paths from the timing report, sorted by slack. clock_filter keeps paths whose 'launch vs capture' clock pair contains the text. include_detail adds the full cell/net breakdown of each path. For custom queries (-from/-to/-through), use run_sta_tcl.
Inputs: project (required), analysis, max_paths, clock_filter, +1 more.
get_timing_summaryARead-only
Post-route timing: constrained vs achievable clock frequencies, setup/hold slack per clock pair, worst slack, and whether timing is met (from .timing.rpt).
Inputs: project (required).
get_utilizationARead-only
Resource usage: core (XLRs, memory, DSP, I/O, clocks) and periphery after place & route, plus synthesis estimates. hierarchy=True adds a per-module breakdown (values are total(self)).
Inputs: project (required), hierarchy, max_depth.
list_device_resourcesARead-only
Physical resources on the project's device that Interface Designer blocks can be placed on.
GPIO: each resource with its package pin, I/O bank, features (e.g. HSIO, DDIO), alternate function (e.g. GCLK, PLL_CLKIN) and current user. Filter by bank ('4B'), or by feature or alternate function text ('PLL_CLKIN', 'HSIO'). Other block types (PLL, LVDS_TX, OSC, ...): the resource names and whether each is used. free_only=False includes used resources.
Inputs: project (required), bank, limit, feature, +2 more.
list_jobsARead-only
List the jobs started in this server session, newest first.
Inputs: no named parameters. Returns: result
list_programmer_cablesARead-only
Detect connected Efinix programming cables / dev boards (FTDI) and the FPGAs on their JTAG chain.
Inputs: timeout_seconds.
list_projectsARead-only
List Efinity projects: the GUI's recent projects plus projects found under the default
project folder (or search_dir). Shows device and when the bitstream was last built.
Inputs: search_dir. Returns: result
list_reportsARead-only
List the report and log files in the project's outflow folder.
Inputs: project (required). Returns: result
program_deviceADestructive
Program an Efinix FPGA through the Efinity command-line programmer.
mode:
jtag / jtag_chain - load a .bit into the FPGA's SRAM over JTAG (lost at power-off)
active / passive - write a .hex to SPI configuration flash (or SPI passive load)
jtag_bridge(_x8) - write a .hex to configuration flash through the FPGA's JTAG bridge
Flash modes overwrite what the board boots from, so confirm with the user first.
Give either project (uses its outflow .bit/.hex) or an explicit file.
url / board_profile select a cable when several are attached (see list_programmer_cables).
chain_device_number picks the device for jtag_chain.
Inputs: url, file, mode, project, +5 more.
read_reportARead-only
Read any report or log, e.g. 'timing.rpt', 'pt.rpt', 'map.rpt', 'route.out', 'EFX.warn.log' (the project-name prefix is optional).
section: title or number of a report section (see the 'sections' list returned when omitted). pattern: regex; returns only matching lines with context_lines around them. offset/max_lines: page through long files.
Inputs: report (required), project (required), offset, pattern, +3 more.
run_flowA
Run the Efinity flow with efx_run.
compile = full RTL-to-bitstream (synthesis, debug core, interface, place & route, bitstream).
The other flows run one stage and expect the earlier stages to be up to date.
Waits up to wait_seconds (0 = return immediately); if the run is not done by then, returns
a job_id to poll with get_job_status. When it finishes, the result includes resource usage,
final timing, and any errors.
Inputs: project (required), flow, wait_seconds, timeout_minutes.
run_sta_tclARead-only
Run Tcl in Efinity's static timing analyzer on the routed design (efx_run sta_tclsh).
Supports SDC-style commands: report_timing (-from/-to/-through/-from_clock/-to_clock/-npaths/ -setup/-hold/-detail), report_timing_summary, report_clocks, report_cdc, check_timing, get_cells/get_nets/get_pins/get_ports/get_clocks, all_registers, create_clock, set_false_path, and more. Run 'help' or ' -help' for usage. Constraints set here only apply to this session; they are not saved to the project.
Inputs: script (required), project (required), timeout_seconds.
update_projectA
Edit a project .xml: add or remove HDL files and SDC files, change the top module or the device. A .xml.bak backup is written first.
Inputs: project (required), device, family, add_sdc, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Tool purposes are mostly distinct, and the descriptions clearly separate enumerations from details, reports from actions, and summary views from specialized queries. The main overlap risk is between get_build_status and the specialized timing/utilization/messages tools, and between get_interface_design's optional check and check_interface, but these are not severe.
All tools use lowercase snake_case with a consistent verb-first pattern: list_* for enumerations, get_* for entities and status, create_/update_ for project mutations, and run_/check_/calc_/export_/program_ for actions. There are no camelCase or mixed-convention names.
27 tools is on the heavier side, but the server covers a broad FPGA lifecycle: project management, interface design, build flow, timing analysis, reporting, and programming. Each tool has a defined role, and while a few reporting tools could be consolidated, the count is defensible for the domain.
The lifecycle is well covered: project create/update/read, Interface Designer editing/checking/export, flow execution and job monitoring, timing and STA analysis, report access, and device programming. Minor gaps such as no project deletion or direct SDC editing are workable and do not create dead ends.
Maintenance
Related MCP Connectors
Design circuits, simulate and verify embedded firmware, and lay out PCBs with AI agents.
A public board where AI agents design pieces of an open AI inference accelerator on sky130. Submit Verilog and it is linted, synthesised, simulated against hidden vectors, mapped to real standard cells for area, timed for critical path and power, and proven equivalent to a reference. No key, no account, one call. The best verified design gets fabricated.
Design and revise PCBs from plain language, track jobs, and retrieve design artifacts.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to drive Xilinx Vivado, Intel Quartus, and Anlogic TangDynasty for FPGA development, including project creation, synthesis, implementation, timing closure, and hardware programming through natural language.8MIT
- AlicenseAqualityCmaintenanceEnables AI coding agents and IDEs to run a complete open-source FPGA flow, including synthesis, place-and-route, bitstream generation, and safe hardware programming for iCE40/ECP5 boards.611 npmApache 2.0
- AlicenseBqualityCmaintenanceEnables AI coding assistants to drive Xilinx Vivado through natural language, letting users open .xpr projects, run synthesis, implementation, and bitstream generation, inspect timing, resource, and clock reports, and launch simulations to read signal values or set breakpoints. It also exposes design hierarchy queries and arbitrary TCL execution, so FPGA design flows can be operated conversationally on Windows.40MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI coding agents such as Claude Code, Cursor, and Codex to drive a locally installed Xilinx Vivado across the full FPGA flow, from GUI, headless Tcl, or attached sessions through synthesis, implementation, timing and CDC analysis, waveform queries, and device programming. It exposes 32 curated tools plus evidence-driven workflow prompts that return structured timing/IO reports, Chinese-language CRITICAL WARNING diagnostics, and guarded bitstream generation.-