Ts Anaf banner
florin-szilagyi florin-szilagyi

Ts Anaf

Development community

Description

TypeScript SDK, CLI, and MCP server for Romania's [ANAF e-Factura](https://www.anaf.ro/anaf/internet/ANAF/despre_ANAF/informatii_publice/media/e_factura) system.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

ts-anaf

TypeScript SDK, CLI, and MCP server for Romania's [ANAF e-Factura](https://www.anaf.ro/anaf/internet/ANAF/despre_ANAF/informatii_publice/media/e_factura) system.

Upload invoices, check statuses, download responses, validate XML, generate UBL, and look up company data — from code, the command line, or directly from an AI agent.

Packages

Package Description Install
**@florinszilagyi/anaf-ts-sdk** TypeScript SDK — OAuth, upload, status, download, UBL builder, company lookup pnpm add @florinszilagyi/anaf-ts-sdk
**@florinszilagyi/anaf-cli** Command-line tool — wraps the SDK with context management and JSON output npm i -g @florinszilagyi/anaf-cli
**@florinszilagyi/anaf-mcp** MCP server — exposes all SDK operations as tools for AI agents (Claude, etc.) npx @florinszilagyi/anaf-mcp

Agentic flows (Claude Code / Claude Desktop)

The MCP server lets an AI agent handle the full e-Factura workflow on your behalf — authenticate, build UBL invoices, validate, upload, poll status, and download — without writing any code.

Install via Claude Code plugin marketplace

/plugin marketplace add florin-szilagyi/ts-anaf
/plugin install anaf-mcp@ts-anaf   # MCP server + skills
/plugin install anaf-cli@ts-anaf   # CLI skills (manifest mode, scripting)

You need an OAuth application registered in the ANAF portal — see the [official registration guide](https://static.anaf.ro/static/10/Anaf/Informatii_R/API/Oauth_procedura_inregistrare_aplicatii_portal_ANAF.pdf).

After install, set your ANAF OAuth credentials in the MCP server env (via `/mcp` settings):

{
  "ANAF_CLIENT_ID": "your-client-id",
  "ANAF_CLIENT_SECRET": "your-client-secret",
  "ANAF_REDIRECT_URI": "https://localhost:9002/callback",
  "ANAF_ENV": "prod"
}

**Test vs Production:** Set `ANAF_ENV` to `"test"` to use the ANAF sandbox — no real invoices are submitted. Switch to