# Coinbase Agent

> Coinbase AgentKit proof of concept wired into IQAI ADK through MCP.

- **Type:** MCP server
- **Install:** `agentstack add mcp-braindao-coinbase-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [BrainDAO](https://agentstack.voostack.com/s/braindao)
- **Installs:** 0
- **Category:** [Finance & Payments](https://agentstack.voostack.com/c/finance-and-payments)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [BrainDAO](https://github.com/BrainDAO)
- **Source:** https://github.com/BrainDAO/coinbase-agent
- **Website:** https://adk.iqai.com

## Install

```sh
agentstack add mcp-braindao-coinbase-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Coinbase Agent

A tiny proof‑of‑concept that wires Coinbase AgentKit into the IQAI ADK (adk-ts) using the Model Context Protocol (MCP). AgentKit providers are exposed as MCP SDK tools, then adapted into ADK tools so your ADK agent can call on-chain actions through Coinbase.

## How it works

- **AgentKit → MCP**: AgentKit's MCP package exposes its action providers as MCP tools plus a handler.
- **MCP → ADK**: Those MCP tools are converted to ADK `BaseTool`s and attached to an `AgentBuilder`.
- **Model**: Uses OpenRouter if `OPEN_ROUTER_KEY` is set; otherwise falls back to the model string configured in `LLM_MODEL`.

### Quick start

1. Install

```bash
pnpm install
```

2. Configure environment
Create a `.env` with the essentials:

```bash
DEBUG=false
OPEN_ROUTER_KEY=your_openrouter_key
LLM_MODEL=gpt-4.1-mini

# Required for AgentKit / CDP
# Get these 2 from: https://portal.cdp.coinbase.com/projects/api-keys
CDP_API_KEY_ID=...
CDP_API_KEY_SECRET=...

WALLET_PRIVATE_KEY=0x...
# get it from: https://zerion.io/api
ZERION_API_KEY=...
```

3. Run

Run the predefined set of agent prompts `src/index.ts`

```bash
pnpm dev
```

Have a full on conversation using the adk cli (requires [adk-cli](https://adk.iqai.com/docs/framework/get-started/cli) package installed )

```bash
# Spins up chat interface on cli
adk run
# (or)
# Opens up web interface to chat with the agent
adk web
```

### Included tools (via AgentKit)

- `defillamaActionProvider` (Querying defi llama platform for coin data & details)
- `pythActionProvider` (Retrieves price data from Pyth price feed)
- `walletActionProvider` (getting wallet details & enables native token transfer)
- `erc20ActionProvider` (enables transfer & get balance of erc20 token)
- `x402ActionProvider` (enables http requests)
- `zerionActionProvider` (provides portfolio overview & fungible token positions, requires API key)

These are automatically adapted into ADK tools; you can add or remove providers in `src/agents/coinbase/tools/agentkit.ts`. Check for more [providers](https://github.com/coinbase/agentkit/blob/main/typescript/agentkit/README.md#action-providers) on the AgentKit repo.

### Project layout

```bash
src/
  env.ts                      # env + model selection (OpenRouter optional)
  index.ts                    # simple demo prompt
  agents/coinbase/
    agent.ts                  # ADK agent wiring
    tools/
      agentkit.ts            # AgentKit + providers setup & MCP → ADK tool adapter
```

### References

- [IQAI ADK (adk-ts)](https://adk.iqai.com)
- [Coinbase AgentKit](https://docs.cdp.coinbase.com/agent-kit)

### License

MIT

## Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [BrainDAO](https://github.com/BrainDAO)
- **Source:** [BrainDAO/coinbase-agent](https://github.com/BrainDAO/coinbase-agent)
- **License:** MIT
- **Homepage:** https://adk.iqai.com

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-braindao-coinbase-agent
- Seller: https://agentstack.voostack.com/s/braindao
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
