{"_id":"@codespar/mcp-pagar-me","_rev":"6-c3039fcf79db4894d7500daf7cf1d4ec","name":"@codespar/mcp-pagar-me","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"@codespar/mcp-pagar-me","version":"0.1.0","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"license":"MIT","_id":"@codespar/mcp-pagar-me@0.1.0","maintainers":[{"name":"codespar-npm","email":"contact@codespar.dev"}],"bin":{"mcp-pagar-me":"dist/index.js"},"dist":{"shasum":"fc657e130b0a5ff76c8c789e21b30bb03abd18ad","tarball":"https://registry.npmjs.org/@codespar/mcp-pagar-me/-/mcp-pagar-me-0.1.0.tgz","fileCount":4,"integrity":"sha512-+jjMK4vvs9hIJwxMD4NeELXrWnmMBgwjJrswDkzg4CHEy8YePXrST7QZo2Qm523kNDnJxKOA8L+m3qg6vlo3Sg==","signatures":[{"sig":"MEUCIQCJWX/urhVQpCcRu+bn30V5gigOs/SqQgifM8YdVtI2PAIgBU/a4C/RUETtIqqsiFIpl8bs4Pz5q4LZFJVDP3FE2q8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23006},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"ac49d04d5aa50ad5dc16233f0bba88213f917641","scripts":{"build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"codespar-npm","email":"contact@codespar.dev"},"_npmVersion":"11.8.0","description":"MCP server for Pagar.me — orders, charges, recipients, transfers","directories":{},"_nodeVersion":"25.5.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-pagar-me_0.1.0_1774923303853_0.9823601151679526","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@codespar/mcp-pagar-me","version":"0.1.2","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"license":"MIT","_id":"@codespar/mcp-pagar-me@0.1.2","maintainers":[{"name":"codespar-npm","email":"contact@codespar.dev"}],"bin":{"mcp-pagar-me":"dist/index.js"},"dist":{"shasum":"5e69e918fa905811502d9c3a8c26306b33b843f6","tarball":"https://registry.npmjs.org/@codespar/mcp-pagar-me/-/mcp-pagar-me-0.1.2.tgz","fileCount":7,"integrity":"sha512-j1LvbkL6fi1pyGoYA82l9xjRtnCN0jXR0F1R88TWpzA8aeaqXmvEpVzeWIHCylVwjM32wdanuhtmS9L5Dsw5Kw==","signatures":[{"sig":"MEQCIB1sdjdh4HWW/f6FvwslCQAZdeCQao4MsP8zSzQbCXtvAiBFCFfqiiu0rUomHo6pxgqRpJzpAK6XrRBGbPawUcl+Xg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33288},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"8fd47fad095cdf96618460a39345eddfe2a4af21","mcpName":"io.github.codespar/mcp-pagar-me","scripts":{"build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"codespar-npm","email":"contact@codespar.dev"},"_npmVersion":"11.8.0","description":"MCP server for Pagar.me — orders, charges, recipients, transfers","directories":{},"_nodeVersion":"25.5.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-pagar-me_0.1.2_1775953785199_0.3143248445736089","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@codespar/mcp-pagar-me","version":"0.2.0","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"license":"MIT","_id":"@codespar/mcp-pagar-me@0.2.0","maintainers":[{"name":"codespar-npm","email":"contact@codespar.dev"}],"bin":{"mcp-pagar-me":"dist/index.js"},"dist":{"shasum":"da37da4c95abe79bc86a8a0372ef0ae07ebde7b3","tarball":"https://registry.npmjs.org/@codespar/mcp-pagar-me/-/mcp-pagar-me-0.2.0.tgz","fileCount":7,"integrity":"sha512-DX0UngMTNC4+2zJ05O4ruo8cNFmtElPIH1qall7hdkVG2rcOyh9lUu0prnApgE8lCmqg90vviepDNPzed6M4HQ==","signatures":[{"sig":"MEUCIQCDAM7nxFUU7VbPcciaHT9ZkBzN/8BJUeJad3eobPxiyAIgVGgUBkeMhfJ+DqWcXIUjmUHoUQc2gXMtbtAYdBGrseI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63274},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"bcd94c331d54cfed9e5380cc2d0d8aaee4d0c815","mcpName":"io.github.codespar/mcp-pagar-me","scripts":{"build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"codespar-npm","email":"contact@codespar.dev"},"_npmVersion":"11.8.0","description":"MCP server for Pagar.me — orders, charges, recipients, transfers, anticipations, plans, subscriptions, tokens, withdrawals, webhooks","directories":{},"_nodeVersion":"25.5.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-pagar-me_0.2.0_1777038498415_0.9239217634912102","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@codespar/mcp-pagar-me","version":"0.2.1","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"license":"MIT","_id":"@codespar/mcp-pagar-me@0.2.1","maintainers":[{"name":"codespar-npm","email":"contact@codespar.dev"}],"bin":{"mcp-pagar-me":"dist/index.js"},"dist":{"shasum":"c992f9fc1d57394a69e4709c7216b204a8570f40","tarball":"https://registry.npmjs.org/@codespar/mcp-pagar-me/-/mcp-pagar-me-0.2.1.tgz","fileCount":7,"integrity":"sha512-Na00YULppi3E+sW6cSH3jkrHmDLQj3oDT3qsP3rE3K/7E2Bn+EqjUDnSsCHATykgisAz/HaIgaGWDevwz4b8QA==","signatures":[{"sig":"MEUCIAxINGAeMJRZw51YUaelGbWp6+OTCuOQlwfJwN0bqHKjAiEA/Iz6JaCESG+rd5UccyNS7t8bw+kIAm9VT822lhqItjs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":63098},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"0ab801a863239f0cb986bbda65abbaee3c621b44","mcpName":"io.github.codespar/mcp-pagar-me","scripts":{"build":"tsc","start":"node dist/index.js"},"_npmUser":{"name":"codespar-npm","email":"contact@codespar.dev"},"_npmVersion":"11.8.0","description":"MCP server for Pagar.me — orders, charges, recipients, transfers, anticipations, plans, subscriptions, tokens, withdrawals, webhooks","directories":{},"_nodeVersion":"25.5.0","dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.0","@types/node":"^25.5.0"},"_npmOperationalInternal":{"tmp":"tmp/mcp-pagar-me_0.2.1_1777123235236_0.6241781231005235","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@codespar/mcp-pagar-me","version":"0.2.2","description":"MCP server for Pagar.me — orders, charges, recipients, transfers, anticipations, plans, subscriptions, tokens, withdrawals, webhooks","type":"module","main":"./dist/index.js","bin":{"mcp-pagar-me":"dist/index.js"},"scripts":{"build":"tsc","start":"node dist/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"^1.0.0"},"devDependencies":{"@types/node":"^25.5.0","typescript":"^5.8.0"},"license":"MIT","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"mcpName":"io.github.codespar/mcp-pagar-me","_id":"@codespar/mcp-pagar-me@0.2.2","gitHead":"e8f2ad023876683538fe7b66a2fc88ab8d8ef92f","types":"./dist/index.d.ts","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-sn9+nbHcfHwRPtYp1pvh9NiC9tbCX+xbhGz4RWh/wFR+D4n4B1gJKZiX9N0OjVSLUvH4tqbGUc2bc/q2TxM74g==","shasum":"84cb8013ae9f8c08f8ac9c81ad772d7e8e22633f","tarball":"https://registry.npmjs.org/@codespar/mcp-pagar-me/-/mcp-pagar-me-0.2.2.tgz","fileCount":7,"unpackedSize":64311,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCM5LFQyXPnnNBQzxPiIOHapoutjvnvXlj/HkDIo+YmSQIhAI9CCMaDPu3alnjleDxs7P3CE/CQPHgnV+8rh+Trl0Cq"}]},"_npmUser":{"name":"codespar-npm","email":"fabiano@codespar.dev"},"directories":{},"maintainers":[{"name":"codespar-npm","email":"fabiano@codespar.dev"},{"name":"dangazineu","email":"daniel.gazineu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-pagar-me_0.2.2_1782153914083_0.9681415536318825"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-31T02:15:03.753Z","modified":"2026-06-22T18:45:14.380Z","0.1.0":"2026-03-31T02:15:04.042Z","0.1.2":"2026-04-12T00:29:45.350Z","0.2.0":"2026-04-24T13:48:18.547Z","0.2.1":"2026-04-25T13:20:35.393Z","0.2.2":"2026-06-22T18:45:14.246Z"},"license":"MIT","keywords":["mcp","pagar-me","pagarme","payments","pix","brazil"],"description":"MCP server for Pagar.me — orders, charges, recipients, transfers, anticipations, plans, subscriptions, tokens, withdrawals, webhooks","maintainers":[{"name":"codespar-npm","email":"fabiano@codespar.dev"},{"name":"dangazineu","email":"daniel.gazineu@gmail.com"}],"readme":"# @codespar/mcp-pagar-me\n\n> MCP server for **Pagar.me** — Stone ecosystem payments with orders, charges, and split payments\n\n[![npm](https://img.shields.io/npm/v/@codespar/mcp-pagar-me)](https://www.npmjs.com/package/@codespar/mcp-pagar-me)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## Quick Start\n\n### Claude Desktop\n\nAdd to `~/.config/claude/claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"pagar-me\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@codespar/mcp-pagar-me\"],\n      \"env\": {\n        \"PAGARME_API_KEY\": \"sk_your-key\"\n      }\n    }\n  }\n}\n```\n\n### Claude Code\n\n```bash\nclaude mcp add pagar-me -- npx @codespar/mcp-pagar-me\n```\n\n### Cursor / VS Code\n\nAdd to `.cursor/mcp.json` or `.vscode/mcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"pagar-me\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@codespar/mcp-pagar-me\"],\n      \"env\": {\n        \"PAGARME_API_KEY\": \"sk_your-key\"\n      }\n    }\n  }\n}\n```\n\n## Tools (22)\n\n| Tool | Purpose |\n|---|---|\n| `create_order` | Create an order in Pagar.me with items and payment |\n| `get_order` | Get order details by ID |\n| `list_orders` | List orders with optional filters |\n| `create_charge` | Create a charge (Pix, boleto, or credit card) |\n| `get_charge` | Get charge details by ID |\n| `create_recipient` | Create a recipient for split payments |\n| `get_balance` | Get current account balance |\n| `create_transfer` | Create a transfer to a recipient |\n| `refund` | Refund a charge (full or partial) |\n| `list_recipients` | List recipients with optional filters |\n| `create_anticipation` | Request anticipation of receivables for a recipient (antecipação) |\n| `get_anticipation` | Get anticipation details by ID |\n| `get_anticipation_limits` | Get anticipation limits available for a recipient |\n| `create_plan` | Create a subscription plan |\n| `update_plan` | Update an existing subscription plan |\n| `create_subscription` | Create a recurring subscription for a customer |\n| `cancel_subscription` | Cancel a recurring subscription |\n| `create_card_token` | Tokenize a credit card (PCI-safe). |\n| `create_withdrawal` | Create a withdrawal (saque) transferring recipient balance to their registered bank account |\n| `register_webhook` | Register a webhook endpoint to receive event notifications |\n| `capture_charge` | Capture a pre-authorized charge (auth-then-capture flow). |\n| `partial_refund` | Refund a portion of a charge (explicit partial refund; |\n\n## Authentication\n\nPagar.me uses Basic Auth with the secret key (sk_xxx) as username and empty password.\n\n## Sandbox / Testing\n\nPagar.me provides test mode via the dashboard. Use a test-mode API key to avoid real charges.\n\n### Get your credentials\n\n1. Go to [Pagar.me Dashboard](https://dash.pagar.me)\n2. Create an account\n3. Get your secret key (sk_test_xxx for test mode)\n4. Set the `PAGARME_API_KEY` environment variable\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `PAGARME_API_KEY` | Yes | Secret key (sk_xxx) from Pagar.me dashboard |\n| `PAGARME_PUBLIC_KEY` | No | Public key (pk_xxx) for `create_card_token` only |\n\n## Roadmap\n\n### v0.3 (planned)\n- `list_charges` — List charges with filters\n- `list_subscriptions` — List subscriptions\n- `list_plans` — List plans\n- `batch_charges` — Create multiple charges in a single request\n- `list_webhooks` / `delete_webhook` — Full webhook management\n\nWant to contribute? [Open a PR](https://github.com/codespar/mcp-dev-latam) or [request a tool](https://github.com/codespar/mcp-dev-latam/issues).\n\n## Links\n\n- [Pagar.me Website](https://pagar.me)\n- [Pagar.me API Documentation](https://docs.pagar.me)\n- [MCP Dev LATAM](https://github.com/codespar/mcp-dev-latam)\n- [Landing Page](https://codespar.dev/mcp)\n\n## Enterprise\n\nNeed governance, budget limits, and audit trails for agent payments? [CodeSpar Enterprise](https://codespar.dev/enterprise) adds policy engine, payment routing, and compliance templates on top of these MCP servers.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}