Skip to main content
Glama
marcelogdomingues

mcp-portugal

mcp-portugal

A Model Context Protocol (MCP) server for Portuguese public data. Give any MCP-capable AI assistant (Claude Desktop, Claude Code, Cursor, …) reliable, deterministic tools to validate a NIF, an IBAN, a postal code, and to look up national holidays — no API keys, runs locally over stdio.

🌍 English · Português · 📚 Documentation

CI npm License: MIT MCP

Tools

Tool

Description

validate_nif

Validate a NIF (check digit) and classify the taxpayer type.

validate_iban

Validate an IBAN (ISO 7064 mod-97); flags PT IBANs.

validate_postal_code

Validate a CP7 postal code (NNNN-NNN).

list_holidays

National holidays for a year, including movable (Easter-based).

is_holiday

Whether a given YYYY-MM-DD is a national holiday.

Related MCP server: brasil-mcp-essentials

Use with Claude Desktop / Claude Code

Add to your MCP config (e.g. claude_desktop_config.json, or .mcp.json for Claude Code):

{
  "mcpServers": {
    "portugal": {
      "command": "npx",
      "args": ["-y", "mcp-portugal"]
    }
  }
}

Then ask: "Is 123456789 a valid NIF, and what type?" or "List the Portuguese holidays in 2026."

Run locally

npm install
npm start          # runs the stdio server (tsx)
npm test           # unit + stdio integration tests
npm run build      # tsc -> dist/

To test it by hand with the MCP Inspector:

npx @modelcontextprotocol/inspector npx -y mcp-portugal

Roadmap

  • Postal-code → locality lookup (CTT open data)

  • ATCUD / invoice QR-code composition (via pt-fiscal)

  • IBAN → bank name resolution

Contributions welcome — see CONTRIBUTING.md.

License

MIT © Marcelo Domingues

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    MCP server for Portuguese Parliament open data, enabling AI agents to access legislative initiatives, deputies, plenary votes, petitions, and parliamentary committees.
    Last updated
    12
    43
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    MCP server for accessing BPstat (Banco de Portugal) statistics API without API keys. Enables querying Portuguese central bank data through natural language.
    Last updated
    26
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for live, sourced Brazilian public data from the official IBGE APIs.

  • dados.gov.pt MCP — Portugal's national open data portal.

  • # MCP DadosBR Servidor MCP focado em dados públicos do Brasil. Oferece duas ferramentas simples e…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marcelogdomingues/mcp-portugal'

If you have feedback or need assistance with the MCP directory API, please join our Discord server