Frihet MCP Server
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.66 tools. 8 resources. 7 prompts. Structured output on every tool. Zero boilerplate.
Related MCP server: Finizi B4B MCP Server
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"CRM
"Add a contact to Acme SL: Ana Garcia, CTO, ana@acme.es"
"Log a call with TechStart: discussed Q2 proposal, they're interested in upgrade"
"Add a note to ClientName: prefers invoices in English, payment NET 30"
"Show me all activities for Acme SL"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"What to expect
This MCP is a structured data interface -- you describe what you want in natural language, and the AI creates, queries, or modifies business records in Frihet. All 66 tools are CRUD operations over the REST API.
Works great:
"Create an invoice for TechStart SL, 40h consulting at 75 EUR/h" --> creates the invoice
"Show unpaid invoices over 1,000 EUR" --> queries and filters
"Log a 120 EUR expense for the Madrid train, category: travel" --> records the expense
"Update client Acme's email to billing@acme.es" --> modifies the recordDoes not do:
OCR or PDF scanning -- you cannot upload an invoice image and have it read
File upload or attachment handling
Image processing of any kind
If you need to digitize paper invoices or receipts, extract the data first (e.g., Claude Vision API, a dedicated OCR service, or manual entry), then use the MCP to create the record:
1. Scan/photograph the invoice
2. Use Claude Vision: "Read this invoice image and extract the vendor, items, amounts, and dates"
3. Then: "Create an expense in Frihet for [extracted data]"Tools (66)
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 |
CRM: Contacts (3)
Tool | What it does |
| List all contacts for a client |
| Add a contact person to a client |
| Remove a contact from a client |
CRM: Activities (2)
Tool | What it does |
| List CRM activities (calls, emails, meetings, tasks) |
| Log a call, email, meeting, or task against a client |
CRM: Notes (3)
Tool | What it does |
| List all notes for a client |
| Add a free-form note to a client |
| Remove a note from 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 |
Intelligence (4)
Tool | What it does |
| Full snapshot: profile, plan, recent activity, top clients, current month |
| Monthly P&L: revenue, expenses, profit, tax liability, top clients by revenue |
| Quarterly tax prep: Modelo 303/130 fields, collected vs deductible, liability |
| Clone an invoice for recurring billing (copies items/client/tax, starts as draft) |
E-Invoicing (4 new in v1.7 pre-release)
Status: beta — CF endpoints rolling out 2026-04-21 to 2026-04-28. Tools call
api.frihet.io/v1/einvoice/*directly. If an endpoint is not yet deployed (404), the tool falls back to{ _stub: true, _note: "CF endpoint pending deploy", _plannedEndpoint: "..." }so the server remains usable while transport ships.
Tool | What it does |
| Dispatch an invoice in 11 formats (XRechnung, Factur-X, FatturaPA, PEPPOL, Facturae, UBL, CII) via email / Chorus Pro / SDI / PEPPOL / download |
| Poll Hatchet workflow run status until succeeded/failed — returns ackId, XML URL, PDF/A-3 URL |
| Validate raw XML against format schema + schematron rules (KOSIT / Mustang / XSD / Schematron) |
| Export accounting data as DATEV EXTF (Buchungsstapel / Debitoren / Kreditoren) in CP1252 encoding |
All 66 tools return structured output via outputSchema -- typed JSON, not raw text. List tools return paginated results ({ data, total, limit, offset }).
Resources (8)
Context the AI can read to make smarter decisions.
Static (reference data, no 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 |
Dynamic (live data from your account):
Resource | URI | What it provides |
Business Profile |
| Your business info, plan, defaults, recent activity, top clients |
Monthly Snapshot |
| Current month P&L, revenue, expenses, tax liability |
Overdue Invoices |
| All invoices past due date (up to 100) |
Prompts (7)
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 | -- |
| Create a client + first invoice in one workflow with tax rate lookup |
|
| Generate expense report grouped by category with deductible totals |
|
| Process expenses in bulk: categorize, apply tax rates, flag missing receipts |
|
How it works
graph LR
AI["Your AI assistant"]
MCP["frihet-mcp"]
API["api.frihet.io"]
DB["Frihet ERP"]
AI -- "create_invoice()" --> MCP
MCP -- "POST /v1/invoices" --> API
API --> DB
DB -- "201 + invoice data" --> API
API -- "structured JSON" --> MCP
MCP -- "typed response + suggestions" --> AI
style AI fill:#09090b,stroke:#4ade80,color:#fafafa
style MCP fill:#09090b,stroke:#fafafa,color:#fafafa
style API fill:#09090b,stroke:#3f3f46,color:#a1a1aa
style DB fill:#09090b,stroke:#3f3f46,color:#a1a1aaThe 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 submittingCurrent limitations
No OCR or file upload -- the MCP works with structured data, not images or PDFs. Planned for a future release.
Single company -- one API key maps to one Frihet workspace. Multi-company support is not yet available.
Frihet account required -- you need an active account at app.frihet.io and an API key (starts with
fri_).
Ecosystem
Package | What it is |
This MCP server (66 tools, 8 resources, 7 prompts) | |
TypeScript SDK ( | |
CLI ( | |
n8n community node for workflow automation | |
OpenAPI 3.1 at | |
Hosted endpoint on Cloudflare Workers (zero install) | |
Real-time events with HMAC-SHA256 |
Links
Frihet -- The product
Documentation -- Full docs
API reference -- REST API
MCP server docs -- Setup guides, troubleshooting
npm -- Package registry
Smithery -- Smithery marketplace
Remote endpoint -- Hosted MCP server (Cloudflare Workers)
OpenAPI spec -- Machine-readable API definition
License
MIT. See LICENSE.
Built by Frihet.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceEnables AI assistants to interact with the Finizi B4B platform through 15 comprehensive tools for managing business entities, invoices, vendors, and products. Features secure JWT authentication, automatic retries, and full business-to-business workflow integration through natural language commands.
- Alicense-quality-maintenanceEnables AI assistants to interact with the Finizi B4B platform through 15 comprehensive tools for managing business entities, invoices, vendors, and products. Features secure JWT authentication, automatic retries, and comprehensive business data operations through natural language commands.
- Alicense-qualityAmaintenanceComplete Swiss accounting integration for Bexio via MCP. Works with Claude Desktop, n8n, and any MCP client. 221 tools for invoices, contacts, projects & more. Created by Lukas Hertig.27MIT
- AlicenseAqualityCmaintenanceAI-powered freelance business manager for Claude Code. Proposals, invoices, time tracking, scope management, and follow-ups - 37 tools, 5 coaching skills.3722MIT
Related MCP Connectors
Chilean DTE/SII invoicing — issue invoices, reconcile payments and manage clients with AI agents.
Form companies, manage bank accounts, cards, invoices and more — directly from your AI coding tools.
40+ Lightning-paid AI tools for agents: calls, SMS, fax, voice, translation. No signup, no keys.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Frihet-io/frihet-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server