Credit card number validator

Use a test number to check its Luhn checksum and card network. Change the last digit in the example to see a failed check.

Input

No key required

Result

Example

Valid

{
  "valid": true,
  "reason": null,
  "length": 16,
  "checkDigit": 2,
  "brand": "visa"
}

Run with curl

Copy this command to run the request in your terminal. It updates as you edit the input.

For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".

GET /v1/validate/luhn
curl 'https://api.kamineko.dev/v1/validate/luhn?value=4242%204242%204242%204242'

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the validate_luhn tool with this prompt.

Does 4242 4242 4242 4242 pass the Luhn check?
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"