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

# Prava MCP Overview

> Connect any MCP-capable AI agent to Prava payments. No CLI, no SDK, no card data.

The **Prava MCP** is a hosted [Model Context Protocol](https://modelcontextprotocol.io) server. MCP
is the standard way to give an AI agent new abilities: you add a server URL to your agent, and the
agent gains that server's tools. Adding Prava's server gives your agent the ability to pay and shop
with your card, under your approval.

```
https://mcp.pay.prava.space/mcp
```

Works with any MCP client: Claude Code, Cursor, Poke, or your own app. Setup is one URL and one
sign-in. See [Connect](https://docs.prava.space/mcp/connect.md).

> [!NOTE]
>
> This is the **payments** MCP. It is not the same as the **docs** MCP
> (`docs.prava.space/mcp`), which only lets an agent read these docs. See
> [Use Prava Docs with AI](https://docs.prava.space/ai.md).

## What your agent can do

| Ability | Tools |
| - | - |
| Pay a known total at a named merchant | `create_payment_session`, `get_payment_status` |
| Set up & manage standing mandates | `create_mandate`, `list_mandates`, `get_mandate`, `pause_mandate`, `resume_mandate`, `cancel_mandate` |
| Find and buy products | `shop_search`, `shop_product`, `shop_quote`, `shop_checkout` |
| Manage delivery addresses | `shop_list_addresses`, `shop_add_address`, `shop_set_default_address` |
| See your cards and agents | `list_cards`, `list_agents` |

Full parameters and flows: [Tools reference](https://docs.prava.space/mcp/tools.md).

## The credential firewall

The MCP is built so that payment credentials never reach the agent. This is stronger than the CLI
path, where the agent handles a one-time token itself.

Example: your agent buys you a phone case.

1. The agent finds the case and locks a price (`shop_quote`): \$18.50.
2. It creates a payment session for exactly \$18.50 and sends you a `payment_url`.
3. You open the link and approve with your passkey (a fingerprint or face confirmation on your
   device). The agent only ever learns the *status*:
   `get_payment_status` returns `completed`, never the card token.
4. The agent calls `shop_checkout`. Prava's gateway pulls the one-time credentials server-side,
   completes the merchant checkout, and returns only the outcome: `{ status: "paid", order_id: … }`.

At no point does the agent, the LLM, or the MCP client see a card number, token, or CVV.

## Scopes

Access is scoped with OAuth. A scope is a named permission: your MCP client requests these when
you connect, and you approve them once.

| Scope | Grants |
| - | - |
| `payments:read` | Read cards (masked), agents, payment status, product search, masked addresses, and mandates |
| `payments:write` | Lock quotes, add or change delivery addresses, and set up or manage mandates (pause / resume / cancel) |
| `checkout:run` | Create payment sessions and execute checkouts |

## MCP, CLI, or SDK?

| | **Prava MCP** | **[Prava CLI](https://docs.prava.space/prava-pay/overview.md)** | **[Prava SDK](https://docs.prava.space/sdk/overview.md)** |
| - | - | - | - |
| You are | An agent owner or agent-platform user | An agent owner on a machine with a terminal | A developer building an AI app |
| Setup | Add one URL, sign in | Install `@prava-sdk/cli`, link via browser | API keys + backend + frontend |
| Agent sees credentials | Never (gateway-side) | Yes, one-time scoped token | Your backend handles them |
| Best when | Your agent platform supports MCP | Your agent runs shell commands | You own the product surface |

All three share the same account, cards, guardrails, and approval model. An agent connected via MCP
shows up in your [Prava Pay dashboard](https://pay.prava.space) next to CLI-linked agents, and you
can revoke it the same way.

## Next

> [card] [Connect your agent](https://docs.prava.space/mcp/connect.md)
>
> One URL, one sign-in. Claude Code, Cursor, and generic clients.

> [card] [Tools reference](https://docs.prava.space/mcp/tools.md)
>
> Every tool, its parameters, and the buy-flow chain.


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