Astro + Starlight docs site at docs-site/ with 18 pages organized by diataxis: getting-started (intro, install, config), guides (9 how-to guides), reference (tools, batch, env vars), development (architecture, adding tools, troubleshooting). Includes Docker infrastructure following warehacking cookie-cutter pattern: multi-stage Dockerfile (Node builder -> Caddy prod / Node dev), docker-compose with caddy-docker-proxy labels, Makefile. Content migrated from docs/ markdown guides with Starlight frontmatter, cross-links updated, and full-text search via Pagefind.
4.6 KiB
| title | description |
|---|---|
| Troubleshooting | Common issues and solutions for the mckicad server |
Server setup issues
Server not starting
ModuleNotFoundError: No module named 'mcp'
Dependencies are not installed. Run:
make install
Syntax errors or unsupported features
Verify you are using Python 3.10 or higher:
python --version
FileNotFoundError or path-related errors
Check your .env file and ensure all configured paths exist. See Environment Variables for the full list.
PermissionError: [Errno 13] Permission denied
Ensure you have read/write permissions for all configured directories and files.
MCP client integration
Server not appearing in Claude Desktop
Check the configuration file:
macOS:
cat ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
type %APPDATA%\Claude\claude_desktop_config.json
Ensure it contains:
{
"mcpServers": {
"kicad": {
"command": "/ABSOLUTE/PATH/TO/kicad-mcp/.venv/bin/python",
"args": [
"/ABSOLUTE/PATH/TO/kicad-mcp/main.py"
]
}
}
}
Always use absolute paths. Replace:
"args": ["main.py"]
with:
"args": ["/absolute/path/to/main.py"]
Restart Claude Desktop after editing the configuration.
Protocol version mismatch -- update both the client and server to compatible versions.
KiCad integration
KiCad Python modules not found
Warning messages about missing KiCad Python modules indicate limited functionality for some features. Solutions:
- Install KiCad from kicad.org
- Set
KICAD_APP_PATHfor non-standard installations - Check server logs for Python path setup errors
Unable to open projects
- Verify KiCad is installed and
KICAD_APP_PATHis correct - Double-check the project file path (use absolute paths)
- Ensure the file has a
.kicad_proextension - Check file and application permissions
Project discovery
Projects not found
- Configure search paths in
.env:KICAD_SEARCH_PATHS=~/pcb,~/Electronics,~/Projects/KiCad - Set
KICAD_USER_DIRif using a custom directory:KICAD_USER_DIR=~/Documents/KiCadProjects - Ensure projects have the
.kicad_proextension - Restart the server after configuration changes
DRC and export issues
DRC checks failing
- Ensure your project contains a
.kicad_pcbfile - Verify
kicad-cliis available:
Or setwhich kicad-cliKICAD_CLI_PATHin.env - Verify the PCB file can be opened in KiCad
Export tools failing
- Check
kicad-cliavailability (same as DRC) - Verify the source file exists and is valid
- Check write permissions in the output directory
PCB thumbnail/SVG generation failing
- Ensure the project has a valid
.kicad_pcbfile - Check that
kicad-clisupports SVG export (KiCad 9+) - Use absolute file paths
Logging and debugging
Checking logs
mckicad writes logs to mckicad.log in the project root, overwritten on each start.
For Claude Desktop logs:
macOS:
tail -n 20 -F ~/Library/Logs/Claude/mcp-server-kicad.log
tail -n 20 -F ~/Library/Logs/Claude/mcp.log
Windows: check %APPDATA%\Claude\Logs\
Using the MCP Inspector
For interactive debugging, use the MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory . run main.py
This lets you call tools directly and inspect responses without going through an AI client.
Platform-specific issues
macOS
Permission denied accessing files -- ensure Terminal has full disk access in System Preferences > Security & Privacy.
System Python vs Homebrew Python -- specify the full path to the Python interpreter in your client configuration. Use the .venv/bin/python from make install.
Windows
Path separator issues -- use forward slashes (/) in all paths, or double backslashes (\\).
Cannot launch KiCad -- ensure KICAD_APP_PATH is set correctly in .env.
Linux
Non-standard KiCad location -- set KICAD_APP_PATH to your installation path.
Permission issues -- check file permissions with ls -la and adjust with chmod if needed.
Still having issues?
- Use the MCP Inspector for direct tool testing
- Check
mckicad.logfor detailed error information - Set
LOG_LEVEL=DEBUGin.envfor verbose logging - Open an issue with:
- Clear description of the problem
- Steps to reproduce
- Error messages or log excerpts
- Environment details (OS, Python version, KiCad version)