> For the complete documentation index, see [llms.txt](https://docs.abapays.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abapays.com/protocols/mcp.md).

# MCP

> Local + remote

10 tools over Streamable HTTP JSON-RPC — the same protocol Claude and any MCP client speak. OAuth 2.1 is supported and preferred; an Agent Hub API key remains the fallback for clients that can't do OAuth.

## Connect

```json
{
  "mcpServers": {
    "abapay": { "url": "https://www.abapays.com/api/mcp" }
  }
}
```

Claude Desktop / Code: Settings → Connectors → Add custom connector → paste the URL above.

## The 10 tools

| Tool                         | What it does                                                                           |
| ---------------------------- | -------------------------------------------------------------------------------------- |
| `describe_capabilities`      | Human-readable menu of what AbaPay can pay and what's currently paused.                |
| `check_balance`              | The linked wallet's live balance and approved agent limit, per token, per chain.       |
| `list_plans`                 | Real, currently purchasable DATA / CABLE / EDUCATION plans with exact variation codes. |
| `list_international_options` | Browses the international catalogue — country → product type → operator → priced plan. |
| `transaction_history`        | Recent payments, paginated.                                                            |
| `pay_bill`                   | Pay one bill — airtime, data, electricity, cable, education, international.            |
| `pay_bill_batch`             | Up to 20 recipients under one PIN.                                                     |
| `schedule_bill`              | Recurring or delayed payments.                                                         |
| `list_schedules`             | What automations are currently set up.                                                 |
| `cancel_schedule`            | Cancel one.                                                                            |

## Same PIN rules as A2A

MCP and A2A share one execution engine, one linking flow, and one PIN model — set entirely by API, never through a browser. See [A2A](/protocols/a2a.md) for the exact request that does it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.abapays.com/protocols/mcp.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
