# mcp-stone

An MCP server that puts Stone Open Bank inside your coding agent: payments, Pix, transfers, receivables. Useful when the assistant has to move money, not just draft code for it.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 274
- Author: codespar
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/stone
- Updated: 2026-09-27
- HTML: https://affpapa.org/en/nevibecode/mcp/mcp-stone

## What it does

\`@codespar/mcp-stone` ships 21 tools. They cover account balance, statements and transaction history, outbound payments and bank transfers, Pix payouts and Pix cob charges with a QR code, boleto issuance, refunds and cancellation of authorized transactions, plus card tokenization. On the acquiring side you get credit and debit card charges, a search across future credits, anticipation limits, creating an anticipation, and a list of POS terminals with their status. Two more tools register and list webhook endpoints.

Sign-in uses OAuth2 client credentials and the server refreshes the token on its own. You need `STONE_CLIENT_ID` and `STONE_CLIENT_SECRET` from the Stone developer portal. Without both, no tool can authenticate. Point `STONE_BASE_URL` and `STONE_AUTH_URL` at the sandbox hosts to test safely.

Up to release 0.2.2 the token request went to `login.openbank.stone.com.br`, a host that does not exist, so every call died at authentication. On an older build set `STONE_AUTH_URL` yourself before you rely on any payment tool.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `STONE_CLIENT_SECRET` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add mcp-stone -e STONE_CLIENT_SECRET=<STONE_CLIENT_SECRET> -- npx -y @codespar/mcp-stone
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add stone --env STONE_CLIENT_SECRET=<STONE_CLIENT_SECRET> -- npx -y @codespar/mcp-stone
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stone": {
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-stone"
            ],
            "env": {
                "STONE_CLIENT_SECRET": "<STONE_CLIENT_SECRET>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stone": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@codespar/mcp-stone"
            ],
            "env": {
                "STONE_CLIENT_SECRET": "<STONE_CLIENT_SECRET>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e STONE_CLIENT_SECRET=<STONE_CLIENT_SECRET> stone npx -y @codespar/mcp-stone
```
Replace <…> with your own values

## When to use it
- read the Stone account balance from a chat with the agent
- issue a customer charge as a Pix cob or a boleto
- refund a settled charge or cancel one still uncaptured
- check anticipation limits and upcoming receivables
- see whether a POS terminal is online and register a webhook

## Example prompts
- Show the balance and last month's statement, then create a 250 BRL boleto for the client in my notes.
- Create an 80 BRL Pix cob, give me the QR code, and check its status in an hour.
- What are this merchant's anticipation limits, and which terminals are offline right now?

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89408
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44583
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5458
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2814
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2188
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [codespar/mcp-dev-latam](https://affpapa.org/en/nevibecode/by/codespar/mcp-dev-latam.md) — 124 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
