# Payment Identifier Validator AI Agent Connect

> Payment Identifier Validator MCP provides native checksum validation for the financial codes your agents handle most often. It verifies card numbers via Luhn, IBANs via mod-97, GS1 barcodes, and BIC/SWIFT codes using official international standards. Everything is computed locally at the edge, meaning no external API calls or sensitive data leaks.

## Overview
- **Category:** finance
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_9kHGkmyBKTz2gLiFAbRCUXzWeyHezzCGgnsXGspk/ai-agent-connect
- **Tags:** iban, card-validation, luhn, bic, swift, gtin, ean, barcode, mod97, keyless, checksum, validation

## Description

Your AI client shouldn't be guessing if a bank account number or a credit card is real. When an agent handles payments, inventory, or compliance, a single hallucinated digit can break a workflow or cause a failed transaction. This MCP fixes that by providing a ground truth for financial identifiers. It uses the actual international checksum algorithms—Luhn, mod-97, GS1, and ISO 9362—to verify data instantly. Because the math happens natively, you don't need to manage API keys or worry about sending sensitive data to a third-party service. You pass the identifier to your agent, and it gets a definitive verdict. Whether you are checking a customer's IBAN against a registry of 89 countries or verifying a GS1 barcode for a shipment, the results are deterministic and immediate.

## Tools

### validate_card_number
Validates payment card numbers using the Luhn algorithm and identifies the card brand. It returns the cleaned number, length, and brand, along with specific error details if the number is invalid.

### validate_iban
Checks IBAN account numbers using mod-97 logic and verifies the country structure against a registry of 89 countries. It returns the country, expected length, SEPA status, and a validity verdict.

### list_iban_countries
Provides a registry of all 89 IBAN-supported countries. Use this to check a country's specific IBAN length and structure before attempting to validate a code.

### validate_gtin
Verifies the check digit for GS1 barcodes including EAN-8, UPC-A, EAN-13, and GTIN-14. It returns the detected format and compares the provided check digit against the computed one.

### generate_check_digit
Computes the correct GS1 check digit for a given base number. This allows your agent to build valid EAN, UPC, or GTIN codes instead of guessing them.

### validate_bic
Parses and validates BIC/SWIFT codes according to ISO 9362. It checks the bank code, country, location, and branch, rejecting any unknown country codes.

## Prompt Examples

**Prompt:** 
```
Is this card number valid and which brand is it? 4556 7375 8689 9855
```

**Response:** 
```
I validated the card with validate_card_number. 4556 7375 8689 9855 passes the Luhn checksum and is a 16-digit Visa, so it is valid.
```

**Prompt:** 
```
Is PT50 0002 0123 1234 5678 9015 4 a valid IBAN?
```

**Response:** 
```
I checked it with validate_iban. It is a 25-character Portuguese IBAN in the SEPA zone; the mod-97 check digits pass, so it is valid.
```

**Prompt:** 
```
Check the check digit of 5901234123457 and generate a GTIN-14 for the base 1234567890123.
```

**Response:** 
```
validate_gtin confirms 5901234123457 is a valid EAN-13 with check digit 7. generate_check_digit on 1234567890123 with gtin14 returns the full code 12345678901231.
```

## Capabilities

### Luhn Checksum Validation
Your agent uses this to confirm credit card numbers are structurally correct and identify the issuer.

### IBAN Structure Verification
Your agent uses this to validate international bank account numbers against a 89-country registry.

### GS1 Barcode Computation
Your agent uses this to verify or generate check digits for EAN, UPC, and GTIN barcodes.

### BIC/SWIFT Parsing
Your agent uses this to ensure bank identifiers follow ISO 9362 standards.

### Edge-Based Computation
Your agent uses this to perform all math locally without making external API calls.

## Use Cases

### Payment Processing
An agent checks a user's card number and IBAN to ensure they are valid before attempting a transaction.

### Inventory Management
An agent validates product barcodes to ensure they match GS1 standards during warehouse scanning.

### Banking Compliance
An agent verifies that a customer's BIC and IBAN are structurally sound for international transfers.

### Data Cleaning
An agent strips spaces and dashes from messy input to provide clean, validated financial data.

## Benefits

- Eliminates hallucinations of financial identifiers.
- Protects privacy by computing checksums locally without external API calls.
- Uses official international standards like ISO and GS1.
- Provides specific error reasons when a code is invalid.

## How It Works

Get your agent running with validated data in three steps.

1. Connect to the MCP via Vinkius.
2. Pass a raw identifier like a card number or IBAN to your agent.
3. The MCP runs the specific checksum algorithm locally.
4. Your agent receives a clear verdict and the cleaned data.

## Frequently Asked Questions

**Do I need an API key to use this?**
No. This MCP is keyless and requires no OAuth or external service setup.

**Is my sensitive financial data sent to an external server?**
No. All checksum calculations are performed natively at the edge, meaning no data leaves the local environment.

**Which card brands are supported?**
The tool detects Visa, Mastercard, American Express, Diners Club, Discover, JCB, UnionPay, and Maestro.

**How many countries are in the IBAN registry?**
The registry includes 89 countries with verified IBAN lengths and structures.

**Can this MCP generate barcodes?**
It can compute the correct GS1 check digit for EAN-8, UPC-A, EAN-13, and GTIN-14 bases.

**Does the Payment Identifier Validator require an API key?**
No. Every checksum — Luhn for cards, mod-97 for IBAN, GS1 for barcodes, ISO 9362 for BIC — is computed natively in the edge with pure TypeScript. There is no API key, no OAuth and no external service; every tool runs with no credential.

**Which card brands are detected?**
validate_card_number detects Visa, Mastercard (including the 2-series range), American Express, Diners Club, Discover, JCB, UnionPay and Maestro by ISO/IEC 7812 prefix ranges, and runs the Luhn checksum.

**How reliable is the IBAN country registry?**
list_iban_countries returns 89 countries with their IBAN length and a real example IBAN, all verified against the official IBAN structure register. validate_iban checks the country's exact length and the mod-97 check digits, so an IBAN with the wrong length or check digits is rejected.

**What does validate_bic accept?**
An 8- or 11-character BIC: a 4-letter bank code, a 2-letter country code (must be a valid ISO country), a 2-character location code, and an optional 3-character branch. For example DEUTDEFF (Deutsche Bank, Frankfurt) or DEUTDEFF500 (branch 500).
