# Connect Claude Code to Duang MCP (134 Providers in 4 Tools)

> One command connects Claude Code to live data APIs and team apps—only 4 tools in context.

- **Canonical URL**: https://duang.ai/mcp/for/claude-code
- **Remote MCP endpoint**: `https://api.duang.ai/mcp`
- **Transport**: Remote HTTP MCP + OAuth
- **Config location**: `~/.claude.json`
- **Coverage**: 3,012 live pay-per-call & free data APIs across 50 platforms + 79 team apps (134 providers total)
- **Billing**: New accounts get $1 free welcome credit on their first team (no card required); top up from $10 USD via Stripe with no auto-recharge. Failed upstream calls cost $0.

## Quick Setup (~/.claude.json)

```
claude mcp add --transport http --scope user duang https://api.duang.ai/mcp
```

## Alternative: .mcp.json (`.mcp.json (project-shared)`)

```
{
  "mcpServers": {
    "duang": {
      "type": "http",
      "url": "https://api.duang.ai/mcp"
    }
  }
}
```

## 3-Step Setup

1. **Add server** — Run the command once in your terminal.
2. **Authenticate** — Run /mcp in Claude Code → duang → Authenticate.
3. **Ask for live data** — Start with $1 free credit on your first team.

## Why 4 Meta-Tools Matter

Claude Code sends every enabled MCP schema on every turn. Four Duang meta-tools keep prompt cache hits high and API keys out of ~/.claude.json.

- `discover`: Find matching capabilities and providers with 1–2 keywords.
- `inspect`: Load exact input schema and live per-call USD price for one target.
- `call`: Execute safely with an idempotency key and receive normalized output + itemized USD receipt.
- `get_call`: Poll pending calls or inspect past receipts without double-billing.

## Frequently Asked Questions

### What if Claude Code says duang needs authentication?

Run /mcp inside Claude Code, choose duang, and click Authenticate to refresh your OAuth session. You can revoke access anytime from the Duang console.

### How do I share this setup with teammates in a repo?

Commit the .mcp.json tab above to your repo root. It holds zero secrets—each teammate signs in with their own OAuth session.

### Will 134 providers slow down Claude Code?

No. Duang exposes only 4 meta-tools (discover, inspect, call, get_call) instead of dumping hundreds of tool schemas into every turn. Claude Code loads schemas on demand only when needed.

### Does Claude Code ever see my API keys?

Never. Your 79 team apps stay encrypted in Duang's vault, and managed data calls (3,012 live APIs across 50 platforms) bill per call in exact USD with $1 free for new teams and $0 on upstream failures.
