marqeta-mcp

marqeta/marqeta-mcp

3.2

If you are the rightful owner of marqeta-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The MCP Server Runtime provides a pre-built server for interacting with Marqeta APIs, generated from OpenAPI specifications.

Tools
6
Resources
0
Prompts
0

MCP Server Runtime

This directory contains a pre-built MCP (Model Context Protocol) server ready to interact with Marqeta APIs. The server was generated from OpenAPI specifications and includes all necessary tools and validation.

How to use marqeta-mcp server

mcp.json Configuration

{
  "mcpServers": {
    "marqeta": {
      "command": "npx",
      "args": ["-y", "@marqeta/marqeta-mcp"],
      "env": {
        "MARQETA_API_URL": "your-api-url.marqeta.com",
        "MARQETA_USERNAME": "your-username",
        "MARQETA_PASSWORD": "your-password",
        "MARQETA_PROGRAM_SHORT_CODE": "your-program-code" // not required for public sandbox
      }
    }
  }
}

⚠️ For production use:

  1. Start with MARQETA_SCOPE=read and only remove when write access is needed
  2. Enable human confirmation for all operations in your MCP client
  3. Use dedicated service accounts with minimal required permissions
  4. Never share production credentials across environments

🔧 Environment Variables

Required

  • MARQETA_API_URL - Base URL for Marqeta API (e.g., sandbox-api.marqeta.io)
  • MARQETA_USERNAME - API username
  • MARQETA_PASSWORD - API password
  • MARQETA_PROGRAM_SHORT_CODE - Program identifier (adds X-Program-Short-Code header). Skip if you are using Marqeta's public sandbox

Optional

  • MARQETA_SERVICE - Comma-separated list of services to load (e.g., users,transactions,disputes,cardtransitions)
  • MARQETA_SCOPE - Filter tools by scope: read (GET only) or all (default: all)

Available Tools

The MCP server provides 33 tools across 7 service categories. User service and scope filters to load tools targeted for specific operation. Tools are categorized by:

  • Service: The API domain (users, cards, transactions, etc.)
  • Scope: Read (GET operations) or Write (POST/PUT/DELETE operations)

Tool Summary

ServiceRead ToolsWrite ToolsTotal
Card Products202
Card Transitions213
Cards538
Disputes112
Transactions404
Users707
Velocity Control437
Total25833

Card Products Tools

Tool NameScopeDescription
cardproducts_getCardproductsReadLists all card products
cardproducts_getCardproductsbyTokenReadReturns a specific card product

Card Transitions Tools

Tool NameScopeDescription
cardtransitions_getCardtransitionsbyCardTokenReadLists all card transitions states
cardtransitions_getCardtransitionsbyTokenReadReturns a card transition object
cardtransitions_postCardtransitionsWriteCreates a card transition object to update existing card state to activate, suspend or terminate

Cards Tools

Tool NameScopeDescription
cards_getCardsReadLists cards by the last 4 digits
cards_getCardsbyBarcodeReadReturns a card's metadata
cards_getCardsbyTokenReadReturns a specific card
cards_getCardsbyTokenandShowpanReadReturns a specific card - PAN visible
cards_getCardsbyUserTokenReadLists all cards for a specific user
cards_postCardsWriteCreates a card
cards_postCardsbyPanWriteReturns user and card tokens for the specified PAN
cards_putCardsTokenWriteUpdates a specific card

Disputes Tools

Tool NameScopeDescription
disputes_listCasesReadList dispute cases with filtering options
disputes_createCaseWriteCreate a new fraud dispute case

Transactions Tools

Tool NameScopeDescription
transactions_getTransactionsReadList transactions
transactions_getTransactionsbyFundingsourcetokenReadList transactions for a specific funding source
transactions_getTransactionsbyTokenReadRetrieve transaction
transactions_getRelatedTransactionsbyTokenReadList all transactions related to the specified transaction

Users Tools

Tool NameScopeDescription
users_getUsersReadList users
users_getUsersAuthbyClientAccessTokenReadRetrieve application and card information using a client access token
users_getChildrenUsersbyParenttokenReadList user child accounts of a parent user or business
users_getUsersbyPhonenumberReadLists all users who match a phone number
users_getUsersbyTokenReadRetrieve user
users_getUsersNotesbyTokenReadLists cardholder notes
users_getUsersSSNbyTokenReadRetrieve user identification number

Velocity Control Tools

Tool NameScopeDescription
velocitycontrol_getVelocitycontrolsReadRetrieves a list of all the velocity controls associated with a specific user or card product
velocitycontrol_getVelocitycontrolsbyAccountTokenReadRetrieve velocity control available balances for an account token
velocitycontrol_getVelocitycontrolsbyTokenReadReturns a specific velocity control
velocitycontrol_getVelocitycontrolsbyUserTokenReadRetrieves a list of the available balances of the velocity controls associated with a user
velocitycontrol_deleteVelocitycontrolsTokenWriteSets a specific velocity control to inactive to soft delete it
velocitycontrol_postVelocitycontrolsWriteCreate velocity control to set limits how much and how frequently a user can spend funds
velocitycontrol_putVelocitycontrolsbyTokenWriteUpdates a specific velocity control

Filtering Tools

You can filter available tools using environment variables:

# Load only read operations (GET methods)
export MARQETA_SCOPE=read

# Load only specific services
export MARQETA_SERVICE=users,cards,transactions,cardtransitions

⚠️ Important Security and Safety Notes

Use Write Operations with Caution

  • Write tools can modify production data
  • Enable confirmation for write operations - Always require explicit confirmation before executing write tools
  • Test in sandbox first - Always validate your workflows in Marqeta's sandbox environment before using production credentials
  • Review operations carefully - Double-check all parameters and operations before execution

Security Best Practices

  • Store credentials securely - Never commit API credentials to version control or expose them in logs
  • Beware of prompt injection - AI assistants can be manipulated through crafted inputs
  • Limit scope when possible - Use MARQETA_SCOPE=read to disable write operations when they're not needed

📚 More Information


Generated with MCP Server Generator