[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [JLCPCB component search](https://spiral.ai/integrations/opencode/jlcpcb-component-search)

# How to Use JLCPCB component search in opencode

Returns matching components from JLCPCB's assembly parts library, drawn from the LCSC catalog. Use it to build a candidate list before checking individual component details.

|  |  |
| --- | --- |
| Model | JLCPCB component search |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with JLCPCB component search in opencode

- Use JLCPCB component search to find STM32F103C8T6 candidates and compare their listed packages with this project's MCU footprint.
- Use JLCPCB component search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from JLCPCB component search and tell me what changed since last week.
- Check JLCPCB component search and summarize what you find in three bullet points.
- Pull the newest data from JLCPCB component search and give me the result as a table.

## How to set up JLCPCB component search in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run JLCPCB component search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "jlcpcb-com/electronic-components/search_parts",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: opencode finds JLCPCB component search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## JLCPCB component search tools and prices

- [JLCPCB parts library · Search parts](https://spiral.ai/tools/alexandria/jlcpcb-com/electronic-components/search_parts) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to 10000 | 1 | page |
| sort | relevance, stock_desc, stock_asc | relevance | sort |
| query |  | — | Keyword, LCSC C-number or manufacturer part number. At least one of query, category or subcategory is required. |
| category |  | — | Top-level category name exactly as list_categories returns it, e.g. `Embedded Processors & Controllers`. |
| packages |  | — | Restrict to these package strings as JLCPCB spells them (e.g. `TQFP-100(14x14)`, `0402`). |
| page_size | 1 to 50 | 25 | page_size |

## What can you do with JLCPCB component search in opencode?

Turn a project's bill of materials into a JLCPCB component review with catalog matches, package checks, and stock findings. Use category names and search suggestions to guide discovery, then attach component specifications and datasheet links to the review.

### Find decoupling capacitors for a new board

Review available search suggestions, locate the capacitor categories, and search for 100 nF parts. Check each candidate's voltage rating, tolerance, package, and stock before choosing a part.

### Build a power supply component shortlist

Use search suggestions and the category taxonomy to plan searches for voltage regulators. Retrieve candidate details for an engineer to compare against the board's electrical and package requirements.

### Research components for a sensor board

Review suggested search wording and sensor categories, then find candidate components. Collect their specifications, package information, stock, and datasheet links for design review.

### Explore ferrite beads for an input filter

Review search suggestions and category names before searching for ferrite beads. Compare candidate descriptions and detailed attributes against the filter's current, impedance, and footprint requirements.

### Audit a bill of materials before assembly

Find the exact manufacturer part numbers in a BOM and retrieve their component details. Flag stock shortfalls and package differences for review before submitting the assembly order.

### Monitor parts needed for the next production run

Repeat searches and detail checks for selected BOM components. Report stock falling below the build quantity, and distinguish warehouse availability from parts that still require sourcing.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## JLCPCB component search in other agents

- [Amp](https://spiral.ai/integrations/amp/jlcpcb-component-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/jlcpcb-component-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/jlcpcb-component-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/jlcpcb-component-search)
- [Cline](https://spiral.ai/integrations/cline/jlcpcb-component-search)
- [Codex](https://spiral.ai/integrations/codex/jlcpcb-component-search)
- [Cursor](https://spiral.ai/integrations/cursor/jlcpcb-component-search)
- [Devin](https://spiral.ai/integrations/devin/jlcpcb-component-search)
- [dots](https://spiral.ai/integrations/dots/jlcpcb-component-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/jlcpcb-component-search)
- [Gemini](https://spiral.ai/integrations/gemini/jlcpcb-component-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/jlcpcb-component-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/jlcpcb-component-search)
- [goose](https://spiral.ai/integrations/goose/jlcpcb-component-search)
- [Grok](https://spiral.ai/integrations/grok/jlcpcb-component-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/jlcpcb-component-search)
- [Hermes](https://spiral.ai/integrations/hermes/jlcpcb-component-search)
- [Instinct](https://spiral.ai/integrations/instinct/jlcpcb-component-search)
- [Manus](https://spiral.ai/integrations/manus/jlcpcb-component-search)
- [Muse](https://spiral.ai/integrations/muse/jlcpcb-component-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/jlcpcb-component-search)
- [n8n](https://spiral.ai/integrations/n8n/jlcpcb-component-search)
- [Notion](https://spiral.ai/integrations/notion/jlcpcb-component-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/jlcpcb-component-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/jlcpcb-component-search)
- [Raycast](https://spiral.ai/integrations/raycast/jlcpcb-component-search)
- [VS Code](https://spiral.ai/integrations/vscode/jlcpcb-component-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/jlcpcb-component-search)
- [Zapier](https://spiral.ai/integrations/zapier/jlcpcb-component-search)

## More opencode guides

- [JLCPCB component details](https://spiral.ai/integrations/opencode/jlcpcb-component-details)
- [JLCPCB component suggestions](https://spiral.ai/integrations/opencode/jlcpcb-component-suggestions)
- [JLCPCB component categories](https://spiral.ai/integrations/opencode/jlcpcb-component-categories)
- [Kelley Blue Book car listing details](https://spiral.ai/integrations/opencode/kelley-blue-book-car-listing-details)
- [IronPlanet upcoming auctions](https://spiral.ai/integrations/opencode/ironplanet-upcoming-auctions)
- [Kelley Blue Book car listings](https://spiral.ai/integrations/opencode/kelley-blue-book-car-listings)

## Questions about JLCPCB component search in opencode

**Can opencode use JLCPCB component search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run JLCPCB component search like any built-in tool.

**How much does JLCPCB component search cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use JLCPCB component search in opencode?**

No. Spiral runs JLCPCB component search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up JLCPCB component search in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while JLCPCB component search runs?**

JLCPCB component search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does a listed component mean JLCPCB has it in stock?**

JLCPCB distinguishes public warehouse stock from other sourcing routes. Its pre-order terms say those components become usable for assembly only after they arrive at the warehouse.

**How quickly can component availability change?**

JLCPCB says inventory may change each second. A stock count can therefore change between component selection and the assembly order.

**Does JLCPCB list every component I might need?**

JLCPCB acknowledges that a missing component may not have been listed yet. Its documentation provides a new-part request route for that situation.

**How is the component catalog organized?**

JLCPCB exposes a two-level category taxonomy. Category discovery helps identify the appropriate category and subcategory before searching for parts.

**How specific are the component descriptions?**

Descriptions can include electrical values and package details. For example, C1525 specifies 100 nF, 16 V, X7R, ±10% tolerance, and a 0402 package.

