Skip to main content
New

1,300+ funded startups directory

Browse
LeadMagic logo
LeadMagic
OpenCode logoOpenCode Integration

LeadMagic + OpenCode

Add LeadMagic to OpenCode via MCP. Remote HTTP server with 16 enrichment tools in your terminal AI.

Quick Setup

Connect in 30 seconds

Paste this config into your OpenCode MCP settings, replace YOUR_API_KEY with your key, and restart.

Same API key as CLI and REST API
Same credit balance — no extra cost
16 enrichment tools available instantly
opencode.jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "leadmagic": {
      "type": "remote",
      "url": "https://mcp.leadmagic.io/mcp",
      "oauth": false,
      "headers": {
        "x-leadmagic-key": "YOUR_API_KEY"
      }
    }
  }
}

What you get with OpenCode

16 enrichment tools available inside your AI assistant, powered by the same LeadMagic API.

Remote MCP via opencode.jsonc
CLI management (opencode mcp add)
Project-scoped or global config
OAuth and API key auth support
Per-agent tool routing
Same API key as CLI & REST API

SIMPLE PROCESS

How to connect OpenCode

Get your API key

Grab your key from app.leadmagic.io/settings/api. Free credits included — no credit card required.

Add the remote MCP config

Add a "leadmagic" entry under "mcp" in your opencode.jsonc with type: "remote", your URL, and API key header.

Use enrichment tools

Ask OpenCode to "find the VP Sales at Stripe" or "validate this email" — it calls LeadMagic's 16 tools automatically.

FAQ

OpenCode FAQ

Ready to connect OpenCode?

Get an API key, paste the config, and your AI assistant becomes a B2B data powerhouse.