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 Distribution
banxico_cep_mcp-1.0.4.tar.gz
(4.7 kB
view details)
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.4.tar.gz.
File metadata
- Download URL: banxico_cep_mcp-1.0.4.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4094919c40b14f35d2700e12856e87c9a9fa68c5eb9ac9cd8acd0e3fecbfe32
|
|
| MD5 |
0d3c8ea949d36be14f412239f7a1435a
|
|
| BLAKE2b-256 |
c9456854f2c5a6e40ee044ae9fb78e660db5e0544a15458c45d06ed7ae21d360
|
File details
Details for the file banxico_cep_mcp-1.0.4-py3-none-any.whl.
File metadata
- Download URL: banxico_cep_mcp-1.0.4-py3-none-any.whl
- Upload date:
- Size: 5.4 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 |
6996e04d0f626a63b6a9a92d8370f62c8ff00d87ab2b0f8f959be7e8cca8e131
|
|
| MD5 |
5dd2a384d5a4c1dd155a812bba2d3494
|
|
| BLAKE2b-256 |
d514780f16de86986de7c209afcd3c225db6e6d70f7fa52949f2b2e7b5ae3a4a
|