Back to Guides

VIES VAT MCP Server — Validate EU VAT Numbers with AI Agents

Validate EU VAT numbers from any AI agent via MCP. Use the built-in VIES adapter in AnythingMCP — free, no API key, B2B invoice ready.

Pre-built adapter available on AnythingMCP Cloud

Skip the self-hosted setup — install this adapter in one click with a free trial. No credit card required.

Install on Cloud — Free Trial

Validate EU VAT Numbers with AI Agents

The European Commission's VIES (VAT Information Exchange System) is the official source for confirming that an EU VAT number is registered for intra-Community trade. Connecting VIES to MCP lets your AI agents pre-flight every B2B invoice — automatically catching invalid VAT IDs before they cause compliance issues with the Finanzamt or any other EU tax authority.

Quick Setup with Built-in Adapter

AnythingMCP ships with a pre-configured VIES adapter. The endpoint is public and requires no API key.

Step 1: Deploy AnythingMCP

git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d

Step 2: Import the VIES Adapter

Open the AnythingMCP dashboard at http://localhost:3000/connectors/store and click Import on the VIES VAT Validation adapter. There are no credentials to enter — the EU endpoint is public.

Step 3: Connect to Your AI Agent

{
  "mcpServers": {
    "vies": {
      "url": "http://localhost:4000/mcp"
    }
  }
}

Available Tools

| Tool | Description | |------|-------------| | vies_check_vat | Validate one EU VAT number, return registered name + address when the member state exposes them |

AI Agent Use Cases

  • "Check if VAT number IT12345678901 is valid"
  • "Validate this customer's VAT before issuing the reverse-charge invoice"
  • "Look up the registered name for DE123456789"
  • "Run a batch validation on these 20 VAT numbers from the order export"

Notes for B2B Compliance

  • Some member states (DE, ES) do not return name/address for privacy reasons. Only the valid: true/false flag is authoritative there.
  • VIES is rate-limited per source IP. For high-volume validation, queue requests with a backoff.
  • Country codes are ISO 3166-1 alpha-2, plus EL for Greece and XI for Northern Ireland.

Next Steps