• VALID
  • INVALID
  • DUPLICATE
  • MANUAL

How to validate CPF and CNPJ lists with your AI

Connect this MCP to your AI client to audit large datasets. Your agent handles the math and the deduplication for you.

Ask AI about this page

Short answer

How can I use my AI to check CPF and CNPJ lists?

Your agent uses the validate_batch tool to run checksums on every ID in your list and flags any duplicates. You'll get a clean breakdown of which numbers are valid, which are fake, and which are repeats.

The results.

Where every issue lands.

The AI sorts your data into these four categories based on the validation results.

VALID

Clean identifiers

The AI confirms these pass the checksum algorithm. You get a list of verified, usable IDs.

INVALID

Mathematical errors

The AI identifies numbers that fail the digit validation. These are mathematically impossible IDs.

DUPLICATE

Repeated entries

The AI catches any ID that appears more than once in your batch. This keeps your dataset unique.

MANUAL

Human review needed

The AI flags edge cases that require a person to look at the source data. You decide how to handle these.

The workflow

What your AI does when the list arrives.

The AI processes the raw data through a specific sequence of checks.

  1. Ingest data

    Your agent reads the raw list of numbers from your provided file or text block.

    validate_batch
  2. Run checksums

    The AI applies the official CPF and CNPJ algorithms to every single entry to check for mathematical validity.

    validate_batch
  3. Identify repeats

    The agent scans the entire batch to find any identical numbers that shouldn't be there.

    validate_batch
  4. Categorize results

    The AI organizes the findings into a structured report of valid, invalid, and duplicate entries.

    validate_batch

Try it

Copy these to start.

Use these prompts to trigger the validation process.

Starting points

Replace the bracketed text with your actual file names or data sources.

CPF/CNPJ Batch Processor Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_lFNyu8UlZFkhP0wRgSvyc2AGW6mslkNnLO6XUQ8S/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — CPF/CNPJ Batch Processor capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cpfcnpj-batch-processor-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_lFNyu8UlZFkhP0wRgSvyc2AGW6mslkNnLO6XUQ8S/mcp"
    }
  }
}
Copy into chat04
  • Validate the CPF numbers in my spreadsheet named 'customers_2024.csv'.

  • Check this list of CNPJs for duplicates and mathematical errors: [paste list here]

  • Run a batch validation on the identifiers found in my 'leads.txt' file.

  • Audit the CNPJ column in my current project file and tell me which ones are invalid.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect CPF/CNPJ Batch Processor once, then ask.

Just click the link to connect the MCP to your client. Your credentials stay encrypted, and you can start asking questions immediately.

Connect CPF/CNPJ Batch Processor to your AI

FAQ

How this task behaves.

  • 01

    Does the AI check if the CPF belongs to a real person?

    No. The AI only checks if the number is mathematically valid according to the checksum algorithm. It does not query government databases.

  • 02

    Can the AI fix an invalid CPF for me?

    No. The AI only identifies which numbers are invalid. You must provide the correct data yourself.

  • 03

    Will it delete duplicates from my original file?

    No. The AI only reports which entries are duplicates. It does not modify your source files.

  • 04

    Can I upload a CSV file for this?

    Yes. You can point your AI to any file your client can read, like a CSV or text file, and it will process the identifiers within.

  • 05

    Does it work for both CPF and CNPJ?

    Yes. The tool is designed to handle both types of Brazilian identifiers in the same batch.

  • More questions about CPF/CNPJ Batch Processor? The Connector page answers them. See everything the CPF/CNPJ Batch Processor Connector can do

Connect CPF/CNPJ Batch Processor to Claude, Cursor, ChatGPT & more