e-conomic MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@e-conomic MCP Server List the first 10 customers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
e-conomic-mcp-server
Perfect for anyone who, like me, is more geek than bookkeeper. Finally there is a bit of fun in bookkeeping. Who would have thought.
Getting started
Install dependencies:
npm installRun the server:
npm startRelated MCP server: fiken-mcp
Environment variables
The server reads e-conomic credentials from the environment:
ECONOMIC_APP_SECRET_TOKEN(required)ECONOMIC_AGREEMENT_GRANT_TOKEN(required)ECONOMIC_BASE_URL(optional, defaults tohttps://restapi.e-conomic.com)ECONOMIC_DEBUG(optional, set totrueto emit JSON debug logs to stderr)
You'll find all the information on both tokens you need to get started here. It's a bit complex but not as boring and annoying as it looks like by first glimpse. Pinky promise!
Recommended ways to supply tokens
Local development: keep secrets in
.envand runnpm startfrom the repo root sodotenvloads them.Desktop MCP clients: either start the server from a shell that has
.envloaded, or pass env variables in the client config if you want the client to spawn the server for you.CI/shared environments: use your secret manager (GitHub Actions secrets, etc.) and inject env vars at runtime. Do not commit
.env.
Tools
Tool list:
Connectivity:
helloCustomers:
list_customers,get_customer,update_customerProducts:
list_products,upsert_productDraft invoices:
list_invoice_drafts,get_invoice_draft,create_invoice_draft,update_invoice_draft,book_invoice_draftBooked invoices:
list_booked_invoices,get_booked_invoice,download_invoice_pdfReference data:
list_payment_terms,list_customer_groups,list_vat_zones
Tool reference
Category | Tool | Purpose | Arguments | Returns / Notes |
Connectivity |
| Sanity check to confirm the server is reachable. |
| Greeting text. |
Customers |
| List customers with pagination. |
| Paginated customer collection. |
Customers |
| Fetch one customer by customer number. |
| Customer details. |
Customers |
| Update customer fields. |
| Updated customer object. |
Products |
| List products with pagination. |
| Paginated product collection. |
Products |
| Create or update a product. |
| Product object. |
Draft invoices |
| List draft invoices with pagination. |
| Paginated draft collection. |
Draft invoices |
| Fetch a draft invoice. |
| Draft invoice details. |
Draft invoices |
| Create a new draft invoice. |
| Created draft. If a line omits |
Draft invoices |
| Update a draft invoice. |
| Updated draft invoice. |
Draft invoices |
| Book a draft into a booked invoice. |
| Booked invoice payload. |
Booked invoices |
| List booked invoices with pagination. |
| Paginated booked invoice collection. |
Booked invoices |
| Fetch a booked invoice. |
| Booked invoice details. |
Booked invoices |
| Download a booked invoice PDF. |
|
|
Reference data |
| List payment terms. |
| Payment terms collection. |
Reference data |
| List customer groups. |
| Customer groups collection. |
Reference data |
| List VAT zones. |
| VAT zones collection. |
MCP client setup
Claude Desktop
Add an MCP server entry to your Claude Desktop config file and restart Claude Desktop:
{
"mcpServers": {
"e-conomic": {
"command": "node",
"args": ["/absolute/path/to/e-conomic-mcp-server/src/server.js"],
"env": {
"ECONOMIC_APP_SECRET_TOKEN": "your_token",
"ECONOMIC_AGREEMENT_GRANT_TOKEN": "your_token",
"ECONOMIC_BASE_URL": "https://restapi.e-conomic.com"
}
}
}
}Common config locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\\Claude\\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Claude Code
Add the MCP server via Claude Code:
claude mcp add-json e-conomic '{
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/e-conomic-mcp-server/src/server.js"],
"env": {
"ECONOMIC_APP_SECRET_TOKEN": "...",
"ECONOMIC_AGREEMENT_GRANT_TOKEN": "...",
"ECONOMIC_BASE_URL": "https://restapi.e-conomic.com"
}
}'Use --scope project to write a shared .mcp.json file in the repo, or --scope user to make it global for your user.
Codex CLI (OpenAI)
Add the MCP server using Codex CLI:
codex mcp add e-conomic --env ECONOMIC_APP_SECRET_TOKEN=... \
--env ECONOMIC_AGREEMENT_GRANT_TOKEN=... \
--env ECONOMIC_BASE_URL=https://restapi.e-conomic.com \
-- node /absolute/path/to/e-conomic-mcp-server/src/server.jsCodex stores MCP configuration in ~/.codex/config.toml if you prefer to edit it directly.
Gemini CLI
Add to your Gemini CLI settings (user or project settings):
{
"mcpServers": {
"e-conomic": {
"command": "node",
"args": ["/absolute/path/to/e-conomic-mcp-server/src/server.js"],
"env": {
"ECONOMIC_APP_SECRET_TOKEN": "your_token",
"ECONOMIC_AGREEMENT_GRANT_TOKEN": "your_token",
"ECONOMIC_BASE_URL": "https://restapi.e-conomic.com"
}
}
}
}Settings files are located at ~/.gemini/settings.json (user) or <project>/.gemini/settings.json (project). System-wide settings live under /etc/gemini-cli/settings.json (Linux), C:\\ProgramData\\gemini-cli\\settings.json (Windows), or /Library/Application Support/GeminiCli/settings.json (macOS).
License
MIT License. See LICENSE for details.
Available Tools
17 toolsbook_invoice_draftBook invoice draftC
Book a draft invoice into a booked invoice.
Inputs: draftInvoiceNumber (required), bookWithNumber.
create_invoice_draftCreate invoice draftC
Create a draft invoice in e-conomic.
Inputs: date (required), lines (required), currency (required), customerNumber (required), +7 more.
download_invoice_pdfDownload invoice PDFA
Download a booked invoice PDF as base64.
Inputs: bookedInvoiceNumber (required).
get_booked_invoiceGet booked invoiceA
Fetch a booked invoice by number.
Inputs: bookedInvoiceNumber (required).
get_customerGet customerA
Fetch a single customer by customer number.
Inputs: customerNumber (required).
get_invoice_draftGet invoice draftA
Fetch a draft invoice by number.
Inputs: draftInvoiceNumber (required).
helloHelloA
Return a friendly greeting.
Inputs: name.
list_booked_invoicesList booked invoicesB
Fetch a page of booked invoices.
Inputs: page, pageSize.
list_customer_groupsList customer groupsA
Fetch a page of customer groups.
Inputs: page, pageSize.
list_customersList customersA
Fetch a page of customers from the e-conomic API.
Inputs: page, pageSize.
list_invoice_draftsList invoice draftsB
Fetch a page of draft invoices.
Inputs: page, pageSize.
list_payment_termsList payment termsA
Fetch a page of payment terms.
Inputs: page, pageSize.
list_productsList productsA
Fetch a page of products.
Inputs: page, pageSize.
list_vat_zonesList VAT zonesB
Fetch a page of VAT zones.
Inputs: page, pageSize.
update_customerUpdate customerC
Update an existing customer in e-conomic.
Inputs: customerNumber (required), cvr, ean, zip, +12 more.
update_invoice_draftUpdate invoice draftC
Update an existing draft invoice in e-conomic.
Inputs: draftInvoiceNumber (required), date, lines, dueDate, +5 more.
upsert_productUpsert productB
Create or update a product by productNumber.
Inputs: name (required), productNumber (required), barCode, costPrice, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Each tool targets a distinct resource-action pair: customers, products, invoice drafts, booked invoices, and reference data. List vs. get operations are clearly separated, and even the 'hello' tool is unambiguous.
Tools consistently use verb_noun snake_case (list_, get_, create_, update_, book_, download_, upsert_). The only outlier is 'hello', which breaks the pattern but is a trivial helper.
At 17 tools, this is slightly above the typical 3-15 range, but the count is justified by covering customers, products, invoices, and reference data. No tool feels redundant.
The invoice workflow is well covered from draft creation through booking to PDF download. However, customers lack a create operation and products lack a single get operation, leaving minor gaps.
Maintenance
Related MCP Connectors
e-conomic MCP server for ChatGPT, Claude and any AI agent: create draft invoice, book invoice, add customer, list unpaid invoices and create entry in your own e-conomic account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to e-conomic yourself; Cotlet does not store your password and you need no e-conomic API key. About the official e-conomic API: Yes, e-conomic has a full REST API with customers, draft and booked invoices, invoice PDFs and journal vouchers (checked 14 Oct 2026), but you get it through a developer agreement: you create an app that holds an AppSecretToken, and each accounting user grants it access with an AgreementGrantToken. The developer docs list no official MCP server. Setup and FAQ: https://cotlet.dev/integrations/e-conomic-api-mcp-server
Create EU-compliant invoices, manage clients and download PDFs from your AI assistant.
Connect ChatGPT and Claude to Fortnox: invoices, customers, reports. Every write needs your OK.
Danish accounting data from e-conomic and Billy: invoices, VAT by quarter, P&L. Read-only.
Related MCP Servers
- AlicenseBqualityAmaintenanceEnables interaction with the Estonian e-arveldaja (RIK e-Financials) REST API to manage financial records like invoices and journal entries using natural language. It supports automating purchase invoice entry from PDFs, reconciling bank transactions, and generating financial reports.1301,409 npm39Apache 2.0
- AlicenseCqualityCmaintenanceEnables AI assistants to manage invoices, contacts, purchases, journal entries, and other accounting operations via the Fiken API.10022 npm7MIT
- AlicenseBqualityDmaintenanceEnables AI agents to manage invoices, customers, suppliers, accounting entries, orders, and more through Fortnox's cloud accounting platform via natural language.2068 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with the SuperFaktura invoicing system for managing invoices, clients, and expenses via natural language.4Apache 2.0