# kya labs MCP server

> Enables AI agents to declare identity via cryptographic badges and make human-approved payments using single-use virtual Visa cards.

- Repository: https://github.com/payclaw/mcp-server
- Page: https://hostedmcp.org/servers/payclaw/spend
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 0.4.0

## Install

### Claude Code

```sh
claude mcp add --env 'PAYCLAW_API_KEY=<YOUR_PAYCLAW_API_KEY>' spend -- npx -y @payclaw/mcp-server
```

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

```json
{
  "mcpServers": {
    "spend": {
      "command": "npx",
      "args": [
        "-y",
        "@payclaw/mcp-server"
      ],
      "env": {
        "PAYCLAW_API_KEY": "<YOUR_PAYCLAW_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "spend": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@payclaw/mcp-server"
      ],
      "env": {
        "PAYCLAW_API_KEY": "<YOUR_PAYCLAW_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"spend","type":"stdio","command":"npx","args":["-y","@payclaw/mcp-server"],"env":{"PAYCLAW_API_KEY":"<YOUR_PAYCLAW_API_KEY>"}}'
```

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

```json
{
  "mcpServers": {
    "spend": {
      "command": "npx",
      "args": [
        "-y",
        "@payclaw/mcp-server"
      ],
      "env": {
        "PAYCLAW_API_KEY": "<YOUR_PAYCLAW_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add spend --env 'PAYCLAW_API_KEY=<YOUR_PAYCLAW_API_KEY>' -- npx -y @payclaw/mcp-server
```

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

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

[mcp_servers.spend.env]
PAYCLAW_API_KEY = "<YOUR_PAYCLAW_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'PAYCLAW_API_KEY=<YOUR_PAYCLAW_API_KEY>' spend npx -- -y @payclaw/mcp-server
```

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

```json
{
  "mcpServers": {
    "spend": {
      "command": "npx",
      "args": [
        "-y",
        "@payclaw/mcp-server"
      ],
      "env": {
        "PAYCLAW_API_KEY": "<YOUR_PAYCLAW_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PAYCLAW_API_KEY` | yes | yes | Your PayClaw API key (get one at payclaw.io) |
| `KYA_API_KEY` | no | no |  |
| `KYA_API_URL` | no | no |  |
| `KYA_EXTENDED_AUTH` | no | no |  |
| `KYA_PING` | no | no |  |
| `PAYCLAW_API_URL` | no | no | PayClaw API URL (default: https://payclaw.io) |

## FAQ

### How does the Spend feature work?

When an agent needs to pay, it declares intent, the user approves via MFA, and a single-use virtual Visa is issued that self-destructs after use.

### Do I need an API key to use the Badge feature?

No, Badge works immediately upon installation without an API key, signup, or network calls.

### Is my real credit card information exposed to the agent?

No, the system uses single-use virtual cards so your actual card details are never shared during the chat.
