vunit-mcp
Click on "Install 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., "@vunit-mcplist the tests in the project and run the failing ones"
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.
vunit-mcp
MCP (stdio) server that lets an LLM/agent drive a VUnit (HDL unit-testing) project end to end: list tests, compile, run, and inspect reports and per-test logs.
VUnit has no standalone CLI and VUnit.main() calls sys.exit(), so the
server never runs vunit in-process — it shells out to the project's own
run.py, exactly how a human runs it. One deliberate exception:
vunit_test_dependencies builds an in-process project model to answer
"which files do I need to implement this test?". vunit-hdl is a hard
dependency of this package, so the import is always available; it is still
imported lazily, only when that tool is called.
Logo
Candidate logos, all based on the official VUnit badge (blue #0c479d,
white ring, chunky V). SVG sources live in logos/; PNGs are 400×400
previews.
stamp — tilted MCP rubber stamp | chip — the V cradles an AI chip |
robot — a robot buddy in the corner | wordmark — V with MCP type below |
:--: | :--: |
Related MCP server: Lupa MCP Server
Setup
uv venv .venv
uv pip install -e . # installs vunit-mcp + mcp + pydantic + vunit-hdl
# compile/run also need a simulator, in the env that runs run.py
# (default: this same venv):
uv pip install ghdlConfiguration (env vars)
Variable | Meaning | Default |
| dir containing | — |
| run script path relative to project dir |
|
| interpreter that runs | server's own |
| passed through as | VUnit auto-detect |
| default |
|
| max seconds per run/compile |
|
| extra | unset |
| comma-separated patterns (fnmatch globs on file name or project-relative path, or a directory name) of registered files whose content changes must not invalidate the export cache — for generated/volatile files; adding or removing them still does | unset (fingerprint everything) |
MCP client config (Claude Code)
{
"mcpServers": {
"vunit": {
"command": "/home/sebbe/git/vunit-mcp/.venv/bin/vunit-mcp",
"env": {
"VUNIT_MCP_PROJECT_DIR": "/path/to/your/vunit/project"
}
}
}
}Or with MCP Inspector for manual testing:
VUNIT_MCP_PROJECT_DIR=/path/to/project npx @modelcontextprotocol/inspector \
/home/sebbe/git/vunit-mcp/.venv/bin/python -m vunit_mcpSkill
This repo ships an agent skill, skills/vunit-mcp/SKILL.md, that tells the
LLM when and how to use the tools: which tool answers which request,
workflow recipes ("why did test X fail?" → vunit_get_test_log), the
lib.entity[.proc] test-name format, and the VUNIT_MCP_* configuration.
Install it next to the server so the agent picks it up automatically.
Claude Code
Symlinking keeps the repo checkout as the single source of truth (copy with
cp -r if you prefer a static install):
# personal — available in every project
ln -s /path/to/vunit-mcp/skills/vunit-mcp ~/.claude/skills/vunit-mcp
# or project-local — available only in that project
mkdir -p <your-project>/.claude/skills
ln -s /path/to/vunit-mcp/skills/vunit-mcp <your-project>/.claude/skills/vunit-mcpMaki
Maki loads skills from the same ~/.claude/skills/ directory:
ln -s /path/to/vunit-mcp/skills/vunit-mcp ~/.claude/skills/vunit-mcpTools
Tool | Needs sim | Description |
| no | config, vunit version, simulator availability — call first |
| no | all tests ( |
| no | source files in compile order via |
| yes | compile all sources ( |
| yes | run tests (patterns, threads, clean, …); writes JUnit XML; returns pass/fail summary + failing tests |
| no | re-read the last run's JUnit XML, no re-run; per-test failing-check counts derived from the logs |
| no | per-test |
| no | ordered list of source files needed to implement one test (grouped by library, compile order, VUnit built-ins summarized); caches a project model in |
| no | project files, tests, and attributes via |
Export cache
vunit_export_json and vunit_test_dependencies do not re-run
run.py --export-json on every call: the exported model is written to
<project>/.vunit-mcp-cache/export.json together with a fingerprint of its
inputs, and served from that file while the fingerprint matches. The cache
invalidates when:
any registered source file's mtime or size changes, or the file disappears;
run.pyitself changes (covers adding/removing/relocating files);VUNIT_MCP_PYTHON,VUNIT_MCP_SIMULATOR, orVUNIT_MCP_EXTRA_ARGSchange.
Files matching VUNIT_MCP_FINGERPRINT_EXCLUDE (comma-separated fnmatch
globs on file name or project-relative path, or a directory name) are
exempt from the first rule — their mtime/size are not tracked, for
generated or volatile files whose rewrites would churn the cache. Their
name and existence are still tracked, so adding or removing one
invalidates as usual.
To force a fresh export, delete .vunit-mcp-cache/export.json. The
in-process project model used by vunit_test_dependencies is cached
additionally, in memory, keyed by export content.
Internal scaffold
Some VUnit questions cannot be answered through the project's own run.py
CLI — e.g. "which files do I need to implement this test?". For those,
vunit-mcp builds an in-process VUnit project ("the scaffold") from the
cached --export-json model: a real VUnit instance with the project's
libraries and source files registered, used only to call VUnit's internal
API (today get_implementation_subset via vunit_test_dependencies; more
internal queries will build on it).
The scaffold is never run through the CLI: the export model does not
contain all of the user's run.py specifics (custom options, test
attributes, requirements, …), so anything that compiles or runs must go
through the project's own run.py. The in-process instance lives in
project_model.InternalProject, is cached in memory per export content,
and uses <project>/.vunit-mcp-cache as its scratch dir (never the
project's vunit_out, which VUnit would wipe).
Log-size policy
Tool output is deliberately bounded so it stays LLM-friendly — raw logs are never dumped in full:
vunit_get_test_logreturns the last 100 lines by default and says so (e.g. "showing last 100 of 3421 lines"); raiselinesfor more. Even an explicit "full" read is capped at ~24 KB (the tail of the file).vunit_compilereturns a 10-line tail on success and an error-line excerpt (error/fatal/failure lines + 2 lines of context) on failure.All other raw-output fallbacks (failed
run.py, unparseable output) are tail-truncated to 4 000 chars, keeping the end where errors and result lines live.vunit_run_tests/vunit_get_reportreturn the parsed JUnit summary (counts + failing test names) rather than raw output.vunit_export_jsoninlines the JSON only below 8 000 chars; above that it returns counts + file/test name lists.vunit_list_files/vunit_export_jsonlist project files only; VUnit built-in library sources (installed package files) are summarized as a count, since they are stable and not part of the project.
Development
uv pip install -e ".[dev]"
uv run pytest tests/ # pure parsers — no simulator required
uv run ruff check src/ tests/
uv run mypy src/vunit_mcp/Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables AI assistants to perform Electronic Design Automation (EDA) tasks including Verilog synthesis, simulation, ASIC design flows, and waveform analysis through a unified interface.6
- AlicenseAqualityBmaintenanceEnables AI assistants to run, list, and analyze Lupa test suites, returning structured JSON results for debugging.413Apache 2.0

squish-mcpofficial
FlicenseAqualityFmaintenanceEnables AI agents to run and create Squish test scripts and test suites and analyze the results.1913- 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.MIT
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Project management MCP for AI agents with safe task reads and writes.
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ru551n/vunit-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server