Stone

Finance and commerce

MCP server for Stone, open banking, payments, Pix, transfers.

Your AI app calls the Stone MCP server, which does the finance and commerce work and sends the result back to the chat.

About Stone

Stone is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Stone, open banking, payments, Pix, transfers.

Stone runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-stone@0.2.2 and talks to it over standard input and output. It needs STONE_CLIENT_SECRET set before Stone starts.

Stone is listed in the official MCP registry as io.github.codespar/mcp-stone, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-stone
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-stone

How to set up Stone

  1. Install Node.js on the machine that runs your AI app, because Stone starts with npx and downloads its package on first run.
  2. Create STONE_CLIENT_SECRET for Stone in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Stone to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Stone tools to confirm the connection.
  5. Run one read-only task with Stone first, and keep your app asking before each tool call until the results look right.

Stone compared with similar servers

  • Stp Spei by codespar has fewer GitHub stars than Stone (278 against 278); both are community servers, and both run locally.
  • Stark Bank by codespar has fewer GitHub stars than Stone (278 against 278); both are community servers, and both run locally.
  • Stripe by codespar has fewer GitHub stars than Stone (278 against 278); both are community servers, and both run locally.

Before you connect Stone

  • Give Stone its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Stone tool call until you trust what it does with them.
  • Treat text that Stone fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Stone on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Stone

How marketing and sales teams put Stone to work, by company size. Pick the size closest to yours and start Stone on one use case.

Small business

  • A small business can ask Stone which products and customers drive margin, then plan promotions around them.
  • Owners can use Stone to check refunds, failed payments and churn reasons without opening three dashboards.
  • Stone runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Stone to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Stone to check spend against budget each week and move money to what's working.
  • Start Stone on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Stone read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Stone to answer revenue questions by channel and region with figures finance signs off on.
  • Stone is a community server, so have security review the code and pin a version before Stone touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Stone README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-stone

MCP server for Stone, acquiring (card / Pix / boleto), anticipations, receivables, terminals, and open banking

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "stone": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stone"],
      "env": {
        "STONE_CLIENT_ID": "your-client-id",
        "STONE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}
Claude Code
claude mcp add stone -- npx @codespar/mcp-stone
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "stone": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-stone"],
      "env": {
        "STONE_CLIENT_ID": "your-client-id",
        "STONE_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Tools (21)

Tool Purpose
get_balance Get account balance
list_transactions List account transactions
get_statement Get account statement for a period
create_payment Create a payment via Stone
get_payment Get payment details by ID
list_payments List payments with optional filters
create_transfer Create a bank transfer (internal or external)
create_pix_payment Create a Pix payment (outbound) via Stone
create_pix_charge Create a Pix charge (QR Code / cob) to receive a payment
create_boleto Create a boleto bancário for charging a customer
create_card_charge Charge a credit or debit card (Stone acquiring)
tokenize_card Tokenize a card to PCI-safe token for later charging
refund_transaction Refund a settled transaction (full or partial)
cancel_transaction Cancel an authorized (not-yet-captured) transaction
create_anticipation Anticipate future receivables (Stone's flagship 'antecipação')
get_anticipation_limits Get current anticipation limits (max / min / available) for a merchant
list_receivables Search receivables (future credits from card transactions)
list_terminals List physical Stone / TON terminals for a merchant
get_terminal_status Get current status of a specific POS terminal (online / offline / last seen)
register_webhook Register a webhook endpoint for Stone events
list_webhooks List registered webhook endpoints

Authentication

Stone uses OAuth2 client credentials for authentication. The server automatically manages token refresh.

Sandbox / Testing

Stone provides a sandbox via the developer portal.

Get your credentials
  1. Go to Stone Open Bank Documentation
  2. Register as a developer
  3. Create an application to get OAuth2 credentials
  4. Set the environment variables

Environment Variables

Variable Required Description
STONE_CLIENT_ID Yes OAuth2 client ID
STONE_CLIENT_SECRET Yes OAuth2 client secret
STONE_BASE_URL No Override base URL (default https://api.openbank.stone.com.br/api/v1; sandbox https://sandbox-api.openbank.stone.com.br/api/v1)
STONE_AUTH_URL No Override the OAuth2 token URL (default https://accounts.openbank.stone.com.br/auth/realms/stone_bank/protocol/openid-connect/token; sandbox https://sandbox-accounts.openbank.stone.com.br/auth/realms/stone_bank/protocol/openid-connect/token). Up to 0.2.2 the token call went to login.openbank.stone.com.br, which does not exist, so every tool failed at authentication.

Roadmap

v0.3 (planned)
  • list_pix_keys, List registered Pix keys for a merchant
  • create_recipient, Marketplace / split recipients
  • create_transfer_batch, Batch transfer processing
  • get_boleto, Fetch boleto details
  • create_scheduled_payment, Schedule future-dated payments
  • list_payouts, List anticipation / settlement payouts

Want to contribute? Open a PR or request a tool.

Links

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Questions about Stone

What is the Stone MCP server?

MCP server for Stone, open banking, payments, Pix, transfers. Stone is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Stone MCP server?

Add Stone to your AI app's MCP config with the command npx -y @codespar/mcp-stone@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-stone -- npx -y @codespar/mcp-stone@0.2.2. To run Stone this way you need Node.js installed.

Does Stone need an API key?

Yes. Stone expects STONE_CLIENT_SECRET to be set. Create the key for Stone in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Stone an official MCP server?

No. Stone is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Stone access to company data.

What license is Stone under?

Stone is released under the MIT license, according to its GitHub repository. The license covers the code of Stone; the service it connects to has its own terms.