Kicad (lamaalrajih)

Developer toolsDesign and media

Model Context Protocol server for KiCad on Mac, Windows, and Linux.

Your AI app calls the Kicad (lamaalrajih) MCP server, which does the developer tools and design and media work and sends the result back to the chat.

About Kicad (lamaalrajih)

Kicad (lamaalrajih) is a community MCP server from lamaalrajih, filed in our directory under developer tools and design and media. Model Context Protocol server for KiCad on Mac, Windows, and Linux.

At a glance

Publisher
lamaalrajih (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
540

How to set up Kicad (lamaalrajih)

  1. Follow the install steps in the Kicad (lamaalrajih) README; it is written in Python, so have that toolchain ready.
  2. Check the Kicad (lamaalrajih) README for keys or settings; the registry lists none that Kicad (lamaalrajih) requires.
  3. Add Kicad (lamaalrajih) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Kicad (lamaalrajih) tools to confirm the connection.
  5. Run one read-only task with Kicad (lamaalrajih) first, and keep your app asking before each tool call until the results look right.

Kicad (lamaalrajih) compared with similar servers

  • Ask Search by ythx-101 has fewer GitHub stars than Kicad (lamaalrajih) (539 against 540); both are community servers, and both run locally.
  • Three-Live 3D, CAD & Spatial XR Compiler by google has more GitHub stars than Kicad (lamaalrajih) (545 against 540); Three-Live 3D, CAD & Spatial XR Compiler is official while Kicad (lamaalrajih) is a community server, and both run locally.
  • Prefire by BarredEwe has fewer GitHub stars than Kicad (lamaalrajih) (537 against 540); both are community servers, and both run locally.

Before you connect Kicad (lamaalrajih)

  • Give Kicad (lamaalrajih) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Kicad (lamaalrajih) tool call until you trust what it does with them.
  • Treat text that Kicad (lamaalrajih) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Kicad (lamaalrajih) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Kicad (lamaalrajih)

How marketing and sales teams put Kicad (lamaalrajih) to work, by company size. Pick the size closest to yours and start Kicad (lamaalrajih) on one use case.

Small business

  • A small business with a developer can use Kicad (lamaalrajih) to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask Kicad (lamaalrajih) to explain and fix a marketing site issue without context switching between tools.
  • A small business can use Kicad (lamaalrajih) to resize and adapt one design for every channel instead of hiring for each version.
  • Kicad (lamaalrajih) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use Kicad (lamaalrajih) to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect Kicad (lamaalrajih) to keep scripts and automations documented and versioned as they change.
  • Creative teams can connect Kicad (lamaalrajih) so agents produce variants for testing while designers keep control of the master files.
  • Start Kicad (lamaalrajih) on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out Kicad (lamaalrajih) with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on Kicad (lamaalrajih) so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can use Kicad (lamaalrajih) with brand rules and approved assets only, so generated work stays inside the brand system.
  • Kicad (lamaalrajih) is a community server, so have security review the code and pin a version before Kicad (lamaalrajih) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Kicad (lamaalrajih) README

From lamaalrajih/kicad-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

KiCad MCP Server

This guide will help you set up a Model Context Protocol (MCP) server for KiCad. While the examples in this guide often reference Claude Desktop, the server is compatible with any MCP-compliant client. You can use it with Claude Desktop, your own custom MCP clients, or any other application that implements the Model Context Protocol.

Table of Contents

  • Prerequisites
  • Installation Steps
  • Understanding MCP Components
  • Feature Highlights
  • Natural Language Interaction
  • Documentation
  • Configuration
  • Development Guide
  • Troubleshooting
  • Contributing
  • Future Development Ideas
  • License

Prerequisites

  • macOS, Windows, or Linux
  • Python 3.10 or higher
  • KiCad 9.0 or higher
  • uv 0.8.0 or higher
  • Claude Desktop (or another MCP client)

Installation Steps

1. Set Up Your Python Environment

First, let's install dependencies and set up our environment:

# Clone the repository
git clone https://github.com/lamaalrajih/kicad-mcp.git
cd kicad-mcp

# Install dependencies – `uv` will create a `.venv/` folder automatically
# (Install `uv` first: `brew install uv` on macOS or `pipx install uv`)
make install

# Optional: activate the environment for manual commands
source .venv/bin/activate
2. Configure Your Environment

Create a .env file to customize where the server looks for your KiCad projects:

# Copy the example environment file
cp .env.example .env

# Edit the .env file
vim .env

In the .env file, add your custom project directories:

# Add paths to your KiCad projects (comma-separated)
KICAD_SEARCH_PATHS=~/pcb,~/Electronics,~/Projects/KiCad
3. Run the Server

Once the environment is set up, you can run the server:

python main.py
4. Configure an MCP Client

Now, let's configure Claude Desktop to use our MCP server:

  1. Create or edit the Claude Desktop configuration file:
# Create the directory if it doesn't exist
mkdir -p ~/Library/Application\ Support/Claude

# Edit the configuration file
vim ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. Add the KiCad MCP server to the configuration:
{
    "mcpServers": {
        "kicad": {
            "command": "/ABSOLUTE/PATH/TO/YOUR/PROJECT/kicad-mcp/.venv/bin/python",
            "args": [
                "/ABSOLUTE/PATH/TO/YOUR/PROJECT/kicad-mcp/main.py"
            ]
        }
    }
}

Replace /ABSOLUTE/PATH/TO/YOUR/PROJECT/kicad-mcp with the actual path to your project directory.

5. Restart Your MCP Client

Close and reopen your MCP client to load the new configuration.

Understanding MCP Components

The Model Context Protocol (MCP) defines three primary ways to provide capabilities:

Resources vs Tools vs Prompts

Resources are read-only data sources that LLMs can reference:

  • Similar to GET endpoints in REST APIs
  • Provide data without performing significant computation
  • Used when the LLM needs to read information
  • Typically accessed programmatically by the client application
  • Example: kicad://projects returns a list of all KiCad projects

Tools are functions that perform actions or computations:

  • Similar to POST/PUT endpoints in REST APIs
  • Can have side effects (like opening applications or generating files)
  • Used when the LLM needs to perform actions in the world
  • Typically invoked directly by the LLM (with user approval)
  • Example: open_project() launches KiCad with a specific project

Prompts are reusable templates for common interactions:

  • Pre-defined conversation starters or instructions
  • Help users articulate common questions or tasks
  • Invoked by user choice (typically from a menu)
  • Example: The debug_pcb_issues prompt helps users troubleshoot PCB problems

For more information on resources vs tools vs prompts, read the MCP docs.

Feature Highlights

The KiCad MCP Server provides several key features, each with detailed documentation:

  • Project Management: List, examine, and open KiCad projects

    • Example: "Show me all my recent KiCad projects" → Lists all projects sorted by modification date
  • PCB Design Analysis: Get insights about your PCB designs and schematics

    • Example: "Analyze the component density of my temperature sensor board" → Provides component spacing analysis
  • Netlist Extraction: Extract and analyze component connections from schematics

    • Example: "What components are connected to the MCU in my Arduino shield?" → Shows all connections to the microcontroller
  • BOM Management: Analyze and export Bills of Materials

    • Example: "Generate a BOM for my smart watch project" → Creates a detailed bill of materials

    • Design Rule Checking: Run DRC checks using the KiCad CLI and track your progress over time

    • Example: "Run DRC on my power supply board and compare to last week" → Shows progress in fixing violations

  • PCB Visualization: Generate visual representations of your PCB layouts

    • Example: "Show me a thumbnail of my audio amplifier PCB" → Displays a visual render of the board
  • Circuit Pattern Recognition: Automatically identify common circuit patterns in your schematics

    • Example: "What power supply topologies am I using in my IoT device?" → Identifies buck, boost, or linear regulators

For more examples and details on each feature, see the dedicated guides in the documentation. You can also ask the LLM what tools it has access to!

Natural Language Interaction

While our documentation often shows examples like:

Show me the DRC report for /Users/username/Documents/KiCad/my_project/my_project.kicad_pro

You don't need to type the full path to your files! The LLM can understand more natural language requests.

For example, instead of the formal command above, you can simply ask:

Can you check if there are any design rule violations in my Arduino shield project?

Or:

I'm working on the temperature sensor circuit. Can you identify what patterns it uses?

The LLM will understand your intent and request the relevant information from the KiCad MCP Server. If it needs clarification about which project you're referring to, it will ask.

Documentation

Detailed documentation for each feature is available in the docs/ directory:

Configuration

The KiCad MCP Server can be configured using environment variables or a .env file:

Key Configuration Options
Environment Variable Description Example
KICAD_SEARCH_PATHS Comma-separated list of directories to search for KiCad projects ~/pcb,~/Electronics,~/Projects
KICAD_USER_DIR Override the default KiCad user directory ~/Documents/KiCadProjects
KICAD_APP_PATH Override the default KiCad application path /Applications/KiCad7/KiCad.app

See Configuration Guide for more details.

Development Guide

Project Structure

The KiCad MCP Server is organized into a modular structure:

kicad-mcp/
├── README.md                       # Project documentation
├── main.py                         # Entry point that runs the server
├── requirements.txt                # Python dependencies
├── .env.example                    # Example environment configuration
├── kicad_mcp/                      # Main package directory
│   ├── __init__.py
│   ├── server.py                   # MCP server setup
│   ├── config.py                   # Configuration constants and settings
│   ├── context.py                  # Lifespan management and shared context
│   ├── resources/                  # Resource handlers
│   ├── tools/                      # Tool handlers
│   ├── prompts/                    # Prompt templates
│   └── utils/                      # Utility functions
├── docs/                           # Documentation
└── tests/                          # Unit tests
Adding New Features

To add new features to the KiCad MCP Server, follow these steps:

  1. Identify the category for your feature (resource, tool, or prompt)
  2. Add your implementation to the appropriate module
  3. Register your feature in the corresponding register function
  4. Test your changes with the development tools

See Development Guide for more details.

Troubleshooting

If you encounter issues:

  1. Server Not Appearing in MCP Client:

    • Check your client's configuration file for errors
    • Make sure the path to your project and Python interpreter is correct
    • Ensure Python can access the mcp package
    • Check if your KiCad installation is detected
  2. Server Errors:

    • Check the terminal output when running the server in development mode
    • Check Claude logs at:
      • ~/Library/Logs/Claude/mcp-server-kicad.log (server-specific logs)
      • ~/Library/Logs/Claude/mcp.log (general MCP logs)
  3. Working Directory Issues:

    • The working directory for servers launched via client configs may be undefined
    • Always use absolute paths in your configuration and .env files
    • For testing servers via command line, the working directory will be where you run the command

See Troubleshooting Guide for more details.

If you're still not able to troubleshoot, please open a Github issue.

Contributing

Want to contribute to the KiCad MCP Server? Here's how you can help improve this project:

  1. Fork the repository
  2. Create a feature branch
  3. Add your changes
  4. Submit a pull request

Key areas for contribution:

  • Adding support for more component patterns in the Circuit Pattern Recognition system
  • Improving documentation and examples
  • Adding new features or enhancing existing ones
  • Fixing bugs and improving error handling

See CONTRIBUTING.md for detailed contribution guidelines.

Future Development Ideas

Interested in contributing? Here are some ideas for future development:

  1. 3D Model Visualization - Implement tools to visualize 3D models of PCBs
  2. PCB Review Tools - Create annotation features for design reviews
  3. Manufacturing File Generation - Add support for generating Gerber files and other manufacturing outputs
  4. Component Search - Implement search functionality for components across KiCad libraries
  5. BOM Enhancement - Add supplier integration for component sourcing and pricing
  6. Interactive Design Checks - Develop interactive tools for checking design quality
  7. Web UI - Create a simple web interface for configuration and monitoring
  8. Circuit Analysis - Add automated circuit analysis features
  9. Test Coverage - Improve test coverage across the codebase
  10. Circuit Pattern Recognition - Expand the pattern database with more component types and circuit topologies

License

This project is open source under the MIT license.

Questions about Kicad (lamaalrajih)

What is the Kicad (lamaalrajih) MCP server?

Model Context Protocol server for KiCad on Mac, Windows, and Linux. Kicad (lamaalrajih) is maintained by lamaalrajih on GitHub at lamaalrajih/kicad-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Kicad (lamaalrajih) MCP server?

Kicad (lamaalrajih) doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (lamaalrajih/kicad-mcp). Like most servers, Kicad (lamaalrajih) ends with a command or URL you paste into your AI app's MCP config.

Does Kicad (lamaalrajih) need an API key?

The registry lists no required keys for Kicad (lamaalrajih). Check the Kicad (lamaalrajih) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Kicad (lamaalrajih) an official MCP server?

No. Kicad (lamaalrajih) is a community server maintained by lamaalrajih. Community servers can be excellent; read the code and the open issues before you give Kicad (lamaalrajih) access to company data.

What license is Kicad (lamaalrajih) under?

Kicad (lamaalrajih) is released under the MIT license, according to its GitHub repository. The license covers the code of Kicad (lamaalrajih); the service it connects to has its own terms.