# Rustok Wallet MCP server

> Enables AI agents to perform secure, self-custody Ethereum transactions with automated risk analysis and multi-chain support.

- Repository: https://github.com/temrjan/rustok
- Page: https://hostedmcp.org/servers/temrjan/rustok
- Transport: stdio
- Stars: 0
- License: AGPL-3.0
- Latest version: 0.2.2

## Install

### Claude Code

```sh
claude mcp add --env 'RUSTOK_AGENT_PASSWORD=<YOUR_RUSTOK_AGENT_PASSWORD>' rustok -- npx -y rustok-agent-mcp
```

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

```json
{
  "mcpServers": {
    "rustok": {
      "command": "npx",
      "args": [
        "-y",
        "rustok-agent-mcp"
      ],
      "env": {
        "RUSTOK_AGENT_PASSWORD": "<YOUR_RUSTOK_AGENT_PASSWORD>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "rustok": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "rustok-agent-mcp"
      ],
      "env": {
        "RUSTOK_AGENT_PASSWORD": "<YOUR_RUSTOK_AGENT_PASSWORD>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"rustok","type":"stdio","command":"npx","args":["-y","rustok-agent-mcp"],"env":{"RUSTOK_AGENT_PASSWORD":"<YOUR_RUSTOK_AGENT_PASSWORD>"}}'
```

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

```json
{
  "mcpServers": {
    "rustok": {
      "command": "npx",
      "args": [
        "-y",
        "rustok-agent-mcp"
      ],
      "env": {
        "RUSTOK_AGENT_PASSWORD": "<YOUR_RUSTOK_AGENT_PASSWORD>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add rustok --env 'RUSTOK_AGENT_PASSWORD=<YOUR_RUSTOK_AGENT_PASSWORD>' -- npx -y rustok-agent-mcp
```

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

```toml
[mcp_servers.rustok]
command = "npx"
args = ["-y", "rustok-agent-mcp"]

[mcp_servers.rustok.env]
RUSTOK_AGENT_PASSWORD = "<YOUR_RUSTOK_AGENT_PASSWORD>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'RUSTOK_AGENT_PASSWORD=<YOUR_RUSTOK_AGENT_PASSWORD>' rustok npx -- -y rustok-agent-mcp
```

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

```json
{
  "mcpServers": {
    "rustok": {
      "command": "npx",
      "args": [
        "-y",
        "rustok-agent-mcp"
      ],
      "env": {
        "RUSTOK_AGENT_PASSWORD": "<YOUR_RUSTOK_AGENT_PASSWORD>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `RUSTOK_AGENT_PASSWORD` | yes | yes | Password to unlock the agent wallet |

## FAQ

### What chains are supported by Rustok?

The wallet supports Ethereum, Arbitrum, Base, Optimism, and zkSync, along with the Sepolia testnet.

### How does the transaction security engine work?

The txguard engine analyzes transactions by decoding calldata, running security rules, and simulating execution via revm to provide risk assessments.

### Can I use Rustok for AI agents?

Yes, the core is evolving into a wallet for AI agents featuring MCP tools with gated execution capabilities.

### Is there a way to analyze transactions via API?

Yes, a public HTTP API is available for headless txguard analysis, including endpoints for address checks and transaction decoding.
