MCP server for querying Banxico CEP (Comprobante Electrónico de Pago)
Project description
banxico-cep-mcp
查询 Banxico CEP(墨西哥央行电子支付凭证)的 MCP 服务端,用于验证墨西哥银行间转账支付记录。
安装
pip install banxico-cep-mcp
需要 Python >= 3.10。
使用方式
在 MCP 客户端中配置
{
"mcpServers": {
"banxico-cep": {
"command": "banxico-cep-mcp"
}
}
}
直接运行
banxico-cep-mcp
工具说明
cep_query — CEP 支付凭证查询
查询 Banxico 的单条 CEP 记录,验证支付是否已完成清算。
| 参数 | 是否必填 | 说明 |
|---|---|---|
fecha |
是 | 支付日期,格式 DD-MM-YYYY(如 15-12-2025) |
criterio |
是 | CEP 参考号/凭证编号(如 3843CP04202512154771098591) |
emisor |
是 | 付款方银行代码(如 40072) |
receptor |
是 | 收款方银行代码(如 40012) |
monto |
是 | 金额(墨西哥比索 MXN,如 140) |
cuenta |
否 | 账户号 |
返回结果
{
"status": "liquidado",
"raw_length": 12345,
"query": {
"fecha": "15-12-2025",
"criterio": "3843CP04202512154771098591",
"monto": "140",
"emisor": "40072",
"receptor": "40012"
}
}
返回状态说明:
liquidado— 支付已清算(验证通过)captcha_error— 触发验证码拦截(通常为查询频率过高)rate_limited— 查询次数超限,会话已自动重置unknown— 未识别的响应内容error— 请求失败,详见message字段
频率限制
内置限频器:约每 15 秒 4 次查询。使用 curl-cffi 伪装浏览器 TLS 指纹,降低被 Banxico WAF 拦截的概率。
开发调试
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file banxico_cep_mcp-1.0.7-py3-none-any.whl.
File metadata
- Download URL: banxico_cep_mcp-1.0.7-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e624419e6d517cd8733de0be99902234278f22edc57aabbfa486f71bc3285f2
|
|
| MD5 |
e2d217ba98c0bf24e6902d8a10a05ecc
|
|
| BLAKE2b-256 |
3bbafa41802281709d467d8895edd6e0c0d9d896ade0cd5aa0629a00e0506eba
|