October 17, 2025
GitHub Repository: github.com/aminemahd13/LCSC2KiCad
Why It Was Built
Why You’ll Actually Want This
- Seamless Import – Type in an LCSC part number (e.g., C2040), hit enter, and watch it appear in KiCad.
- Complete Package – Symbols, footprints, and even 3D models come along for the ride.
- Auto-Generated Symbols – If the part doesn’t have a symbol yet, the plugin generates one for you.
- Auto-Save – Everything is neatly stored in /Documents/KiCad/lcsc2kicad, ready to reuse in your next design.
- Integrated Toolbar Access – It lives right in KiCad’s PCB Editor toolbar. No command-line gymnastics required (unless you want to).
Getting Started
Windows
C:\Users\<your_username>\Documents\KiCad\<version>\scripting\plugins\
Make sure LCSC Importer.py is in the plugins folder (not nested inside another).If KiCad complains about missing dependencies, open the KiCad Command Prompt and run:
pip install requests pydantic
macOS
/Users/<USER>/Documents/KiCad/<version>/scripting/plugins/
Then install dependencies:
Bash
/Applications/KiCad/KiCad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/pip3 install requests pydantic
Linux
~/.kicad/<version>/scripting/plugins/
And install dependencies:
Bash
pip3 install requests pydantic
First Run Setup
- Add an environment variable LCSC2KICad pointing to the folder where parts are stored.
- Add lcsc2kicad to both symbol and footprint global libraries.
Using It
- Click the LCSC icon in KiCad’s PCB Editor toolbar.
- Enter the part number (like C5171).
- Press Enter.
- The plugin fetches and imports everything : symbol, footprint, and 3D model.
Command-Line Mode
Bash
# Full import (symbol, footprint, 3D model)
python -m lcsc2kicad --lcsc_id C2040 --full
# Symbol only
python -m lcsc2kicad --lcsc_id C2040 --symbol
# Custom output path
python -m lcsc2kicad --lcsc_id C2040 --full --output ./my_library/parts
When Things Go Wrong
- Missing modules? Run pip install requests pydantic using KiCad’s Python.
- Plugin not visible? Ensure LCSC Importer.py is in the plugins folder root.
- Symbol not found? Recheck your LCSC2KIcad path and restart KiCad.
- API errors? LCSC might be temporarily down — try again later.
