MCP server

The MCP server connects Veriko to Cursor or to any other client compatible with the Model Context Protocol. From the assistant you can ask it to check a payment against the Banxico CEP, to tell you what became of an earlier validation or to download the receipt.

It exposes 73 of the 75 public M2M operations as tools. It leaves out the two purge operations (prepare and execute), because a permanent deletion cannot be undone. It adds three tools that wait for an asynchronous result: veriko_wait_for_validation, veriko_wait_for_cep_export and veriko_wait_for_beneficiary_import. That makes 76 tools in the all profile.

Installation

It requires Node.js 20 or later. The client starts the server with npx, without cloning anything:

npx -y @veriko-mx/mcp

In a client that accepts JSON configuration (Cursor and similar):

{
  "mcpServers": {
    "veriko_mcp": {
      "command": "npx",
      "args": ["-y", "@veriko-mx/mcp"],
      "env": { "VERIKO_API_KEY": "veriko_your_key" }
    }
  }
}

Create your API key in the Veriko console. The key is never a tool argument: the server reads it only from VERIKO_API_KEY, so text injected into a page the model is reading cannot ask for it. The tools that read public data (plans profile, Banxico status, bank catalog) work without a key.

Environment variables

VariableWhat it doesDefault
VERIKO_API_KEYIntegrator API keynone
VERIKO_MCP_PROFILEcore, all, one family or several separated by commascore
VERIKO_MCP_MAX_RISKHighest risk advertised: read, write or destructivewrite
VERIKO_BASE_URLAPI base URL (HTTPS; HTTP only for localhost)the production API
VERIKO_ACCEPT_LANGUAGELanguage of the API error text: en or esen

Profiles

The profile decides which families of tools the model sees. Advertising a tool spends context before the model calls anything, so the default profile is core and families are added when needed.

ProfileTools
coreValidate, validate an account, list, get, wait for and download a CEP, and the usage limits
validationsThe full validation lifecycle
webhooksEndpoints, deliveries and secrets
catalogBanks, SPEI calendar, BIN and Banxico status
beneficiariesListing and bulk import
usageConsumption, limits and export
accountProfile and retry policy
dashboardOperational summary
plansPublic plans
insightsAggregated metrics
financeSummaries, downloads and CEP exports
billingActive subscription
allAll 76 tools

Risk levels

Risk is controlled separately from the profile, with VERIKO_MCP_MAX_RISK:

  • read: queries and downloads only.
  • write (default): adds validations and ordinary changes.
  • destructive: adds deletions, cancellations, secret rotation and the confirmation of imports.

When the client declares the elicitation capability, the server asks for confirmation before the destructive operations. If the answer is no, nothing is sent to the API.

Transports

  • stdio (npx -y @veriko-mx/mcp): the client starts the server as a local process and the key is read from VERIKO_API_KEY.
  • Streamable HTTP: a stateless server that you run yourself, for example behind an HTTPS proxy. Each request carries the key in Authorization: Bearer and can narrow the profile and the risk with the X-Veriko-Profile and X-Veriko-Max-Risk headers, never above what the server allows. The instructions to run it and the security notes are in the repository.

What else it includes

  • Each tool declares an output schema and returns structured data besides the text.
  • Each write sends an Idempotency-Key. To retry safely, repeat the call with the same idempotency_key.
  • The wait tools poll until the resource reaches a final status or time runs out, and say when to ask again.
  • An error returns code, status and whether it can be retried, with the same stable code as the API. See Errors.
  • Six guided prompts cover the usual flows, such as checking a transfer or reconciling a month.

Repository

The code, the changelog and the security guide are in the MCP server repository.