validate_card

Pack: creditcard · Endpoint: https://gateway.pipeworx.io/creditcard/mcp

Validate a credit/debit card number (keyless, offline): Luhn (mod-10) checksum, detected card network (Visa/Mastercard/Amex/Discover/JCB/Diners/UnionPay/Maestro), and whether the length is valid for that network. Spaces/dashes are ignored. NOTE: this checks the number is well-formed — it does NOT verify the card is real/active/funded (that needs a payment processor).

Parameters

NameTypeRequiredDescription
numberstringyesThe card number, e.g. “4111 1111 1111 1111”.

Example call

Arguments

{
  "number": "4111 1111 1111 1111"
}

curl

curl -X POST https://gateway.pipeworx.io/creditcard/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"validate_card","arguments":{"number":"4111 1111 1111 1111"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('validate_card', {
  "number": "4111 1111 1111 1111"
});

More examples

{
  "number": "5500005555555559"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "creditcard": {
      "url": "https://gateway.pipeworx.io/creditcard/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 15, 2026