> ## Documentation Index
> Fetch the complete documentation index at: https://docs.messari.io/llms.txt
> Use this file to discover all available pages before exploring further.

# x402 Skill for Claude Code

The official Messari x402 skill for Claude Code allows you to access Messari's data and insights directly from Claude Code authenticated with x402. Answer crypto questions using the Messari API: 34,000+ assets, 210+ exchanges, 14 data services
covering market metrics, social sentiment, research, on-chain analytics, fundraising, governance,
and more.

## Installation

### 1. Coinbase Payment MCP extension

For the best user experience, we recommend installing the Coinbase's Payment MCP extension which provides easy to use hosted wallet with x402 support.

Close any open Claude Code sessions and run the following command in your terminal:

```bash theme={null}
npx @coinbase/payments-mcp@latest --client claude-code --auto-config 
```

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/payments-mcp-1.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=4a068932dce6d055be034cf01bfb94c3" alt="Install Command" width="1772" height="1952" data-path="images/claude-code/payments-mcp-1.png" />

Run the command shown to you.

**IMPORTANT:** Double check the quotes when copying the command, it should be

```
// Correct
claude mcp add --transport stdio payments-mcp --scope user "COMMAND" "ARGS"

// Incorrect
claude mcp add --transport stdio payments-mcp --scope user "COMMAND ARGS"
```

Start a Claude Code session and check the status of the MCP server with `/mcp` command, you should see the `payments-mcp` server connected

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/payments-mcp-2.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=47c8601de4e059f95417745429f6fcec" alt="MCP Status" width="906" height="706" data-path="images/claude-code/payments-mcp-2.png" />

### 2. Authenticate with your x402 wallet

Ask Claude Code to open the payments-mcp wallet

```
Open the payments-mcp wallet
```

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/payments-mcp-3.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=54ddc46df4b1c45f8047fa97b6336970" alt="Payment MCP Wallet Sign In" width="2148" height="1062" data-path="images/claude-code/payments-mcp-3.png" />

You can then sign into your coinbase account and add USDC to the wallet with the “Fund” or “Receive” buttons.

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-desktop/claude-4.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=a7b3ef9b25b2d48f7f489edd590eb223" alt="Payment MCP Wallet Fund" width="924" height="630" data-path="images/claude-desktop/claude-4.png" />

### 3. Get the Messari Skill

Now that your wallet is ready, you can add the Messari Skill to your `~/.claude/skills/ directory`

```bash theme={null}
mkdir -p ~/.claude/skills/messari && curl -o ~/.claude/skills/messari/SKILL.md https://raw.githubusercontent.com/messari/skills/refs/heads/master/SKILL.md
```

Claude Code should now have the Messari Skill available

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/skill-available.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=de69ac76389b369e9701b5d8c2b0557c" alt="Payment MCP Wallet Sign In" width="1386" height="538" data-path="images/claude-code/skill-available.png" />

## Usage

And now you're ready to ask Messari anything about crypto

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/query-1.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=6969755e02263664fe488945a45375ab" alt="Messari Skill Answer" width="1932" height="1032" data-path="images/claude-code/query-1.png" />

You'll be prompted to to confirm x402 payment, you can choose "don't ask again" to skip the prompt in the future.

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/query-2.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=e8fd940bcc6696fee5f9824801f8e22e" alt="Messari Skill Answer" width="1922" height="966" data-path="images/claude-code/query-2.png" />

<img src="https://mintcdn.com/messari-f8af6bf9/OY_JBAKogTOqYORK/images/claude-code/query-3.png?fit=max&auto=format&n=OY_JBAKogTOqYORK&q=85&s=eef9a53f5ddc9decdd8ce3eea253b8ce" alt="Messari Skill Answer" width="2078" height="2294" data-path="images/claude-code/query-3.png" />
