Server data from the Official MCP Registry
Compiler-backed read-only Verilog and SystemVerilog project analysis.
Compiler-backed read-only Verilog and SystemVerilog project analysis.
Valid MCP server (2 strong, 1 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
4 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-ariklapid-pyslang-mcp": {
"args": [
"pyslang-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
pyslang-mcp is a local Model Context Protocol server that gives AI agents
compiler-backed, read-only context for Verilog and SystemVerilog projects.
It wraps pyslang so an MCP client can ask
questions against parsed and elaborated HDL instead of plain text:
.f files resolve as expected?This is not a simulator, synthesizer, waveform viewer, linter replacement, or RTL refactoring tool. It is a small semantic analysis service for local HDL checkouts.
[!NOTE] The project is currently alpha and published on PyPI and the MCP Registry for local stdio use. Install with
--prewhile the package uses alpha versions.
Most AI coding tools are good at searching text. HDL usually needs more than that.
In real projects, useful answers often depend on filelists, packages, includes,
defines, generate blocks, and hierarchy. pyslang-mcp gives an agent a compact
compiler-backed view of that structure, while keeping the server read-only and
scoped to a project root you provide.
Good fits:
.f file expands toInstall the alpha package:
pip install --pre pyslang-mcp
Run the local stdio server:
pyslang-mcp
For contributor setup, clone the repo and install it in editable mode:
git clone https://github.com/ariklapid/pyslang-mcp.git
cd pyslang-mcp
python -m venv .venv
./.venv/bin/pip install -e '.[dev]'
Run the checkout stdio server:
./.venv/bin/python -m pyslang_mcp
The installed console script works too:
./.venv/bin/pyslang-mcp
Run tests:
./.venv/bin/pytest
Use local stdio. The MCP client should launch the server on the same machine,
VM, or dev container that can see your RTL checkout.
{
"mcpServers": {
"pyslang-mcp": {
"command": "pyslang-mcp",
"args": []
}
}
}
For editable checkout installs, point the command at the checkout virtual environment instead:
{
"mcpServers": {
"pyslang-mcp": {
"command": "/absolute/path/to/pyslang-mcp/.venv/bin/python",
"args": ["-m", "pyslang_mcp"]
}
}
}
Tool calls must provide a project_root. Source paths, filelists, and include
directories may be absolute or relative, but they must stay under that root.
Analyze explicit files:
{
"project_root": "/path/to/rtl-project",
"files": ["rtl/pkg.sv", "rtl/top.sv"],
"include_dirs": ["include"],
"defines": {
"WIDTH": "32"
},
"top_modules": ["top"]
}
Analyze a filelist:
{
"project_root": "/path/to/rtl-project",
"filelist": "compile/project.f"
}
Find a symbol:
{
"project_root": "/path/to/rtl-project",
"filelist": "compile/project.f",
"query": "payload",
"match_mode": "exact",
"include_references": true
}
| Need | Tool |
|---|---|
| Load explicit files | pyslang_parse_files |
Load a .f filelist | pyslang_parse_filelist |
| Get parse and semantic diagnostics | pyslang_get_diagnostics |
| List modules, interfaces, and packages | pyslang_list_design_units |
| Inspect one design unit | pyslang_describe_design_unit |
| Walk the elaborated instance tree | pyslang_get_hierarchy |
| Find declarations and references | pyslang_find_symbol |
| Summarize syntax node shapes | pyslang_dump_syntax_tree_summary |
| Check preprocessing metadata and excerpts | pyslang_preprocess_files |
| Get a compact project overview | pyslang_get_project_summary |
Typical flow:
pyslang_parse_filelist or pyslang_parse_files.pyslang_get_diagnostics.pyslang_list_design_units to see what the compiler frontend found.pyslang_describe_design_unit, pyslang_get_hierarchy, or
pyslang_find_symbol for the actual review/debug question.The current parser intentionally supports a practical subset used by many RTL flows:
-f and -F+incdir+..., -I dir, and -Idir+define+..., -D NAME, and -DNAMEUnsupported filelist tokens are reported in the tool output instead of being silently ignored.
Use this server when compiler-backed context matters:
compile/project.f with +define+DEBUG and group diagnostics by
source file."top, show the instance hierarchy down to depth 4."axi_dma_top: ports, child instances, and declared names."payload_valid."legacy_widget is instantiated anywhere the elaborator
sees it."For single-line questions, comments, naming searches, or partial/incomplete
source sets, regular rg, editor search, or direct file reading is usually
faster and clearer.
project_root are rejected.pyslang_preprocess_files is summary-oriented. It returns preprocessing
metadata and source excerpts, not a guaranteed full standalone preprocessed
stream.streamable-http exists only as an explicit experimental local transport; it
is not a secure hosted deployment mode.The repo includes generated HDL examples under
examples/hdl:
easy, medium, and hardpyslang and verilator --lint-onlyRun the full corpus validator:
./.venv/bin/python scripts/validate_hdl_examples.py
Run the CI smoke subset:
./.venv/bin/python scripts/validate_hdl_examples.py --smoke-only
Implemented:
FastMCP stdio serverpython -m pyslang_mcp and pyslang-mcp.f parsingpyslang-mcpio.github.ariklapid/pyslang-mcpNot done yet:
Useful commands:
./.venv/bin/ruff check .
./.venv/bin/pyright
./.venv/bin/pytest
Architecture and contribution docs:
Apache-2.0. See LICENSE.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.