# Prism Network MCP server

> Allows AI agents to browse, lease, and run workloads on real NVIDIA GPUs with onchain payments and confidential computing capabilities.

- Repository: https://github.com/prismnetwork-tech/prism
- Page: https://hostedmcp.org/servers/prismnetwork-tech/mcp
- Transport: stdio
- Stars: 1
- License: Apache-2.0
- Latest version: 0.10.0

## Install

### Claude Code

```sh
claude mcp add --env 'PRISM_AGENT_KEY=<YOUR_PRISM_AGENT_KEY>' mcp -- npx -y @prismnetwork/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@prismnetwork/mcp"
      ],
      "env": {
        "PRISM_AGENT_KEY": "<YOUR_PRISM_AGENT_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@prismnetwork/mcp"
      ],
      "env": {
        "PRISM_AGENT_KEY": "<YOUR_PRISM_AGENT_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@prismnetwork/mcp"],"env":{"PRISM_AGENT_KEY":"<YOUR_PRISM_AGENT_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@prismnetwork/mcp"
      ],
      "env": {
        "PRISM_AGENT_KEY": "<YOUR_PRISM_AGENT_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'PRISM_AGENT_KEY=<YOUR_PRISM_AGENT_KEY>' -- npx -y @prismnetwork/mcp
```

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

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

[mcp_servers.mcp.env]
PRISM_AGENT_KEY = "<YOUR_PRISM_AGENT_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'PRISM_AGENT_KEY=<YOUR_PRISM_AGENT_KEY>' mcp npx -- -y @prismnetwork/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@prismnetwork/mcp"
      ],
      "env": {
        "PRISM_AGENT_KEY": "<YOUR_PRISM_AGENT_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PRISM_AGENT_KEY` | no | yes | Agent wallet private key (0x...). Only needed to lease and pay; browsing works without it |
| `PRISM_DAILY_BUDGET_USDG` | no | no | Most this wallet may spend through Prism in any 24 hours. Defaults to 5. Set 0 to remove the ceiling |
| `PRISM_ESCROW` | no | no | Prism LeaseEscrow contract address |
| `PRISM_MAX_USDG` | no | no | Most any single lease or generation may cost. Defaults to 1. A max_usdg argument can lower it and cannot raise it |
| `PRISM_SPEND_POLICY` | no | no | Optional spend policy as JSON or a path to a JSON file: policy_id, allowed actions, required answers and confidence floors. When set, every lease must carry a decision that meets it |

## Tools (20)

- `prism_budget`
- `prism_list_gpus`
- `prism_price_index`
- `prism_receipts`
- `prism_wallet`
- `prism_leases`
- `prism_infer`
- `prism_infer_batch`
- `prism_confidential_infer`
- `prism_verify_attestation`
- `prism_lease_and_run`
- `prism_lease`
- `prism_run`
- `prism_batch_run`
- `prism_end_lease`
- `prism_vault_store`
- `prism_vault_list`
- `prism_vault_read`
- `prism_vault_delete`
- `prism_vault_release`

## FAQ

### How long does it take to provision a GPU?

GPU provisioning typically takes between one and four minutes, though it can occasionally take longer.
