# Cinderwright MCP server

> Enables AI agents to perform cross-protocol payments for services using USDC or Lightning via a universal payment router.

- Repository: https://github.com/cinderwright-ai/cinderwright-api
- Page: https://hostedmcp.org/servers/cinderwright-ai/cinderwright-api
- Transport: stdio
- Stars: 4
- License: MIT
- Latest version: 1.1.1

## Install

### Claude Code

```sh
claude mcp add cinderwright-api -- npx -y cinderwright-mcp-server
```

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

```json
{
  "mcpServers": {
    "cinderwright-api": {
      "command": "npx",
      "args": [
        "-y",
        "cinderwright-mcp-server"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "cinderwright-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "cinderwright-mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"cinderwright-api","type":"stdio","command":"npx","args":["-y","cinderwright-mcp-server"]}'
```

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

```json
{
  "mcpServers": {
    "cinderwright-api": {
      "command": "npx",
      "args": [
        "-y",
        "cinderwright-mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add cinderwright-api -- npx -y cinderwright-mcp-server
```

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

```toml
[mcp_servers.cinderwright-api]
command = "npx"
args = ["-y", "cinderwright-mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user cinderwright-api npx -- -y cinderwright-mcp-server
```

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

```json
{
  "mcpServers": {
    "cinderwright-api": {
      "command": "npx",
      "args": [
        "-y",
        "cinderwright-mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CW_KEY` | no | no |  |

## FAQ

### How can an agent pay for Lightning-gated services?

An agent with a USDC balance can call any Lightning-gated (L402) service; the router detects the protocol and routes the payment automatically.

### Does the agent need to manage crypto wallets?

No, the agent does not need to manage wallets, sign transactions, or know which protocol was used for settlement.

### Is there a way to test the service without spending money?

Yes, you can use the sandbox tool to test EIP-3009 signing without spending USDC.

### What tools are available in the MCP server?

The MCP server includes 17 tools such as proxy_do, proxy_setup, proxy_balance, and service discovery.
