> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sleetpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP server

> Let an AI assistant look up customers, orders and subscriptions.

An [MCP](https://modelcontextprotocol.io) server lets an AI assistant (Claude Desktop, Claude Code or any MCP client) look up customers, orders and subscriptions, check entitlements, and create checkout links or portal sessions. It has no dependencies and needs Node 18+.

Create an API key with only the scopes you want the assistant to have, then add it to your MCP client:

```json theme={null}
{
  "mcpServers": {
    "sleetpay": {
      "command": "npx",
      "args": ["-y", "@sleetpay/mcp"],
      "env": {
        "SLEETPAY_API_KEY": "sk_live_...",
        "SLEETPAY_MCP_READ_ONLY": "1"
      }
    }
  }
}
```

Claude Code: `claude mcp add sleetpay -e SLEETPAY_API_KEY=sk_live_... -e SLEETPAY_MCP_READ_ONLY=1 -- npx -y @sleetpay/mcp`

`SLEETPAY_MCP_READ_ONLY=1` hides every tool that changes anything. Start there. `SLEETPAY_BASE_URL` defaults to `https://app.sleetpay.com`; set it for a self-hosted deployment. The old `SLEET_*` variable names still work.

| Tool | Scope the key needs | Changes data |
| - | - | - |
| `list_products` | `products:read` | no |
| `list_customers`, `get_customer_state` | `customers:read` | no |
| `list_orders` | `orders:read` | no |
| `list_subscriptions`, `get_subscription` | `subscriptions:read` | no |
| `list_seats` | `seats:read` | no |
| `create_checkout` | `checkouts:write` | creates a link; charges nobody |
| `create_portal_session` | `customer_sessions:write` | creates a sign-in link |
| `cancel_subscription_at_period_end` | `subscriptions:write` | yes |
| `assign_seat` | `seats:write` | yes |
| `ingest_usage_event` | `events:write` | yes (usage is billed) |

The key's scopes are the real limit: a tool the key cannot use answers with the API's `403`. Refunds, payouts and account settings are deliberately not exposed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.