About mcp-conekta
mcp-conekta is an MCP server for Conekta, a Mexican payment gateway supporting cards, OXXO cash payments and SPEI bank transfers. It suits developers who want agents to manage orders, customers and payments.
Key features
- 01Order creation, lookup, update and cancellation
- 02Customer and payment source management
- 03Charge creation and pre-authorized capture
- 04Refund processing
- 05Webhook event retrieval and endpoint management
Use cases
- 01Letting an agent create orders and charges for Mexican customers
- 02Checking order and charge status and issuing refunds
- 03Tracking payment status changes through webhook events
MCP support
This project is an MCP server that exposes 21 tools to MCP clients for calling the Conekta API to handle orders, customers, charges and webhooks.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @codespar/mcp-conektaCONEKTA_API_KEYSecretAPI key for ConektaLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
21Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| charges | array | No | Charges for the order |
| currency | string | Yes | Currency code (e.g. MXN) |
| line_items | array | Yes | Order line items |
| customer_info | object | Yes | Customer information |
| customer_info.name | string | Yes | Customer name |
| customer_info.email | string | Yes | Customer email |
| customer_info.phone | string | Yes | Customer phone |
Details
From the project README@codespar/mcp-conekta
MCP server for Conekta, the leading Mexican payment gateway supporting cards, OXXO cash payments, and SPEI bank transfers
Quick Start
# Set your API key
export CONEKTA_API_KEY="key_..."
# Run via stdio
npx -y @codespar/mcp-conekta
# Run via HTTP
MCP_HTTP=true MCP_PORT=3000 npx -y @codespar/mcp-conekta
Environment Variables
| Variable | Required | Description |
|---|---|---|
CONEKTA_API_KEY | Yes | API key from Conekta dashboard |
MCP_HTTP | No | Set to "true" to enable HTTP transport |
MCP_PORT | No | HTTP port (default: 3000) |
Tools (21)
| Tool | Purpose |
|---|---|
create_order | Create a new order |
get_order | Get order details by ID |
list_orders | List orders with filters |
create_customer | Create a customer |
get_customer | Get customer by ID |
list_customers | List customers |
create_charge | Create a charge for an existing order |
refund_charge | Refund a charge |
list_payment_sources | List payment sources for a customer |
get_webhook_events | List webhook events (Conekta Events) |
get_webhook_event | Retrieve a single webhook event by ID |
update_customer | Update a customer |
delete_customer | Delete a customer |
create_payment_source | Create a payment source (card token) for a customer |
delete_payment_source | Delete a payment source from a customer |
update_order | Update an order (line_items, metadata, etc.) |
cancel_order | Cancel an order |
capture_charge | Capture a pre-authorized order (pre_authorized → paid) |
create_webhook | Create a webhook endpoint |
update_webhook | Update a webhook endpoint |
delete_webhook | Delete a webhook endpoint |
Auth
Uses Basic authentication with API key as username and empty password. API version v2.2.0 is set via the Accept header. Obtain your API key from the Conekta Dashboard.
API Reference
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
Authentication
Set these environment variables before launching the server:
CONEKTA_API_KEY(required, secret) — API key for Conekta
Issue credentials at the provider's developer portal: https://developers.conekta.com.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.