Silvaco Handbook MCP
Provides AI assistants fast, bounded access to Silvaco TCAD manuals and official Deckbuild example decks via search/read tools, with full-text indexing and PDF page references.
README
Silvaco Handbook MCP
An MCP (Model Context Protocol) server that gives AI assistants fast, bounded access to the Silvaco TCAD manuals and the official Deckbuild example decks — without dumping thousands of PDF pages into the conversation context.
It indexes MinerU-converted Markdown of the manuals into a local SQLite FTS5 database and exposes context-friendly search/read tools over stdio. Each manual section carries its original PDF page range, so results can be cross-referenced with the source PDFs.
Features
- Handbook corpus — section-level index of the Silvaco manuals (Deckbuild, Victory Device, Victory Process, ...) with original PDF page ranges preserved.
- Examples corpus — full-text index of the official
.inexample decks from your Silvaco installation (examples/deckbuild/<version>). - Bounded output — every tool has hard caps (search ≤ 30 hits,
read ≤ 20 000 chars, paged via
offset) so the LLM context stays small. - Incremental indexing — the index is rebuilt lazily on startup whenever a Markdown file or example deck changes (size/mtime fingerprint).
Tools
| Tool | Description |
|---|---|
handbook_list_manuals |
List indexed manuals with section counts and source paths |
handbook_toc |
Section headings of a manual (its table of contents), optional title filter |
handbook_search |
Full-text search; returns section id, title, PDF page range, highlighted snippet |
handbook_read |
Read one section by id; page through long sections with offset |
examples_list |
List indexed example decks (name / category / description) |
examples_search |
Full-text search over deck name, description, and content |
examples_read |
Read one example deck in full (partial unique names accepted) |
Requirements
- Python ≥ 3.10
- Python packages:
mcp,pymupdf(seerequirements.txt) - MinerU Open API CLI (
mineru-open-api) plus an API token — only needed forconvert_mineru.py - The Silvaco manuals as PDFs, and (optionally) a Silvaco installation for the example decks
Install the Python dependencies:
pip install -r requirements.txt
Quick start
1. Convert the manuals to Markdown
MinerU's precision extract is limited to 200 pages per request, so
convert_mineru.py processes each PDF in page-range chunks, marks chunk
boundaries with <!-- pdf pages S-E --> comments, and merges them into one
Markdown file per manual. It is resumable: existing chunks are skipped on
re-run.
export MINERU_TOKEN=<your-mineru-token>
export SILVACO_PDF_DIR=/path/to/silvaco/handbook/pdfs
export SILVACO_MD_DIR=/path/to/markdown/output
# Convert every PDF in SILVACO_PDF_DIR (or only one manual with --only)
python convert_mineru.py
python convert_mineru.py --only deckbuild_users1 --chunk-size 200
Output layout:
<SILVACO_MD_DIR>/<manual>/chunks/p001-200.md # one per chunk
<SILVACO_MD_DIR>/<manual>/chunks/images/ # extracted images
<SILVACO_MD_DIR>/<manual>/<manual>.md # merged, indexed by the server
2. Build the index
python server.py --build # incremental
python server.py --build --force # full rebuild
The index also rebuilds itself lazily when the server starts and a source file has changed, so this step is optional.
3. Register the MCP server
Add it to your MCP client configuration.
Kimi Code / Claude Code (.kimi-code/mcp.json or .claude/mcp.json):
{
"mcpServers": {
"silvaco-handbook": {
"command": "python",
"args": ["/path/to/Silvaco_MCP/server.py"],
"env": {
"SILVACO_MD_DIR": "/path/to/markdown/output",
"SILVACO_EXAMPLES_DIR": "C:/Silvaco/examples/deckbuild/5.2.40.R"
}
}
}
}
Claude Desktop (claude_desktop_config.json): same mcpServers block.
Cursor: Settings → MCP → add the same command/args/env.
4. Ask questions
Once connected, your assistant can answer with manual citations, e.g.:
- "How does Atlas model impact ionization with the Selberherr model?"
→
handbook_search("impact ionization Selberherr")→handbook_read(...) - "Show me an official example of a quantum well laser gain simulation."
→
examples_search("quantum well laser optical gain")→examples_read(...)
Configuration
All paths are set via environment variables:
| Variable | Default | Purpose |
|---|---|---|
SILVACO_MD_DIR |
<repo>/../../mineru-output/silvaco |
Root of converted manual Markdown (<manual>/<manual>.md) |
SILVACO_CACHE_DB |
<repo>/.cache/handbooks_md.db |
SQLite FTS5 cache location |
SILVACO_EXAMPLES_DIR |
(unset → examples tools disabled) | Root of the official deckbuild examples tree |
SILVACO_PDF_DIR |
(vault layout default) | Handbook PDF directory (used by convert_mineru.py) |
SILVACO_MCP_CONFIG |
(vault layout default) | mcp.json to read MINERU_TOKEN from (optional) |
MINERU_TOKEN |
— | MinerU Open API token (takes precedence over config file) |
MINERU_CLI |
mineru-open-api |
Path/name of the MinerU CLI executable |
Usage examples
Typical agent workflow with the tools:
handbook_list_manuals()
→ [{"manual": "deckbuild_users1", "sections": 481, ...}, ...]
handbook_search("impact ionization Selberherr", manual="victorydevice")
→ [{"section_id": 512, "section": "3.7.4 Impact Ionization Models",
"pdf_pages": "201-400", "snippet": "... **Selberherr** ..."}, ...]
handbook_read("victorydevice", section_id=512)
→ "===== victorydevice [512] 3.7.4 Impact Ionization Models (pdf p.201-400) =====
... full section text ..."
handbook_read("victorydevice", section_id=512, offset=12000) # continue long sections
examples_search("quantum well laser optical gain", category="Opto")
→ [{"name": "optoex14", "category": "Technology/Opto_and_Photonics",
"description": "Quantum Well Laser ...", "snippet": "..."}, ...]
examples_read("optoex14")
→ "===== example optoex14 [...] =====\n# Quantum Well Laser ...\ngo atlas ..."
Maintenance
- Manual PDFs updated → re-run
python convert_mineru.py(incremental); the index rebuilds automatically on the next server start, or force it withpython server.py --build. - Example decks changed under
SILVACO_EXAMPLES_DIR→ the index is updated incrementally on startup (deleted decks are dropped as well). - The
.cache/directory is derived state — safe to delete at any time.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.