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

# Stripe

> Connect your Stripe account so agents can read payments, payouts, subscriptions, and revenue metrics

## Connect Stripe

An Aster organization admin connects Stripe once with a Stripe restricted key. The connection is shared across the organization, so scheduled tasks keep running without anyone signing in again.

1. In the Stripe Dashboard, open [API keys](https://dashboard.stripe.com/apikeys) in live mode and click **Create restricted key**.
2. When Stripe asks how you'll use the key, choose **Authorizing agent access to your account**. Stripe's MCP server only accepts keys created this way.
3. Name the key (for example "Aster Agents") and set **Read** on what agents should see. For finance work that is usually accounts, balance, balance transactions, payouts, charges, refunds, disputes, customers, invoices, subscriptions, products, and prices. For MRR and SQL reporting, also set **Read** on metrics, queries, and reports. Set **Write** only on what agents should change.
4. Copy the key. Stripe shows it only once.
5. In Aster, open **Control Hub > Integrations**, click **Add integration**, find **Stripe**, and click **Configure**. Paste the key, save, then click the **play** button to check the connection.
6. Edit an agent and check **Stripe** under **MCP Servers**.

Every agent with Stripe can do whatever the key allows, across the whole Stripe account. Aster keeps the key server-side and never shows it again.

## What agents can do

| Tool | Use |
| - | - |
| `stripe_api_read` | Read with Stripe's `GET` methods: charges, payouts, balance transactions, customers, invoices, subscriptions, disputes, refunds, and more. |
| `stripe_api_write` | Create or change what the key allows, such as customers, invoices, subscriptions, payment links, and refunds. |
| `stripe_analytics` | MRR, ARR, and other Stripe metrics, and SQL over your Stripe data, for example reconciling each payout to its payments, refunds, and fees. |
| `stripe_api_search`, `stripe_api_details` | Find the right Stripe API method and its parameters. |
| `get_stripe_account_info` | The connected account's name and ID. |
| `search_stripe_documentation` | Search Stripe's documentation. |

Stripe maintains these tools and adds new ones over time. See [Stripe's MCP documentation](https://docs.stripe.com/mcp#tools) for the full list. To keep agents read-only, give the key no **Write** permissions.

## Approvals

Stripe holds high-risk actions from agent keys, such as refunds and payouts, until a reviewer approves them in the Stripe Dashboard. The agent replies with Stripe's approval link. After it's approved, ask the agent to try again. A scheduled task stops at that step until someone approves and runs it again. See Stripe's [approval rules](https://docs.stripe.com/account/approvals).

## Example prompts

* "What was our MRR at the end of each month this year?"
* "Reconcile last month's payouts to their payments, refunds, and fees, and flag anything that doesn't tie out."
* "Which invoices are past due, and which customers owe them?"
* "List November's disputes by reason and amount."

## Troubleshooting

* **401:** The key was expired or rotated, or it wasn't created for agent access. From January 11, 2027, Stripe's MCP server rejects secret keys (`sk_`) and restricted keys not created for agents. Create a key as in steps 1–4 and paste it in **Configure**.
* **Permission error naming a resource:** The key has no access to it. Edit the key's permissions in Stripe; nothing changes in Aster.

Stripe's Queries API, which runs SQL, is free through January 31, 2027. After that Stripe charges your Stripe account for usage.


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