Skip to main content
Glama
Portuguese Financial Regulation MCP

Portuguese Financial Regulation MCP

Portuguese Financial Regulation MCP

The Portuguese financial-regulation corpus is now served through the Ansvar Gateway. Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to https://gateway.ansvar.eu/mcp — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across dozens of audited jurisdictions (Europe + the US), and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart

Connect

Claude Code (one line):

claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp

Claude Desktop / Cursor — add to claude_desktop_config.json (or mcp.json):

{
  "mcpServers": {
    "ansvar": {
      "type": "url",
      "url": "https://gateway.ansvar.eu/mcp"
    }
  }
}

Claude.ai — Settings → Connectors → Add custom connector → paste https://gateway.ansvar.eu/mcp

First request opens an OAuth signup flow (setup details: ansvar.eu/docs/quickstart). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.


Self-host this MCP

You can also clone this repo and build the corpus yourself. The schema, fetcher, and tool implementations all live here. What is not in the repo is the pre-built database — TDM and standards-licensing constraints on the upstream sources mean we host the corpus on Ansvar infrastructure rather than redistribute it as a public artifact.

Build your own: run this repo's ingestion script (entry-point varies per repo — typically scripts/ingest.sh, npm run ingest, or make ingest; check the repo root).

Portuguese financial regulation data for AI compliance tools.

License CI

Query Portuguese financial regulation data -- regulations, decisions, and requirements from CMVM/Banco de Portugal -- directly from Claude, Cursor, or any MCP-compatible client.

Built by Ansvar Systems -- Stockholm, Sweden


Related MCP server: Portuguese Law MCP Server

Available Tools (6)

Tool

Description

pt_fin_search_regulations

Pesquisa de texto integral em regulamentos e instruções da CMVM, avisos do Banco de Portugal e normas regulamentares ...

pt_fin_get_regulation

Obtém uma disposição específica pelo sourcebook e referência. Accepts references like

pt_fin_list_sourcebooks

