Pyslang MCP logo

Pyslang MCP

Compiler-backed, read-only analysis of local Verilog and SystemVerilog projects through MCP.

Install Pyslang MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pyslang-mcp": {
      "command": "uvx",
      "args": [
        "pyslang-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 10 tools correctly ().

Overview

Compiler-backed analysis of local Verilog and SystemVerilog projects is what the pyslang-mcp MCP server provides, using pyslang to parse and elaborate HDL rather than relying only on text search. It runs locally over stdio and exposes tools for diagnostics, filelists, design units, hierarchy, symbols, assignments, connectivity, preprocessing metadata, and project summaries. Use it when an agent needs structured compiler context for an existing RTL checkout; it does not edit, simulate, synthesize, or lint code.

Use cases

  • Inspect compiler diagnostics before reviewing RTL
  • Resolve nested filelists and preprocessing settings
  • Explore module hierarchy and instance connections
  • Find HDL declarations, references, and local members
  • Trace bounded structural signal connectivity

Key features

  • Read-only Verilog and SystemVerilog analysis
  • pyslang parsing and elaboration
  • Filelist, include path, and define handling
  • Diagnostics, hierarchy, and symbol queries
  • Assignment and connectivity inspection
  • Strict project-root path scoping

Tools10

What Pyslang MCP lets your agent do. Expand a tool for its parameters.

Verified live~5.3k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/22 checks healthy over the last 112d

What it can do

From the 10 tools this server returned when we ran it; 10 declare their own safety hints.

Read-only tools · 10
Network at startup2 connections
Files written at startup10

Observed 2026-10-25 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · pyslang-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars24Stargazers on the source repository.
Last commit5mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed10Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Pyslang MCP works

What pyslang-mcp MCP server does

The pyslang-mcp MCP server gives MCP clients read-only access to compiler-backed information from Verilog and SystemVerilog projects. It wraps pyslang, so requests operate on parsed and elaborated HDL structures rather than treating source files as unstructured text.

The server is intended for local RTL checkouts and can answer questions about compiler diagnostics, design units, module hierarchy, declarations, references, assignments, port connections, and bounded structural connectivity. It can also report how a filelist resolves, including source files, include directories, defines, nested filelists, and unsupported entries.

Results are scoped to a supplied project_root. Source files, filelists, and include directories may be absolute or relative, but they must remain inside that root. Responses are compact JSON and can include truncation metadata for large result sets.

How it works

Start by loading either explicit source files or a .f filelist. The available parsing tools accept include directories, preprocessor defines, and optional top modules. After parsing, use diagnostics to identify syntax or semantic problems, then query the compiler’s view of the project.

A typical investigation lists discovered modules, interfaces, and packages before inspecting a particular design unit or walking the elaborated instance tree. Symbol searches can include references, while member searches focus on names local to one design unit. Assignment and instance-connection tools provide additional structural context, and connectivity tracing follows bounded paths through assignments and instance port bindings.

The pyslang-mcp MCP server maintains a process-local cache keyed by project configuration and tracked file modification times. Its preprocessing tool returns metadata and source excerpts rather than promising a complete standalone preprocessed stream.

Setup and configuration

Install the published package with:

Terminal
pip install pyslang-mcp

Launch the local stdio server with pyslang-mcp. An editable checkout can instead be installed with the development extras and started using python -m pyslang_mcp from its virtual environment. An MCP client must launch the process on a machine, virtual machine, or development container that can access the RTL checkout.

A minimal client configuration uses the pyslang-mcp command with no arguments. Every tool request must provide project_root; parsing requests then supply either files or filelist, with optional include_dirs, defines, and top_modules.

Tools and capabilities

The pyslang-mcp MCP server exposes tools for:

  • Parsing explicit files or loading nested filelists.
  • Retrieving diagnostics and grouping them by diagnostic code.
  • Listing and describing modules, interfaces, packages, and other design units.
  • Walking instance hierarchy and inspecting one instance’s port connections.
  • Finding declarations, references, and local members.
  • Inspecting signal assignments and bounded structural connectivity.
  • Summarizing syntax node shapes and preprocessing metadata.
  • Producing a compact project summary.

Filelists support source entries, nested -f and -F references, include-directory forms such as +incdir+..., -I dir, and -Idir, plus define forms including +define+..., -D NAME, and -DNAME. Unsupported tokens are reported in tool output.

Limitations and notes

Operations are read-only: the server does not modify RTL, format files, simulate, synthesize, or replace a linter. Connectivity results are structural frontend evidence, not simulation results, formal proofs, CDC or RDC signoff, timing signoff, or a complete netlist-level driver/load database.

The project is described as early-stage. Streamable HTTP is experimental, and the documented local deployment uses stdio. The server is best suited to compiler-backed questions about complete or sufficiently configured source sets; simple text searches, comments, naming lookups, and incomplete source sets may be better handled with editor search, rg, or direct file reading.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pyslang MCP

pyslang-mcp is an MCP server that connects AI clients to local Verilog and SystemVerilog projects through the pyslang compiler frontend. Its main tools parse files or filelists, report diagnostics, list and describe design units, inspect hierarchy, find symbols, examine assignments, and trace bounded structural connectivity without modifying RTL.

Install it with `pip install pyslang-mcp`, then run `pyslang-mcp`. For a development checkout, create a virtual environment, install the project with its development extras, and start it with `python -m pyslang_mcp` or the installed console script.

Configure the client to launch `pyslang-mcp` over local stdio. Each tool request must include a `project_root`, and parsing calls can provide explicit files or a filelist plus include directories, defines, and top modules. The launched process must be able to access the RTL checkout.

No, pyslang-mcp is read-only and does not edit, format, simulate, synthesize, or lint RTL. Its connectivity tracing supplies bounded structural frontend evidence and is not a simulation, formal proof, timing signoff, or complete netlist driver/load analysis.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPyslang MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pyslang-mcp?style=directory)](https://allmcps.com/mcp/pyslang-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pyslang-mcp"><img src="https://allmcps.com/api/badge/pyslang-mcp?style=directory" alt="Pyslang MCP on AllMCPs" /></a>