Skip to main content

MCP server for querying Banxico CEP (Comprobante Electrónico de Pago)

Project description

banxico-cep-mcp

MCP server for querying Banxico CEP (Comprobante Electrónico de Pago) to verify Mexican bank payment records.

Installation

pip install banxico-cep-mcp

Requires Python >= 3.10.

Usage

Configure in your MCP client

{
  "mcpServers": {
    "banxico-cep": {
      "command": "banxico-cep-mcp"
    }
  }
}

Run directly

banxico-cep-mcp

Tool

cep_query

Query a single CEP record from Banxico.

Parameter Required Description
fecha Yes Payment date in DD-MM-YYYY format (e.g. 15-12-2025)
criterio Yes CEP reference/certificate number (e.g. 3843CP04202512154771098591)
emisor Yes Issuer bank code (e.g. 40072)
receptor Yes Receiver bank code (e.g. 40012)
monto Yes Amount in MXN (e.g. 140)
cuenta No Account number

Response

{
  "status": "liquidado",
  "raw_length": 12345,
  "query": {
    "fecha": "15-12-2025",
    "criterio": "3843CP04202512154771098591",
    "monto": "140",
    "emisor": "40072",
    "receptor": "40012"
  }
}

Possible statuses:

  • liquidado — payment verified
  • captcha_error — captcha triggered, rate limit likely exceeded
  • rate_limited — max queries exceeded, session reset automatically
  • unknown — unexpected response
  • error — request failed, see message field

Rate limiting

Built-in rate limiter: ~4 queries per 15-second window. Uses curl-cffi to spoof browser TLS fingerprints, reducing the chance of being flagged by Banxico's WAF.

Development

pip install -e .
banxico-cep-mcp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

banxico_cep_mcp-1.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

banxico_cep_mcp-1.0.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file banxico_cep_mcp-1.0.3.tar.gz.

File metadata

  • Download URL: banxico_cep_mcp-1.0.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for banxico_cep_mcp-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f3de3ea1c4dcc2b548e6cd50c09f0138c18c0927c8a897b8613ce4b20601877f
MD5 4c2b0e911977a26fa260c9e986e8c389
BLAKE2b-256 a0c05c1e918b9b6eda3abf2284ab49be54fccab0de24e334c31d41fe8ca29c6d

See more details on using hashes here.

File details

Details for the file banxico_cep_mcp-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for banxico_cep_mcp-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76b92ed05c842ab0fc2ac1569ba8b14d152b141569d3b73744bb41f619927e5e
MD5 fc492c7e05290eaf352a950a6213c8e8
BLAKE2b-256 7a151c52fc1bbf4df82fea5ac588bc5a5c6e33e3e774c89f82f7434b82a8d450

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page