sii-mcp

v0.23.1
@albertomarturelo/sii-mcp Checked 7 hours ago Published 10 days ago

MCP (stdio) server for Chile's SII (tax authority): exposes authenticated reads — RCV, F29, F22, boletas de honorarios, DTE-authorized, peticiones…

Requires Node ≥ 20. (The sii CLI is handy for the first sii auth login; the login can also run through the auth_login tool.) Two things live only here: the www2 session (auth_login with www2, which opens SII's OAuth page, where reCAPTCHA runs) and the Carpeta Tributaria tools that need it (carpeta_instituciones). auth_status also reports when the CLI's unattended login is blocked after a rejected Clave (loginBlocked); the MCP shows it and never lifts it. The MCP is not the way to run this unattended: no tool receives the Clave, by design.

Summary extracted from the README.

@albertomarturelo/sii-mcp

MCP (Model Context Protocol) server — over stdio — that exposes Chile's SII (Servicio de Impuestos Internos) to Claude Desktop and Claude Code. Authenticated reads — RCV, F22, F29, boletas de honorarios (BHE), DTE-authorized (public), peticiones administrativas, bienes raíces, whoami — as readOnly tools, plus destructive, confirm-gated writes: BHE emit (bte_emit) and F29 submit (f29_submit: SII's propuesta, or a month sin movimiento with sinMovimiento). A thin surface over @albertomarturelo/sii-core; all the guardrails live in the core, and no tool ever receives your password (login delegates to a browser flow — ADR-006).

⚠️ Unofficial. Not affiliated with or endorsed by the SII. Provided "as is" (MIT, no warranty). You are responsible for the SII's terms of service and Chilean law.

Install

npm i -g @albertomarturelo/sii-mcp @albertomarturelo/sii-cli
# the browser login needs Chromium once (~100–150 MB):
npx playwright install chromium

Requires Node ≥ 20. (The sii CLI is handy for the first sii auth login; the login can also run through the auth_login tool.)

Two things live only here: the www2 session (auth_login with www2, which opens SII's OAuth page, where reCAPTCHA runs) and the Carpeta Tributaria tools that need it (carpeta_instituciones). auth_status also reports when the CLI's unattended login is blocked after a rejected Clave (loginBlocked); the MCP shows it and never lifts it.

The MCP is not the way to run this unattended: no tool receives the Clave, by design. For a bot, cron or CI, use the CLI with --clave-env (see the project README).

Connect to Claude

Claude Desktop — add to claude_desktop_config.json and restart the app (macOS: ~/Library/Application Support/Claude/; Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "sii": { "command": "sii-mcp" }
  }
}

Claude Code:

claude mcp add sii -- sii-mcp

Then ask in natural language — e.g. «muéstrame el RCV de compras de 2026-05» or «¿tengo peticiones administrativas detenidas?». Read tools change nothing; issuing a BHE (bte_emit) or filing the F29 (f29_submit) requires an explicit confirmation + amount echo.

Tools, resources, prompts, and the identity model are documented in the project README.

License

MIT © Alberto Marturelo Lorenzo.