Skip to main content
Glama

Siigo MCP Server

Unofficial MCP server for Siigo invoicing software (Colombian electronic invoicing) created by @dsfaccini.

Disclaimers: This is an independent project and is not affiliated with Siigo. The project is at early stages so extensive testing is recommended before production use. The MCP server doesn't include any custom logic beyond calling the documented Siigo API endpoints.

Security Warning: This MCP server gives AI direct access to Siigo API endpoints. By default, only read-only tools are enabled. See Safety Modes before enabling write operations.

Quick Start

{
  "mcpServers": {
    "siigo": {
      "command": "uvx",
      "args": ["siigo-mcp"],
      "env": {
        "SIIGO_USERNAME": "your-email@example.com",
        "SIIGO_ACCESS_KEY": "your-access-key",
        "SIIGO_PARTNER_ID": "your-partner-id"
      }
    }
  }
}

Or run directly:

uvx siigo-mcp

Related MCP server: invoiceninja-mcp

Installation

uvx siigo-mcp

Option 2: pip/uv install

uv tool install siigo-mcp
# or
pip install siigo-mcp

Option 3: From source

git clone https://github.com/dsfaccini/siigo-mcp.git
cd siigo-mcp
uv sync
uv run siigo-mcp

Prerequisites

  • uv package manager

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Configuration

Environment Variables

Variable

Required

Description

SIIGO_USERNAME

Yes

Siigo account email

SIIGO_ACCESS_KEY

Yes

Siigo API access key

SIIGO_PARTNER_ID

Yes

Siigo partner ID

SIIGO_MODE

No

Tool mode: read_only (default), standard, full

SIIGO_LAZY_TOOLS

No

Set to true for token-optimized lazy loading

DRY_RUN

No

Set to true to mock write operations

LOGFIRE_TOKEN

No

Pydantic Logfire token for observability

Safety Modes (SIIGO_MODE)

Mode

Tools Available

Use Case

read_only

19 tools: list_*, get_* only

Safe exploration, testing

standard

30 tools: Read + create/update/delete

Normal usage (no DIAN)

full

33 tools: All including DIAN operations

Production with caution

Dangerous tools (only in full mode):

  • stamp_invoice - Sends invoice to DIAN (legally binding)

  • annul_invoice - Cancels official documents

  • send_invoice_email - Sends emails to customers

Lazy Tools Mode (SIIGO_LAZY_TOOLS)

For smaller context models or cost optimization, enable lazy loading:

Mode

Tokens

Description

Default

~5,600

All 33 tools loaded upfront

Lazy (true)

~300

Only 3 discovery tools

In lazy mode, LLM uses these meta-tools:

  • list_siigo_tools(category?) - Discover available tools

  • get_tool_schema(tool_name) - Get full parameter schema

  • call_siigo_tool(tool_name, params) - Execute any tool dynamically

{
  "env": {
    "SIIGO_LAZY_TOOLS": "true"
  }
}

MCP Client Setup

Claude Desktop

Config location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "siigo": {
      "command": "uvx",
      "args": ["siigo-mcp"],
      "env": {
        "SIIGO_USERNAME": "your-email@example.com",
        "SIIGO_ACCESS_KEY": "your-access-key",
        "SIIGO_PARTNER_ID": "your-partner-id"
      }
    }
  }
}

Claude Code

Add to ~/.claude.json or .mcp.json in your project:

