Frihet MCP is the official MCP server for Frihet ERP, used to connect AI assistants to the Frihet enterprise management system. Users can use natural language to create invoices, query expenses, and manage business data such as customers, products, quotes, banking, CRM, HR/payroll, and POS.
Purpose The server is aimed at AI-native operations for enterprise management, allowing AI assistants to directly create, query, or modify business records in Frihet from an IDE or chat client. The official description states that it covers AI-driven invoicing, tax and e-invoicing compliance (VeriFactu, TicketBAI, Facturae), banking, CRM, HR/payroll, and POS.
Main capabilities The catalog contains 156 canonical operations, plus 5 tax aliases and 10 prompts. The full local configuration provides 161 tool names, 11 resources, and 10 prompts; the hosted grouped configuration provides 164 tool names, 7 resources, and 10 prompts; the OpenAI review configuration provides 33 tool names, 0 resources, and 0 prompts. Catalog membership does not guarantee that the corresponding backend API is enabled for every workspace.
Operation categories include: CRM contacts (3), CRM activities (2), intelligence (4), e-invoicing (10), time tracking (6), recurring invoices (8), team management (4), Gestoria accountants (5), white-label portal domains (3), self-service onboarding and VIES (2), IGIC Canary Islands indirect tax (4), corporate tax (2), bank classification rules (2), Spanish tax models (7), vacation rentals/accommodation (5), POS point of sale (4), kitchen/restaurant (6), HR human resources (9), permissions (2), period closing (3). Onboarding-related tools were withdrawn via #124 because the Frihet-ERP /v1/onboarding/* series does not exist in the current version.
Usage Two transport methods are supported: local stdio using npx @frihet/mcp-server with FRIHET_API_KEY set; remote Streamable HTTP using https://mcp.frihet.io/mcp,支持 Bearer token or OAuth 2.0+PKCE. The remote endpoint is hosted on Cloudflare Workers and requires no local dependencies.
Installation methods include: Claude Code plugin (installs both the business management skill and the MCP server; the skill invocation is /frihet-erp:frihet-mcp, and the bundled .mcp.json starts @frihet/mcp-server via npx); Claude Code one-command; Codex CLI one-command (Codex configuration is TOML, so you must use codex mcp add and cannot paste JSON directly); Claude Desktop, Cursor, Windsurf, and Cline use the same JSON configuration, with only the file paths differing.
Getting an API key: log in to app.frihet.io, go to Settings > API, click Create API key, and copy the key starting with fri_ (shown only once).
Demo mode You can try it without registration or an API key. In demo mode, the server returns results from realistic sample data (Spanish invoices with IVA/IGIC, expenses, customers, products, bank accounts, etc.), all records use demo_ prefixed IDs, and a DEMO MODE banner is printed at startup. No data is persisted and no network calls are made. Writes are simulated, and tax actions (e-invoicing, VeriFactu, TicketBAI, FACe, payroll) return clearly labeled simulated results and are never actually submitted to any tax authority.
Contract rules The official description emphasizes three rules: locate before acting, use get_business_context and the frihet://tax/rates resource to determine the correct tax treatment, and do not recall Spanish tax rates from memory; draft, show, stop, create_invoice, create_quote, and create_credit_note default to status=draft, do not generate tax numbers, do not generate hashes, and do not send anything to tax authorities; show the draft and return control to the user; human authority cannot be assumed on their behalf, and any tool with a non-empty externalSideEffects will reach customer inboxes, webhooks, funds, or AEAT/VeriFactu/TicketBAI/FACe, some tools also require confirm=true; this flag records a human decision and must never be set to satisfy one's own plans.
Resources and prompts The local package provides 11 resources: 7 static reference resources plus 4 API-backed account resources. The hosted Worker provides only 7 static resources. The OpenAI review host provides 0 resources. Static resources are reference data and do not call the API; dynamic resources are live account data.
Tool exposure modes FRIHET_TOOL_MODE can select the tool exposure method. In grouped mode, operation names, input schemas, and handlers remain unchanged; discovery proceeds through three meta-tools: list_tool_groups() returns a domain map (invoicing, expenses, finance/tax & compliance, banking, CRM, HR/payroll, lodging/PMS, POS, intelligence, products, platform) along with a one-line introduction and tool count for each domain; search_tools(query) performs free-text search across tool names, titles, summaries, and groups, returning matching tools with their group, summary, read-only flag, and input fields, with optional group filtering and limit; describe_tool(name) returns the complete raw description and input fields of a single tool on demand. Grouped exposure changes description density, not operational behavior.
Capability and side-effect truthfulness On the full MCP surface, each tools/list entry contains _meta["io.frihet/capability"]: registered means the name and handler exist in the current server build; callability is api_dependent (the handler calls the API; deployment, workspace enablement, and authorization still determine the outcome), runtime_checked (the handler explicitly distinguishes a missing backend from empty data), deferred, unavailable, or local, and never unconditionally claims to be "available"; writesFrihet, externalInteraction, and externalSideEffects distinguish state changes from calls to external entities/providers; MCP action annotations remain the standard source for read-only, destructive, idempotent, and open-world hints.
The ChatGPT/OpenAI host is a separately reviewed surface: exactly 33 business operations, with complete descriptions, 0 discovery meta-tools, 0 prompts, 0 resources. Its 17 read and 16 writes are deliberately narrowed, and all writes require the literal confirm=true. Ten writes can deliver complete business events to active endpoints previously configured by the workspace owner; webhook management itself remains excluded. Direct email delivery, legacy monthly summaries, raw invoice PDFs, invoice lifecycle transitions, updating existing quotes, regulated filings, deleting customer parent records, deleting expenses with linked files, deleting products, and deleting suppliers are also excluded. This surface must not be inferred from the full catalog.
Claude Code Skill In addition to the raw MCP tools, the repository also includes a Claude Code skill that adds business context: Spanish tax rules, workflow recipes, financial reports, and natural language commands. The skill understands IVA rates, IRPF withholding, Modelo 303 preparation, expense deductibility rules, and VeriFactu compliance.
Use cases Suitable for business users who need to operate Frihet ERP in natural language within an AI assistant, including invoicing, expense management, customer and product management, banking, CRM, HR/payroll, POS, and more. Supports Claude, ChatGPT, Cursor, Windsurf, Cline, Antigravity, Codex, Copilot, Gemini CLI, and any MCP-compatible client.
Limitations OCR or file upload is not supported; MCP handles structured data, not images or PDFs. To digitize paper invoices or receipts, the data must first be extracted (e.g., Claude Vision API, a dedicated OCR service, or manual entry), and then MCP can be used to create records. File upload or attachment handling is not supported, and no image processing is supported. Single company: one API key maps to one Frihet workspace. A Frihet account is required: an active account at app.frihet.io and an API key starting with fri_ are required. Rate limits are handled automatically; on 429, retry with exponential backoff.
License MIT, see LICENSE for details. Built by Frihet.