# vatnode MCP server

> Enables AI agents to validate EU VAT numbers, check VAT rates, and verify country-specific tax formats.

- Repository: https://github.com/vatnode/vatnode-mcp
- Page: https://hostedmcp.org/servers/vatnode/vatnode-mcp
- Transport: stdio
- Stars: 2
- License: MIT
- Latest version: 1.3.0

## Install

### Claude Code

```sh
claude mcp add --env 'VATNODE_API_KEY=<YOUR_VATNODE_API_KEY>' vatnode-mcp -- npx -y vatnode-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "vatnode-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vatnode-mcp"
      ],
      "env": {
        "VATNODE_API_KEY": "<YOUR_VATNODE_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "vatnode-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "vatnode-mcp"
      ],
      "env": {
        "VATNODE_API_KEY": "<YOUR_VATNODE_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"vatnode-mcp","type":"stdio","command":"npx","args":["-y","vatnode-mcp"],"env":{"VATNODE_API_KEY":"<YOUR_VATNODE_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "vatnode-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vatnode-mcp"
      ],
      "env": {
        "VATNODE_API_KEY": "<YOUR_VATNODE_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add vatnode-mcp --env 'VATNODE_API_KEY=<YOUR_VATNODE_API_KEY>' -- npx -y vatnode-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.vatnode-mcp]
command = "npx"
args = ["-y", "vatnode-mcp"]

[mcp_servers.vatnode-mcp.env]
VATNODE_API_KEY = "<YOUR_VATNODE_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'VATNODE_API_KEY=<YOUR_VATNODE_API_KEY>' vatnode-mcp npx -- -y vatnode-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "vatnode-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "vatnode-mcp"
      ],
      "env": {
        "VATNODE_API_KEY": "<YOUR_VATNODE_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `VATNODE_API_KEY` | no | yes | vatnode API key (free tier available at https://vatnode.dev). Required only for the validate_vat_number tool — the four other tools (rates, format checks, country list) work offline without a key. |
| `VATNODE_API_URL` | no | no | Override the vatnode API base URL (for self-hosting or staging environments). Defaults to https://api.vatnode.dev. |

## Tools (5)

- `get_country_vat_rates`
- `list_eu_vat_rates`
- `check_vat_format`
- `list_supported_countries`
- `validate_vat_number`

## FAQ

### Do I need an API key to check VAT rates?

No, VAT rates and format checks for 45 European countries are free and work offline without an account.

### What does the live VIES validation tool provide?

It returns the validity of the VAT number, the company name, address, registration date, and the VIES consultation number if configured.

### How can I use this server with Claude Desktop?

Add the server configuration to your claude_desktop_config.json file using npx and provide your VATNODE_API_KEY in the environment variables.