{
  "mcpServers": {
    "siigo": {
      "type": "stdio",
      "command": "uvx",
      "args": ["siigo-mcp"],
      "env": {
        "SIIGO_USERNAME": "${SIIGO_USERNAME}",
        "SIIGO_ACCESS_KEY": "${SIIGO_ACCESS_KEY}",
        "SIIGO_PARTNER_ID": "${SIIGO_PARTNER_ID}"
      }
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json or .cursor/mcp.json in your project:

{
  "mcpServers": {
    "siigo": {
      "type": "stdio",
      "command": "uvx",
      "args": ["siigo-mcp"],
      "env": {
        "SIIGO_USERNAME": "${env:SIIGO_USERNAME}",
        "SIIGO_ACCESS_KEY": "${env:SIIGO_ACCESS_KEY}",
        "SIIGO_PARTNER_ID": "${env:SIIGO_PARTNER_ID}"
      }
    }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "siigo": {
      "command": "uvx",
      "args": ["siigo-mcp"],
      "env": {
        "SIIGO_USERNAME": "${env:SIIGO_USERNAME}",
        "SIIGO_ACCESS_KEY": "${env:SIIGO_ACCESS_KEY}",
        "SIIGO_PARTNER_ID": "${env:SIIGO_PARTNER_ID}"
      }
    }
  }
}

Available Tools

Read-Only (Safe)

Reference Data:

  • get_taxes - Tax configurations

  • get_payment_types - Payment methods

  • get_document_types - Document types (FV, NC, etc.)

  • get_warehouses - Warehouse locations

  • get_users - System users

  • get_account_groups - Account classifications

Customers:

  • list_customers - List with pagination/filters

  • get_customer - Get by ID

Products:

  • list_products - List with pagination/filters

  • get_product - Get by ID

Invoices:

  • list_invoices - List with pagination/filters

  • get_invoice - Get by ID

  • get_invoice_pdf - Download PDF

  • get_stamp_errors - DIAN rejection errors

Credit Notes:

  • list_credit_notes - List with pagination/filters

  • get_credit_note - Get by ID

  • get_credit_note_pdf - Download PDF

Journals:

  • list_journals - List with pagination/filters

  • get_journal - Get by ID

Write Operations (standard mode)

  • create_customer, update_customer, delete_customer

  • create_product, update_product, delete_product

  • create_invoice, update_invoice, delete_invoice

  • create_credit_note

  • create_journal

Dangerous (full mode only)

  • stamp_invoice - Send to DIAN for electronic stamping

  • annul_invoice - Annul/cancel an invoice

  • send_invoice_email - Email invoice to customer

Development

Running Tests

# Tests that don't require credentials
uv run pytest tests/test_unit.py -v

# Tests with real credentials (read-only)
uv run pytest tests/test_reference.py -v

# All tests with dry-run mode
DRY_RUN=true uv run pytest tests/ -v

Dry-Run Mode

Set DRY_RUN=true to mock all write operations:

DRY_RUN=true uvx siigo-mcp

In dry-run mode:

  • GET requests work normally (real API)

  • POST/PUT/DELETE return mock responses without executing

Security Considerations

  1. No human-in-the-loop at MCP layer - This server executes tool calls directly. Guardrails must be implemented in your application layer.

  2. Start with read_only mode - Default mode only exposes read operations. Explicitly set SIIGO_MODE=full only when you understand the risks.

  3. Credentials in config files - MCP configs store credentials. Use environment variable references (${SIIGO_USERNAME}) where supported.

  4. Production use - Consider using standard mode for most use cases. Only enable full mode when DIAN operations are explicitly needed.

HTTP Mode (Railway Deployment)

For multi-tenant hosting, set MCP_TRANSPORT=http:

MCP_TRANSPORT=http PORT=8000 uvx siigo-mcp

In HTTP mode, credentials are passed per-request via headers:

  • X-Siigo-Username

  • X-Siigo-Access-Key

  • X-Siigo-Partner-Id

License

MIT

Available Tools

19 tools
get_account_groupsB

Get all account groups/classifications.

Returns a list of account groups for categorizing products or customers.

Inputs: no named parameters. Returns: result

get_credit_noteB

Get a credit note by ID.

Args: credit_note_id: The credit note's GUID

Returns the full credit note details.

Inputs: credit_note_id (required). Returns: object

get_credit_note_pdfA

Download a credit note as PDF.

Args: credit_note_id: The credit note's GUID

Returns the PDF content as base64-encoded string. Decode with base64.b64decode() to get binary PDF.

Inputs: credit_note_id (required). Returns: result

get_customerB

Get a customer by ID.

Args: customer_id: The customer's GUID

Returns the full customer details including contacts and addresses.

Inputs: customer_id (required). Returns: object

get_document_typesA

Get all configured document types.

Args: document_type: Optional filter by type (FV=invoice, NC=credit note, etc.)

Returns a list of document types configured in the account. Common types: FV (factura), NC (nota crédito), RC (recibo de caja).

Inputs: document_type. Returns: result

get_invoiceB

Get an invoice by ID.

Args: invoice_id: The invoice's GUID

Returns the full invoice details including items, taxes, and payments.

Inputs: invoice_id (required). Returns: object

get_invoice_pdfA

Download an invoice as PDF.

Args: invoice_id: The invoice's GUID

Returns the PDF content as base64-encoded string. Decode with base64.b64decode() to get binary PDF.

Inputs: invoice_id (required). Returns: result

get_journalB

Get a journal entry by ID.

Args: journal_id: The journal's GUID

Returns the full journal entry details including all line items.

Inputs: journal_id (required). Returns: object

get_payment_typesA

Get all configured payment types/methods.

Returns a list of payment types (cash, credit card, bank transfer, etc.) Use these payment type IDs when creating invoices or cash receipts.

Inputs: no named parameters. Returns: result

get_productB

Get a product by ID.

Args: product_id: The product's GUID

Returns the full product details including prices and taxes.

Inputs: product_id (required). Returns: object

get_stamp_errorsA

Get DIAN rejection errors for an invoice.

Args: invoice_id: The invoice's GUID

Returns any errors from DIAN if the stamp was rejected. Use this to understand why an invoice failed DIAN validation.

Inputs: invoice_id (required). Returns: object

get_taxesA

Get all configured taxes in the Siigo account.

Returns a list of taxes with their IDs, names, and percentages. Use these tax IDs when creating invoices or products.

Inputs: no named parameters. Returns: result

get_usersB

Get all users in the Siigo account.

Returns a list of users who can be assigned as sellers or responsible parties.

Inputs: no named parameters. Returns: result

get_warehousesA

Get all configured warehouses/locations.

Returns a list of warehouses for inventory management. Use warehouse IDs when creating products or invoices with inventory.

Inputs: no named parameters. Returns: result

list_credit_notesA

List credit notes with pagination and optional filters.

Args: page: Page number (starts at 1) page_size: Number of results per page (max 100) date_start: Filter by start date (YYYY-MM-DD format) date_end: Filter by end date (YYYY-MM-DD format)

Returns paginated list of credit notes with navigation links.

Inputs: page, page_size, date_start, date_end. Returns: object

list_customersA

List customers with pagination and optional filters.

Args: page: Page number (starts at 1) page_size: Number of results per page (max 100) name: Filter by customer name (partial match) identification: Filter by identification number (NIT/cédula)

Returns paginated list of customers with navigation links.

Inputs: page, page_size, name, identification. Returns: object

list_invoicesA

List invoices with pagination and optional filters.

Args: page: Page number (starts at 1) page_size: Number of results per page (max 100) date_start: Filter by start date (YYYY-MM-DD format) date_end: Filter by end date (YYYY-MM-DD format) customer_name: Filter by customer name (partial match)

Returns paginated list of invoices with navigation links.

Inputs: page, page_size, date_start, date_end, +1 more. Returns: object

list_journalsA

List journal entries (accounting vouchers) with pagination.

Args: page: Page number (starts at 1) page_size: Number of results per page (max 100) date_start: Filter by start date (YYYY-MM-DD format) date_end: Filter by end date (YYYY-MM-DD format)

Returns paginated list of journal entries with navigation links.

Inputs: page, page_size, date_start, date_end. Returns: object

list_productsA

List products with pagination and optional filters.

Args: page: Page number (starts at 1) page_size: Number of results per page (max 100) code: Filter by product code (partial match) name: Filter by product name (partial match)

Returns paginated list of products with navigation links.

Inputs: page, page_size, code, name. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 19 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose targeting specific resources and actions, with no overlap or ambiguity. For example, get_invoice retrieves details while get_invoice_pdf downloads the PDF, and list_invoices provides paginated listings, each serving a unique function within the accounting domain.

    Naming Consistency5/5

    Tool names follow a highly consistent verb_noun pattern throughout, using 'get_' for single-item retrieval, 'list_' for paginated listings, and specific nouns like 'invoice', 'customer', or 'product'. This uniformity makes the tool set predictable and easy to navigate for an agent.

    Tool Count5/5

    With 19 tools, the server is well-scoped for its accounting and invoicing domain, covering key entities like invoices, customers, products, and credit notes. Each tool earns its place by providing necessary operations such as retrieval, listing, and PDF generation, without being excessive or sparse.

    Completeness4/5

    The tool set offers strong coverage for retrieval and listing operations across core accounting entities, but lacks create, update, or delete tools, which are essential for full CRUD workflows. Agents can read data effectively but cannot modify it, representing a minor gap in lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Open-source MCP server for Chile's SII free invoicing system, enabling AI agents to query issued and received tax documents.
      12
      6
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP server for Invoice Ninja v5 API. Enables AI assistants to manage clients, invoices, quotes, payments, and time tracking through natural language.
      32
      20 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A Model Context Protocol (MCP) server that provides full integration with the Siigo API, enabling access to Colombian accounting software features including products, customers, invoices, quotations, purchases, credit notes, vouchers, payment receipts, journals, webhooks, and more.
      44
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for SRI electronic invoicing in Ecuador, enabling AI agents to emit invoices, credit notes, retention documents, and more via natural language through the Cobra API.
      MIT