The Frihet MCP Server connects AI assistants to the Frihet ERP/business management platform, enabling natural language control over business operations through 31 tools across 6 categories:
Invoicing: Create, list, search, update, and delete invoices with line items, tax rates, due dates, and status tracking
Expenses: Record, categorize, update, and delete business expenses with tax-deductibility tracking
Clients: Maintain a client database with contact info, tax IDs (NIF/CIF), and addresses
Products & Services: Manage a reusable catalog with pricing, SKU, units, and default tax rates for faster invoice/quote creation
Quotes: Create, track, update, and delete quotes/estimates with line items and expiry dates
Webhooks: Configure event-driven notifications for business events like
invoice.paidorexpense.created
Additional capabilities:
Pre-built workflows: Guided multi-step prompts for monthly closing, client onboarding, quarterly tax preparation, overdue invoice follow-ups, and batch expense processing
Static resources: Access Spanish tax rates, filing calendars, expense categories, invoice status flows, and API documentation without extra API calls
Spanish tax compliance: Built-in support for IVA, IGIC, IPSI, and IRPF
Multiple connection options: Local STDIO, remote HTTP endpoint, or OAuth 2.0
AI tool compatibility: Works with Claude Code, Cursor, Copilot, Gemini CLI, and others
What is this
An MCP server that connects your AI assistant to Frihet. Create invoices by talking. Query expenses in natural language. Manage your entire business from your IDE.
You: "Create an invoice for TechStart SL, 40 hours of consulting at 75 EUR/hour, due March 1st"
Claude: Done. Invoice INV-2026-089 created. Total: 3,000.00 EUR + 21% IVA = 3,630.00 EUR.31 tools. 5 resources. 5 prompts. Structured output on every tool. Zero boilerplate.
Install
One-line (Claude Code, Cursor, Copilot, Codex, Windsurf, Gemini CLI, and more)
npx skills add Frihet-io/frihet-mcpClaude Code / Claude Desktop
{
"mcpServers": {
"frihet": {
"command": "npx",
"args": ["-y", "@frihet/mcp-server"],
"env": {
"FRIHET_API_KEY": "fri_your_key_here"
}
}
}
}Tool | Config file |
Claude Code |
|
Claude Desktop |
|
Cursor |
|
Windsurf |
|
Cline | VS Code settings or |
Codex CLI |
|
The JSON config is identical for all tools. Only the file path changes.
Remote (no install)
Use the hosted endpoint at mcp.frihet.io -- zero local dependencies, runs on Cloudflare Workers.
With API key:
{
"mcpServers": {
"frihet": {
"type": "streamable-http",
"url": "https://mcp.frihet.io/mcp",
"headers": {
"Authorization": "Bearer fri_your_key_here"
}
}
}
}With OAuth 2.0 + PKCE (browser-based login, no API key needed):
Clients that support OAuth (Claude Desktop, Smithery, etc.) can connect directly to https://mcp.frihet.io/mcp and authenticate via browser. The server implements the full OAuth 2.1 authorization code flow with PKCE.
Get your API key
Log into app.frihet.io
Go to Settings > API
Click Create API key
Copy the key (starts with
fri_) -- it's only shown once
What you can do
Talk to your ERP. These are real prompts, not marketing copy.
Invoicing
"Show me all unpaid invoices"
"Create an invoice for Acme SL with 10h of consulting at 95/hour"
"Mark invoice abc123 as paid"
"How much has ClientName been invoiced this year?"Expenses
"Log a 59.99 EUR expense for Adobe Creative Cloud, category: software, tax-deductible"
"List all expenses from January"
"What did I spend on travel last quarter?"Clients
"Add a new client: TechStart SL, NIF B12345678, email admin@techstart.es"
"Show me all my clients"
"Update ClientName's address to Calle Mayor 1, Madrid 28001"Quotes
"Create a quote for Design Studio: logo design (2000 EUR) + brand guidelines (3500 EUR)"
"Show me all pending quotes"Webhooks
"Set up a webhook to notify https://my-app.com/hook when invoices are paid"
"List all my active webhooks"Tools (31)
Invoices (6)
Tool | What it does |
| List invoices with pagination |
| Get full invoice details by ID |
| Create a new invoice with line items |
| Update any invoice field |
| Permanently delete an invoice |
| Find invoices by client name |
Expenses (5)
Tool | What it does |
| List expenses with pagination |
| Get expense details |
| Record a new expense |
| Modify an expense |
| Delete an expense |
Clients (5)
Tool | What it does |
| List all clients |
| Get client details |
| Register a new client |
| Update client info |
| Remove a client |
Products (5)
Tool | What it does |
| List products and services |
| Get product details |
| Add a product or service |
| Update pricing or details |
| Remove a product |
Quotes (5)
Tool | What it does |
| List all quotes |
| Get quote details |
| Draft a new quote |
| Modify a quote |
| Delete a quote |
Webhooks (5)
Tool | What it does |
| List configured webhooks |
| Get webhook details |
| Register a new webhook endpoint |
| Modify events or URL |
| Remove a webhook |
All 31 tools return structured output via outputSchema -- typed JSON, not raw text. List tools return paginated results ({ data, total, limit, offset }).
Resources (5)
Static context the AI can read without making API calls.
Resource | URI | What it provides |
API Schema |
| OpenAPI summary: endpoints, auth, rate limits, pagination, error codes |
Tax Rates |
| Tax rates by Spanish fiscal zone: IVA, IGIC, IPSI, EU reverse charge, IRPF |
Tax Calendar |
| Quarterly filing deadlines: Modelo 303, 130, 390, 420, VeriFactu timeline |
Expense Categories |
| 8 categories with deductibility rules, IVA treatment, amortization |
Invoice Statuses |
| Status flow (draft > sent > paid/overdue > cancelled), transition rules, webhook events |
Prompts (5)
Pre-built workflows the AI can execute as guided multi-step operations.
Prompt | What it does | Arguments |
| Close the month: review unpaid invoices, categorize expenses, check tax obligations, generate summary |
|
| Set up a new client with correct tax rates by location, optionally create a welcome quote |
|
| Prepare quarterly tax filing: calculate IVA/IGIC, identify deductibles, preview Modelo 303/130/420 |
|
| Find overdue invoices, draft follow-up messages, suggest payment reminders | -- |
| Process expenses in bulk: categorize, apply tax rates, flag missing receipts |
|
How it works
Your AI assistant frihet-mcp Frihet API
| | |
|-- "create invoice" --> | |
| |-- POST /invoices ->|
| |<-- 201 Created ----|
|<-- structured JSON --- | |The server translates tool calls into REST API requests. It handles authentication, rate limiting (automatic retry with backoff on 429), pagination, and error mapping.
Two transports:
stdio (local) --
npx @frihet/mcp-serverwithFRIHET_API_KEYStreamable HTTP (remote) --
https://mcp.frihet.io/mcpwith Bearer token or OAuth 2.0+PKCE
Environment variables
Variable | Required | Default |
| Yes (stdio) | -- |
| No |
|
API limits
Limit | Value |
Requests per minute | 100 per API key |
Results per page | 100 max (50 default) |
Request body | 1 MB max |
Webhook payload | 100 KB max |
Webhooks per account | 20 max |
Rate limiting is handled automatically with exponential backoff.
Claude Code Skill
Beyond raw MCP tools, this repo includes a Claude Code skill that adds business context: Spanish tax rules, workflow recipes, financial reports, and natural language commands.
Install the skill
git clone https://github.com/Frihet-io/frihet-mcp.git
ln -s "$(pwd)/frihet-mcp/skill" ~/.claude/skills/frihetOr with the universal installer:
npx skills add Frihet-io/frihet-mcpCommands
Command | What it does |
| Account overview, recent activity, pending payments |
| Create, list, search invoices |
| Log and query expenses |
| Manage client database |
| Create and manage quotes |
| Financial summaries (P&L, quarterly, overdue) |
| Configure automation triggers |
| Guided setup and connection test |
The skill knows about IVA rates, IRPF retention, Modelo 303 prep, expense deductibility rules, and VeriFactu compliance.
Full documentation: docs.frihet.io/desarrolladores/skill-claude-code
Development
git clone https://github.com/Frihet-io/frihet-mcp.git
cd frihet-mcp
npm install
npm run buildRun locally:
FRIHET_API_KEY=fri_xxx node dist/index.jsTest with the MCP Inspector:
npx @modelcontextprotocol/inspector node dist/index.jsContributing
Contributions are welcome. Please open an issue first to discuss what you'd like to change.
git clone https://github.com/Frihet-io/frihet-mcp.git
cd frihet-mcp
npm install
npm run build # must pass before submittingLinks
Frihet -- The product
Documentation -- Full docs
API reference -- REST API
MCP server docs -- Setup guides, troubleshooting
Webhook docs -- Events, signatures, retries
npm -- Package registry
MCP Registry -- Official MCP Registry
Smithery -- Smithery marketplace
Remote endpoint -- Hosted MCP server (Cloudflare Workers)
OpenAPI spec -- Machine-readable API definition
MCP specification -- The protocol
License
MIT. See LICENSE.
Built by Frihet.