Skip to main content
An MCP server lets AI agents (Claude Code, Cursor, Codex, OpenCode…) issue Colombian DIAN electronic invoices through Cufea. It is a thin client of the public API, with the same API keys, stages and tenant isolation as any other client. It drives the sandbox only: Cufea’s simulated DIAN, with no legal effect.

Remote server

https://mcp.cufea.com/co serves the tools over MCP Streamable HTTP. Nothing to install: each request is authenticated by its own Authorization: Bearer <key> header and must carry a cufea_sandbox_ key from the developer console; there is no OAuth flow. Replace cufea_sandbox_... with your key (or export it as CUFEA_API_KEY where the snippet reads it).
The remote server answers 401 (with WWW-Authenticate: Bearer) when the header is missing and 403 with sandbox_only for a key that is not a cufea_sandbox_ key; it has no production switch. It keeps no session: every request builds a fresh server for its key.

Tools

Each tool has an input schema whose descriptions explain the DIAN fields (NIT and check digit, DANE city and department codes, tax schemes, payment forms…), and returns structured content. Creates drop the answer’s xml_base64; cufea_download_xml serves the XML. cufea_create_invoice, cufea_send_invoice, cufea_create_note, cufea_send_note, cufea_create_event and cufea_create_webhook_endpoint take an optional idempotency_key: the same key and body replays the first answer instead of acting twice. Give creates a reference too, so cufea_find_document can tell whether a document whose answer was lost exists.

Errors

A failed call is an MCP tool error (isError: true) whose text is JSON:
code is the API’s stable problem code (see Errors), or one of the server’s own: sandbox_only, connection_error, timeout, wait_timeout, invalid_arguments, internal_error. Stack traces and the API key never appear.

Documentation MCP

This documentation site also serves a search MCP server at https://docs.cufea.com/mcp, so an agent can search these pages. Use it next to the Cufea MCP server: one reads the docs, the other calls the API.