Inyo

Payments Gateway MCP

The Payments Gateway MCP server exposes Inyo's Gateway APIs as AI-ready tools. It handles OAuth authentication automatically, caching and refreshing tokens as needed.

Package: @inyo-global/gateway-mcp

Install

Choose your client to get started:

Cursor

Install in Cursor

or configure manually

Add to your Cursor MCP configuration at ~/.cursor/mcp.json:

{
  "mcpServers": {
    "inyo-gateway": {
      "command": "npx",
      "args": ["-y", "@inyo-global/gateway-mcp@latest"],
      "env": {
        "GATEWAY_BASE_URL": "your-gateway-url",
        "GATEWAY_CLIENT_ID": "your-client-id",
        "GATEWAY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Or go to Settings → MCP Servers in Cursor and add the configuration there.

VS Code

Install in VS Code

or configure manually

Add to .vscode/mcp.json in your project root:

{
  "mcpServers": {
    "inyo-gateway": {
      "command": "npx",
      "args": ["-y", "@inyo-global/gateway-mcp@latest"],
      "env": {
        "GATEWAY_BASE_URL": "your-gateway-url",
        "GATEWAY_CLIENT_ID": "your-client-id",
        "GATEWAY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Windsurf

Add to your Windsurf MCP configuration at ~/.windsurf/mcp.json:

{
  "mcpServers": {
    "inyo-gateway": {
      "command": "npx",
      "args": ["-y", "@inyo-global/gateway-mcp@latest"],
      "env": {
        "GATEWAY_BASE_URL": "your-gateway-url",
        "GATEWAY_CLIENT_ID": "your-client-id",
        "GATEWAY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Claude Desktop

Add to your Claude Desktop configuration:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "inyo-gateway": {
      "command": "npx",
      "args": ["-y", "@inyo-global/gateway-mcp@latest"],
      "env": {
        "GATEWAY_BASE_URL": "your-gateway-url",
        "GATEWAY_CLIENT_ID": "your-client-id",
        "GATEWAY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Restart Claude Desktop after saving the configuration.

Claude Code (CLI)

Run the following command to add the MCP server:

claude mcp add inyo-gateway \
  -e GATEWAY_BASE_URL=your-gateway-url \
  -e GATEWAY_CLIENT_ID=your-client-id \
  -e GATEWAY_CLIENT_SECRET=your-client-secret \
  -- npx -y @inyo-global/gateway-mcp@latest

Or add to .mcp.json in your project root (or ~/.claude/mcp.json globally):

{
  "mcpServers": {
    "inyo-gateway": {
      "command": "npx",
      "args": ["-y", "@inyo-global/gateway-mcp@latest"],
      "env": {
        "GATEWAY_BASE_URL": "your-gateway-url",
        "GATEWAY_CLIENT_ID": "your-client-id",
        "GATEWAY_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Environment Variables

VariableDescription
GATEWAY_BASE_URLGateway API endpoint URL
GATEWAY_CLIENT_IDOAuth client identifier
GATEWAY_CLIENT_SECRETOAuth client secret

Contact your Inyo account representative to obtain your credentials. For sandbox testing, use your sandbox environment URL and credentials.

Available Tools

Payment Operations

ToolDescription
create-paymentCreate a new payment (PULL, PUSH, PULLPUSH, or CHECK)
capture-paymentCapture a previously authorized payment
void-paymentVoid a payment before settlement
refund-paymentRefund a settled payment

Account Verification

ToolDescription
check-card-accountVerify card account details (ANI check)
check-bank-accountVerify bank account details

Read Operations

ToolDescription
authenticateManually trigger OAuth authentication
get-paymentRetrieve payment details by ID

Additional Services

ToolDescription
create-fxGenerate a foreign exchange quote
create-plaid-linkCreate a Plaid Link token for bank account linking
get-plaid-linkRetrieve Plaid Link session details

Payment Types

The create-payment tool supports multiple payment types:

TypeDescription
PULLPull funds from a payment source (card charge, ACH debit)
PUSHPush funds to a recipient (OCT, payout)
PULLPUSHPull and push in a single operation
CHECKAccount verification without charging

Supported Payment Methods

  • Cards — Visa, Mastercard, credit and debit
  • Bank accounts — ACH direct debit
  • PIX — Brazilian instant payments
  • Digital wallets — Where supported

Authentication

The MCP server handles OAuth token management automatically:

  1. On the first tool call, the server authenticates using your client credentials
  2. The access token is cached in memory
  3. Tokens are refreshed automatically 60 seconds before expiration
  4. No manual token management required

Example Usage

Once configured, you can interact with the Gateway through natural language in your AI assistant:

  • "Create a $50 card payment using token tk_abc123"
  • "Check the status of payment pay_xyz789"
  • "Refund payment pay_xyz789 for $25"
  • "Void the authorization on payment pay_abc456"
  • "Verify this card account: 4111111111111111"

The AI assistant translates your request into the appropriate tool call, executes it against the Gateway API, and returns the structured response.