How to Use the Afterpay MCP in Cursor
Inject live Afterpay payment data and build refund logic directly into your code with Cursor's agent.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Afterpay MCP to Cursor
Create your Vinkius account to connect Afterpay to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Code with Real Afterpay Data
Stop working with stale, mocked-up payment data. Tell the Cursor agent to fetch a specific order with `get_payment_details` or a list of recent transactions with `list_payments`. It will drop the actual JSON response right into your editor. Now you're building functions with the exact data structure you'll get in production. This means less guesswork and fewer bugs when you deploy. It’s a massive improvement over hardcoding examples.
Draft Payment Logic in Cursor
You can generate working code for your checkout and refund flows. Ask the Cursor agent to write a function that initiates a payment session. It will call `create_checkout` and scaffold the code to handle the response token. The same goes for refunds. Describe the logic you need, and the agent uses the `refund_payment` tool to build a function that correctly processes a full or partial refund against an order. This gets your core payment logic written much faster.
Test Against Your Live Afterpay Config
Write your validation logic against your actual account settings. Before you even commit, you can have the Cursor agent use `get_afterpay_config` to get your real minimum and maximum order limits from Afterpay. This lets you build and test your input validation with the correct boundaries. You can be confident your code will reject out-of-range orders from the start, because you tested against the live configuration, not a guess.
Set up Afterpay MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Afterpay MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Afterpay transactions." If the MCP tools are loaded correctly, Cursor will call the Afterpay tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"afterpay-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Afterpay. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Afterpay MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Afterpay MCP today
We host it, we monitor it, we maintain it. You just paste one token.