How to Use the Klarna MCP in Cursor
Write payment code and test Klarna order states in real-time with Cursor Agent mode.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Klarna MCP to Cursor
Create your Vinkius account to connect Klarna 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.
Generate checkout code with live Cursor context
The `create_payment_session` tool pulls real session data into your Cursor editor via this MCP Server to help you write accurate frontend integration code. Instead of guessing the JSON structure of a session response, your editor gets the live Klarna payload directly from the gateway. You write your React or Vue checkout components while Cursor uses `get_payment_session` to verify that your UI components map correctly to active Klarna session properties. This eliminates Klarna mock data mismatch bugs before you commit your Cursor code.
Test order captures with this MCP Server
The `create_klarna_order` tool converts an authorized session token into a formal transaction right from your Cursor coding interface. Your Cursor agent runs this tool to simulate successful Klarna checkouts and verify your database write-backs. Once the order is created, you use `capture_klarna_order` in Cursor to test your fulfillment webhook handlers under realistic conditions. You watch your local server logs respond to the Klarna capture event as the Cursor agent triggers it.
Debug refund flows and shipping updates
The `refund_klarna_order` tool lets you debug your payment return logic by executing live test refunds directly from the Cursor editor sidebar. Cursor feeds the resulting Klarna payload into your unit tests to verify that your database registers the correct negative balance. If you need to test address corrections, `update_order_shipping` updates the merchant reference on the Klarna order. You then call `get_order_details` in Cursor via the MCP integration to verify that your local shipping service syncs perfectly with the gateway's state.
Set up Klarna 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 Klarna 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 Klarna transactions." If the MCP tools are loaded correctly, Cursor will call the Klarna tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"klarna-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 Klarna. 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 Klarna MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Klarna MCP today
We host it, we monitor it, we maintain it. You just paste one token.