How to Use the Mastercard MCP in Cursor
Give Cursor Agent access to the Mastercard MCP Server to test payment logic, pull BIN data, and build fraud features without mock data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Mastercard MCP to Cursor
Create your Vinkius account to connect Mastercard 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.
Build payment flows with real Mastercard data
The `validate_account` tool pings the Mastercard gateway to confirm if a card number is active. When you ask Cursor to build an onboarding flow, the Agent can actually test the validation logic against a live endpoint instead of writing stubbed responses. It returns the exact JSON schema, including the VALID or INVALID status and the issuer details. If you are building a routing engine that depends on card types, `bin_lookup` pulls the exact bank name, currency, and product flags from the first six digits. Cursor uses this live response to write accurate TypeScript interfaces and error handling logic for your specific use case.
Inject live merchant coordinates into your code
The `search_places` tool returns merchant locations, complete with Apple Pay and Google Pay acceptance flags, based on GPS coordinates. You tell Cursor Agent to populate a map component, and it calls the tool to grab real businesses within a specific kilometer radius. It drops the actual latitude and longitude data straight into your state management code. If your application groups businesses by industry, the Agent can call `merchant_industry_codes` to pull the top-level hierarchy. It then uses `merchant_category_codes` to map specific 4-digit IDs to those industries, generating the exact lookup tables your database needs.
Test fraud reporting logic via this MCP Server
The `submit_fraud_report` tool sends confirmed fraud data to the network using specific ISO 4217 currency codes and two-digit fraud types. Cursor Agent can execute this tool to verify your request signing and payload structure before you deploy. You pass the transaction ID and amount, and the Agent confirms if the API accepts the format. This eliminates the guesswork of building compliance integrations. Instead of reading the API docs and hoping you got the date format right, the Agent runs the tool, catches any validation errors from the server, and rewrites your function until the payload succeeds.
Set up Mastercard 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 Mastercard 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 Mastercard transactions." If the MCP tools are loaded correctly, Cursor will call the Mastercard tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"mastercard-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 Mastercard. 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 Mastercard MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mastercard MCP today
We host it, we monitor it, we maintain it. You just paste one token.