# cluster MCP server

> Enables AI agents to execute financial operations including tokenized stock swaps, crypto trading, market research, and persistent memory.

- Repository: https://github.com/clusteragent/cluster
- Page: https://hostedmcp.org/servers/clusteragent/cluster
- Transport: stdio, remote
- Stars: 0
- Latest version: 1.0.12

## Install

### Claude Code

```sh
claude mcp add --env 'CLUSTER_API_KEY=<YOUR_CLUSTER_API_KEY>' cluster -- npx -y @clusteragent/cluster-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "cluster": {
      "command": "npx",
      "args": [
        "-y",
        "@clusteragent/cluster-mcp"
      ],
      "env": {
        "CLUSTER_API_KEY": "<YOUR_CLUSTER_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "cluster": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@clusteragent/cluster-mcp"
      ],
      "env": {
        "CLUSTER_API_KEY": "<YOUR_CLUSTER_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"cluster","type":"stdio","command":"npx","args":["-y","@clusteragent/cluster-mcp"],"env":{"CLUSTER_API_KEY":"<YOUR_CLUSTER_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "cluster": {
      "command": "npx",
      "args": [
        "-y",
        "@clusteragent/cluster-mcp"
      ],
      "env": {
        "CLUSTER_API_KEY": "<YOUR_CLUSTER_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add cluster --env 'CLUSTER_API_KEY=<YOUR_CLUSTER_API_KEY>' -- npx -y @clusteragent/cluster-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.cluster]
command = "npx"
args = ["-y", "@clusteragent/cluster-mcp"]

[mcp_servers.cluster.env]
CLUSTER_API_KEY = "<YOUR_CLUSTER_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'CLUSTER_API_KEY=<YOUR_CLUSTER_API_KEY>' cluster npx -- -y @clusteragent/cluster-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "cluster": {
      "command": "npx",
      "args": [
        "-y",
        "@clusteragent/cluster-mcp"
      ],
      "env": {
        "CLUSTER_API_KEY": "<YOUR_CLUSTER_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CLUSTER_API_KEY` | no | yes | Cluster API key (clst_...) minted via wallet signature — required only for wallet-scoped tools |
| `CLUSTER_API_URL` | no | no | Cluster backend base URL (default: https://clusteragent.dev) |
| `CLUSTER_WALLET` | no | no | Default wallet address for wallet-scoped tools |

## FAQ

### How do I get started with the MCP server?

You can run the server using npx by executing `npx @clusteragent/cluster-mcp`.

### Does the server handle my private keys during swaps?

No, the server provides API quotes and your own wallet signs the transactions, ensuring no private keys are stored server-side.

### Can I use this with Python?

Yes, there is a Python SDK available via PyPI called cluster-agent.

### What kind of assets can be traded?

The platform supports 192 tokenized stocks and native cryptocurrency.