Lista todos os sourcebooks disponíveis com nomes e descrições. (List all available sourcebooks with names and descrip...

pt_fin_search_enforcement

Pesquisa de decisões de supervisão — coimas, suspensões de actividade e advertências públicas da CMVM, Banco de Portu...

pt_fin_check_currency

Verifica se uma referência específica está actualmente em vigor. (Check whether a specific provision reference is cur...

pt_fin_about

Return metadata about this MCP server: version, data source, tool list.

All tools return structured data with source references and timestamps.


Data Sources and Freshness

All content is sourced from official Portuguese regulatory publications:

  • CMVM/Banco de Portugal -- Official regulatory authority

Data Currency

  • Database updates are periodic and may lag official publications

  • Freshness checks run via GitHub Actions workflows

  • Last-updated timestamps in tool responses indicate data age

See sources.yml for full provenance metadata.


Security

This project uses multiple layers of automated security scanning:

Scanner

What It Does

Schedule

CodeQL

Static analysis for security vulnerabilities

Weekly + PRs

Semgrep

SAST scanning (OWASP top 10, secrets, TypeScript)

Every push

Gitleaks

Secret detection across git history

Every push

Trivy

CVE scanning on filesystem and npm dependencies

Daily

Docker Security

Container image scanning + SBOM generation

Daily

Socket.dev

Supply chain attack detection

PRs

Dependabot

Automated dependency updates

Weekly

See SECURITY.md for the full policy and vulnerability reporting.


Important Disclaimers

Not Regulatory Advice

THIS TOOL IS NOT REGULATORY OR LEGAL ADVICE

Regulatory data is sourced from official publications by CMVM/Banco de Portugal. However:

  • This is a research tool, not a substitute for professional regulatory counsel

  • Verify all references against primary sources before making compliance decisions

  • Coverage may be incomplete -- do not rely solely on this for regulatory research

Before using professionally, read: DISCLAIMER.md | PRIVACY.md

Confidentiality

Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See PRIVACY.md for details.


Development

Setup

git clone https://github.com/Ansvar-Systems/portuguese-financial-regulation-mcp
cd portuguese-financial-regulation-mcp
npm install
npm run build
npm test

Running Locally

npm run dev                                       # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js   # Test with MCP Inspector

Data Management

npm run build:db       # Rebuild SQLite database from seed data
npm run check-updates  # Check for new regulatory data

More Ansvar MCPs

Full fleet coverage at ansvar.eu/coverage.

Contributing

Contributions welcome! See CONTRIBUTING.md for guidelines.


License

Apache License 2.0. See LICENSE for details.

Data Licenses

Regulatory data sourced from official government publications. See sources.yml for per-source licensing details.


About Ansvar Systems

We build AI-powered compliance and legal research tools for the European market. Our MCP fleet provides structured, verified regulatory data to AI assistants -- so compliance professionals can work with accurate sources instead of guessing.

ansvar.eu -- Stockholm, Sweden


Available Tools

6 tools
pt_fin_aboutA

Return metadata about this MCP server: version, data source, tool list.

Inputs: no named parameters.

pt_fin_check_currencyB

Verifica se uma referência específica está actualmente em vigor. (Check whether a specific provision reference is currently in force.)

Inputs: reference (required).

pt_fin_get_regulationB

Obtém uma disposição específica pelo sourcebook e referência. Accepts references like 'CMVM_REGULAMENTOS REG.2007.02.A3' or 'BDP_AVISOS AV.2021.01.A1'.

Inputs: reference (required), sourcebook (required).

pt_fin_list_sourcebooksB

Lista todos os sourcebooks disponíveis com nomes e descrições. (List all available sourcebooks with names and descriptions.)

Inputs: no named parameters.

pt_fin_search_enforcementA

Pesquisa de decisões de supervisão — coimas, suspensões de actividade e advertências públicas da CMVM, Banco de Portugal e ASF. (Search enforcement decisions — fines, activity suspensions, and public warnings from CMVM, Banco de Portugal, and ASF.)

Inputs: query (required), limit, action_type.

pt_fin_search_regulationsB

Pesquisa de texto integral em regulamentos e instruções da CMVM, avisos do Banco de Portugal e normas regulamentares da ASF. (Full-text search across CMVM regulations, Banco de Portugal notices, and ASF regulatory norms.)

Inputs: query (required), limit, status, sourcebook.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a clearly distinct operation: listing sourcebooks, searching regulations, fetching a specific provision, searching enforcement decisions, checking currency status, and returning server metadata. The only nearby pair is get_regulation vs. check_currency, but their intents are distinct enough to avoid misselection.

    Naming Consistency4/5

    All tools share the pt_fin_ prefix and use consistent snake_case verb_noun naming, such as pt_fin_search_regulations and pt_fin_check_currency. The only minor deviation is pt_fin_about, which is a standard metadata tool and does not follow the verb_noun pattern.

    Tool Count5/5

    Six tools are well-scoped for a read-only regulatory search server. Each tool covers a distinct retrieval need and there is no obvious redundancy or bloat.

    Completeness4/5

    The surface covers the core regulatory research workflow: discover sourcebooks, search regulations, fetch specific provisions, search enforcement actions, and check whether a provision is in force. Minor gaps remain, such as browsing all provisions within a sourcebook or retrieving an enforcement decision by a dedicated reference, but these are not severe dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables verified retrieval of Brazilian primary legal sources — legislation, CVM and CMN/BCB norms, and case law — with reproducible evidence, checking whether a provision exists, whether a quoted passage is literal, which wording was in force on a given date, and whether the citations in a document resolve. Each result carries official URLs, capture timestamps and hashes, and the server abstains rather than asserting nonexistence when an official source cannot be reached.
      13
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to search and cite the exact text of over 1.2 million Brazilian legal norms, with official source links and revocation warnings, through MCP clients.
      4
      299 PyPI
      71
      MIT