# three.ws Coin Clash

Connects agents to the three.ws Coin Clash token war: monitors active battles, validates Solana coin ownership, and submits battle taps for your chosen side.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 249
- Author: nirholas
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/nirholas/three.ws/tree/HEAD/packages/clash-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/threews-coin-clash

## What it does

This server connects AI assistants to the community token battlefield over stdio. It exposes four tools: `get_clash_state` checks current matchups and round timers, `get_clash_leaderboard` fetches win-loss records, `enlist_faction` verifies token holdings, and `rally_faction` converts taps into faction battle score.

Public queries require no authentication. They pull live statistics directly from the backend endpoint at `https://three.ws`. Submitting power or joining a side requires a base58 Solana private key provided in `SOLANA_SECRET_KEY` or through tool arguments. The system checks on-chain balances without moving funds or executing transfers.

Running the package requires Node.js 20 or higher. Without the target token present in the signer wallet, faction enlistment fails with a `not_a_holder` response.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `THREE_WS_BASE`, `THREE_WS_TIMEOUT_MS`, `SOLANA_SECRET_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> --transport stdio clash-mcp -- npx -y @three-ws/clash-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add clash-mcp --env THREE_WS_BASE=<THREE_WS_BASE> --env THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> --env SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> -- npx -y @three-ws/clash-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "clash-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@three-ws/clash-mcp"
            ],
            "env": {
                "THREE_WS_BASE": "<THREE_WS_BASE>",
                "THREE_WS_TIMEOUT_MS": "<THREE_WS_TIMEOUT_MS>",
                "SOLANA_SECRET_KEY": "<SOLANA_SECRET_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "clash-mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@three-ws/clash-mcp"
            ],
            "env": {
                "THREE_WS_BASE": "<THREE_WS_BASE>",
                "THREE_WS_TIMEOUT_MS": "<THREE_WS_TIMEOUT_MS>",
                "SOLANA_SECRET_KEY": "<SOLANA_SECRET_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e THREE_WS_BASE=<THREE_WS_BASE> -e THREE_WS_TIMEOUT_MS=<THREE_WS_TIMEOUT_MS> -e SOLANA_SECRET_KEY=<SOLANA_SECRET_KEY> clash-mcp npx -y @three-ws/clash-mcp
```
Replace <…> with your own values

## When to use it
- monitor live battle arena matchups and remaining round time
- check all-time community records and leaderboards
- verify Solana token holdings with cryptographic proof
- contribute battle taps to boost faction momentum

## Example prompts
- Check the current Coin Clash arena board and show who is leading
- Enlist my Solana wallet for the faction token to get a war pass
- Spend 50 taps to support our team via rally_faction

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [nirholas/three.ws](https://affpapa.org/en/nevibecode/by/nirholas/three.ws.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
