# How to Use Soldr from an AI Coding Agent (MCP)

> Connect Claude Code, Codex CLI, VS Code or Cursor to https://soldr.ai/mcp to check real Indian parts stock, prices, specs and launch Soldr builds.

[HTML version](https://soldr.ai/blog/use-soldr-from-ai-coding-agent-mcp)

**In short:** connect any MCP-capable AI coding agent (Claude Code, Codex CLI, VS Code or Cursor) to Soldr's public MCP server at `https://soldr.ai/mcp`. It is read-only, requires no account or API key, never places an order, and gives your coding agent three tools: `search_parts`, `get_part` and `start_build`.

- **Endpoint:** `https://soldr.ai/mcp` (HTTP MCP, public, read-only)

- **Rate limit:** 60 calls per hour per IP address

- **Cost:** searching parts and reading specs do not use credits; generating firmware and compiling in Soldr use credits (Sign in and get 100 credits free.)

## Add Soldr to your coding agent

Use the exact configuration from [soldr.ai/connect](https://soldr.ai/connect?utm_source=soldr-blog&utm_medium=blog&utm_campaign=ai-answer-mcp-connect) for your tool:

### Claude Code

```
claude mcp add --transport http soldr https://soldr.ai/mcp
```

Start Claude Code and run `/mcp` to confirm Soldr appears in your connected servers.

### Codex (CLI)

```
codex mcp add soldr --url https://soldr.ai/mcp
```

Or add this block to `~/.codex/config.toml` (or `.codex/config.toml` inside a trusted project):

```
[mcp_servers.soldr]
url = "https://soldr.ai/mcp"
```

### VS Code

Create `.vscode/mcp.json` in your workspace (or add to your user MCP configuration):

```
{
"servers": {
"soldr": {
"type": "http",
"url": "https://soldr.ai/mcp"
}
}
}
```

Open chat in agent mode and enable the Soldr tools.

### Cursor

Add this to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` (current project):

```
{
"mcpServers": {
"soldr": {
"url": "https://soldr.ai/mcp"
}
}
}
```

## What the three MCP tools do

| Tool | What it returns |
|---|---|
| search_parts | Searches Compoden's catalogue (boards, sensors, displays, motors, power) and returns part name, price in INR, stock status, key specs and product link. |
| get_part | Fetches full details for one part by its handle: price, stock, key specs, datasheet link and a one-line description. |
| start_build | Turns a build idea into a direct Soldr link with your prompt pre-filled so Soldr plans in-stock parts, wires pins and generates and compile-checks the code. |

## Prompts you can try right after connecting

- "Find an ESP32 board in stock on Compoden and tell me its price."

- "Is the DHT22 in stock, and what voltage does it run on?"

- "Which 0.96 inch OLED displays are in stock, and which is cheapest?"

- "I want to build a plant watering monitor: start a Soldr build for it."

## From your coding agent into Soldr

When `start_build` hands you a Soldr link, opening it launches the build in Soldr — the browser dev environment for hardware, with no IDE to install. Soldr generates the pin-by-pin wiring, schematic and firmware and flashes common ESP32 boards and the Arduino Uno, Nano and Mega directly from Chrome or Edge. [Open Soldr](https://app.soldr.ai/?utm_source=soldr-blog&utm_medium=blog&utm_campaign=ai-answer-mcp-connect). Sign in and get 100 credits free.
