Skip to content
📢 Kafinea is a compatible solution for electronic invoicing! Learn more ➔
kafinea logo svg

Kafinea

  • Features
        • Finance
          • Purchases
          • Audits & KPIs
          • Accounting
          • Invoicing
        • Management
          • Documents
          • Project Management
          • Inventory Management
          • Maintenance
        • HR
          • Employees
          • Timesheets
          • Absence Management
          • Recruitment
        • Customer Service
          • Service Contracts
          • Interventions
          • Warranty Tracking
          • Tickets
        • Sales
          • Subscriptions
          • Sales Automation
          • CRM
          • Points of Sale
        • Cross-Features
          • API
          • Extranet
          • Electronic Signature
          • Workflows
  • Use Cases
  • Pricing
  • Login
  • Discover the demo
📢 Kafinea is electronic invoicing compatible! ➔
kafinea logo svg
Kafinea

API

16
  • REST API – Bulk import (upsert)
  • REST API – Authentication
  • REST API – Retrieve a Document’s PDF
  • REST API – File Management
  • REST API – Entity Relationships
  • REST API – Introduction
  • REST API – Taxes, Tax Regions, and Territorial Rules
  • REST API – Requests and Querying
  • REST API – Refresh an online store order
  • REST API – Bulk deletion (trash)
  • REST API – Cost Accounting
  • REST API – Product Kits
  • REST API – Generic and Specific Products
  • REST API – Action links
  • REST API – Approvals
  • REST API – Full Reference (OpenAPI)

Marketing

1
  • Leads

Sales

14
  • Customer purchase orders
  • Customer accounts
  • Customer Quotes
  • Customer credit notes
  • Company Search (Sirene)
  • Margins in quotes
  • Invoicing
    • Classic Invoicing
    • Progress Invoicing
    • Issue an electronic invoice
    • Invoicing Article Consumption
    • Recurring invoicing
  • Payments
    • Customer payments
    • Linking a payment to one or more invoices
  • Price list
    • Price list administrator guide

Purchases

5
  • Supplier invoices
  • Supplier Purchase Orders
  • Suppliers
  • Supplier Credits
  • Receiving an Electronic Invoice

Catalog

8
  • Units of measure
  • Products
  • Services
  • Sourcing Management
  • The Purchase Order Assistant
  • Generic products
  • Product kits
  • Catalog margin analysis

Finance

11
  • Bank Accounts
  • Manual entries
  • SEPA Mandates
  • Third-party bank accounts
  • Bank Transactions
  • Accounting
    • Cash accounting
    • Accounting entries
    • Tools for Checking Your Accounting
    • Accounting
    • Financial statements
    • Fiscal years

Human Resources

5
  • Timesheets
  • Activities
  • Pay Slips
  • Employee Extranet
    • Leave Management
    • The employee portal card

Project management

2
  • Secure assignments using a people list
  • The responder area: view and accept my assignments

Customer Support

1
  • The Client Portal

Inventory management

4
  • Goods receipt notes
  • Delivery Notes
  • Stock movements
  • Inventory Valuation

Cash register

1
  • Cash Registers

Document management

1
  • Electronic signature

Automation

2
  • Forms
  • Workflows

Templates

2
  • Email templates
  • Document templates

Artificial intelligence

4
  • AI Workflows
  • AI Chat
  • AI Text Assistant
  • Connect ChatGPT, Claude, or Gemini to Kafinea (MCP)

Kafinea interface

9
  • Automatic saving
  • Data Import/Export
  • Navigation
  • Records
  • Lists
  • The Layout Manager
  • Links Between Elements
  • Document Lines
  • List views: Kanban, Cards, Calendar, Planning, Gantt, Geographic map, and Analysis

Settings

10
  • Tax Configuration
  • Global search
  • Access Rights
  • User preferences
  • Numbering formats
  • SMTP Settings
  • Permanent locking
  • Catalog popup filtering
  • AI agents
  • Administer the MCP server

Business Guides

2
  • Enable employees to complete their HR record independently
  • Mobilizing thousands of field workers at scale
  • Kafinea
  • Documentation
  • Settings
  • Administer the MCP server
View Categories

Administer the MCP server

7 minutes

0:00 / 7:46
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

Introduction #

Kafinea’s MCP server (Model Context Protocol) allows AI assistants (ChatGPT, Claude, Gemini, Copilot, Cursor, etc.) to connect to the ERP to query data via a standardized protocol.

This page describes the technical architecture, security, activation, and troubleshooting of the MCP server for administrators. To connect your own assistant, see Connect ChatGPT, Claude or Gemini to Kafinea.


1. Architecture #

The Kafinea MCP server is composed of several components:

Component Role
HTTP Entry Point Reception of MCP requests (Streamable HTTP protocol)
Tools Functions exposed to AI clients (search, read, navigation)
Resources Context data accessible by the AI client
Authentication Validation of user credentials for each request
Security Application of access rights and security controls
Configuration Enable connection with the Kafinea account for the installation

2. Authentication #

The MCP server supports two connection modes, on the same address: the installation address followed by /mcp/index.php, for example https://apps.kafinea.com/<installation>/mcp/index.php. In both cases, the user must have an active account on the installation.

Connection with the Kafinea account (recommended) #

The user adds the connection address in their AI assistant, signs in with their usual Kafinea account, then authorizes the requested access. No key is stored in the assistant.

Two addresses are available:

  • The single address https://mcp.kafinea.com/mcp (recommended): a single connection provides access to all installations to which the user has been invited. The list follows their invitations: an installation opened later is accessible without any new configuration, and a removed access is revoked within a few minutes. Each operation explicitly specifies its installation and runs with the user’s account and permissions in that installation. This is the preferred address for an integrator who supports multiple clients, or for an organization that shares the same connector among its members.
  • The installation address: the connection is limited to that installation.

The permissions granted to the assistant (read, write, configuration) are displayed during authorization. The user can find their authorized assistants in the user menu, Connect my AI assistant, section Your connected assistants, where they can revoke them at any time. After a revocation, already-issued accesses expire within a few minutes.

This mode is enabled on installations hosted by Kafinea (see Activation).

Connection with an access key #

This mode is intended for assistants configured with fixed credentials. Each request sends the username and personal access key, in one of the following formats:

X-Kafinea-Credentials: username:accesskey
Authorization: Basic base64(username:accesskey)
Authorization: Bearer username:accesskey
X-Kafinea-Username: username
X-Kafinea-AccessKey: accesskey
  • The username is the Kafinea username
  • The accesskey is the user’s access key, specific to each installation (visible in the user menu, Connect my AI assistant, section Technical integration (access key), after Show key)

The server validates the credentials and establishes the user context for the request.

A user regenerates their key from My preferences, menu More, Change access key. The new key replaces the old one immediately for all tools that use it: update each assistant configured with this key.


3. Security #

Access rights #

Each MCP request is executed in the context of the authenticated user. Access rights to modules, records, and fields are enforced.

Additional security checks #

In addition to user access rights, the MCP server applies additional checks:

  • Input parameter validation
  • Filtering of sensitive modules and fields: users’ access keys are never transmitted by the MCP server, including to an administrator
  • Injection protection

Recommendations #

  • Deploy the MCP server only over HTTPS connections
  • Prefer connection with the Kafinea account: no key is stored in the assistant, and each authorized application can be revoked individually
  • Never publish credentials in a public repository
  • Monitor access logs to detect abnormal usage

4. Exposed tools (Tools) #

The tools exposed by the MCP server allow AI clients to:

  • Search records in Kafinea modules
  • Read the details of a specific record
  • Browse relationships between records
  • List available modules and fields
  • Browse and complete related lists declared on a record
  • Handle qualified links with the generic create, read, update, and delete tools
  • Manage generic and specific products with the generic tools on Products and their related list
  • Read and edit kit composition with the dedicated tools product_kit_get_components, product_kit_set_components, product_kit_add_component and product_kit_remove_component

Each tool enforces the connected user’s access rights.

The resource kafinea://relationship-concepts explains to AI clients how to choose between a related list, a qualified link, a generic/specific attachment, and a kit composition. It also specifies that required fields must be visible in the layout and that prices are recalculated automatically.

It also describes detailed reading of discount vouchers distributed across the lines of a quote, a purchase order, or an invoice imported directly from a store. The tool get_record can return an optional read-only property: each voucher share is matched to its line via lineItemId. Amounts describe the import, and isCurrent indicates whether the current discount still matches the recorded components. This property does not appear in lists and cannot be modified with write tools.


5. Exposed resources (Resources) #

Resources expose context data that the AI client can consult:

  • Information about the Kafinea instance
  • Structure of available modules
  • Field metadata
  • Guide to choosing between related lists, qualified links, and product kits

6. Configuration #

  • Accessible data: the assistant accesses exactly what the user sees in Kafinea. To restrict what a user can view or modify via MCP, adjust their permissions (profile, role, sharing rules): the same rules apply on screen, in the API, and on the MCP server.
  • Connection with the Kafinea account: enabled on installations hosted by Kafinea; on another installation, it is enabled in the server configuration by the team that hosts it.
  • Connection with an access key: no setup is required.

7. Activation #

Connection with an access key #

This mode is available on any installation, with no activation. Each active user can find a ready-to-copy configuration, with the endpoint address, their username, and their key, in the user menu, Connect my AI assistant, section Technical integration (access key).

Connection with the Kafinea account #

This mode is enabled on installations hosted by Kafinea, as well as the single address: the Connect my AI assistant page then displays the steps per assistant and the connection address; the installation-specific address is under Limit the assistant to this space.

On an installation hosted elsewhere, it is enabled once, in the server configuration and not in Kafinea settings. If you do not have access to the server, submit the request to your integrator or hosting provider. The steps are reminded to administrators on the Connect my AI assistant page:

  1. Have the AI assistant authentication service deployed and configured for the installation
  2. Have the installation’s secure address entered and enable connection with Kafinea accounts
  3. Reload the Connect my AI assistant page: the connection steps and address appear. Then run a test from an assistant

As long as this mode is not enabled, the page indicates it and offers the Copy activation request button, which the user sends to the team that manages the installation.

To connect with this mode, the user must have been invited to the installation and have an active account.

In both modes, the endpoint mcp/index.php must be reachable from the user’s workstation, or from the Internet when the AI assistant runs online.


8. Troubleshooting #

If you have connection issues:

  1. Check that the endpoint is reachable from the user’s workstation, or from the Internet for an online assistant
  2. Access key: compare the tool configuration with the Technical integration (access key) section of the Connect my AI assistant page. After regenerating the key, update the tool
  3. Kafinea account: the Connect my AI assistant page displays the connection address when the service is configured. Also check that the user has been invited to the installation
  4. Check that the user’s account is active: a deactivated account can no longer connect, regardless of the mode

FAQ #

Is the MCP server compatible with all AI clients?
The server implements the standard MCP protocol (Streamable HTTP). Any MCP-compatible client can connect to it.

Can I restrict the modules accessible via MCP?
Yes, via access rights in Kafinea user profiles: the assistant can access only the modules, records, and fields that the user can see.


Related References #

  • Connect ChatGPT, Claude or Gemini to Kafinea (MCP)
  • AI agents
  • REST API – Relationships between entities
  • REST API – Product kits
Index
  • Introduction
  • 1. Architecture
  • 2. Authentication
    • Connection with the Kafinea account (recommended)
    • Connection with an access key
  • 3. Security
    • Access rights
    • Additional security checks
    • Recommendations
  • 4. Exposed tools (Tools)
  • 5. Exposed resources (Resources)
  • 6. Configuration
  • 7. Activation
    • Connection with an access key
    • Connection with the Kafinea account
  • 8. Troubleshooting
  • FAQ
  • Related References

An all-in-one software designed for SMEs. Take advantage of the automation capabilities and flexibility of our business management platform to make work easier for all your employees.

RESOURCES

Blog
Brand Guidelines
Distributors
Help
Security

Customer portal
ABOUT

About Us
Contact Us
Cookie Policy
FAQ
Legal Notice
Privacy Policy
Terms of Service

Electronic invoicing compatible solution
French Tech Grand Paris Logo
FINANCE

Accounting
Audits & KPIs
Invoicing
Purchases

MANAGEMENT

Documents
Inventory Management
Maintenance
Project Management

HR

Absence Management
Employees
Recruitment
Timesheets

CUSTOMER SERVICE

Interventions
Service Contracts
Tickets
Warranty Tracking

SALES

CRM
Points of Sale
Sales Automation
Subscriptions

© 2026 Madiasoft - Kafinea

24 rue Louis Blanc, 75010 PARIS, France

+33 1 70 06 05 41

Facebook Linkedin
kafinea logo svg
Gérer le consentement aux cookies
Pour offrir les meilleures expériences, nous utilisons des cookies pour stocker et/ou accéder aux informations des appareils. Le fait de consentir à ces cookies nous permettra de traiter des données telles que le comportement de navigation ou les ID uniques sur ce site. Le fait de ne pas consentir ou de retirer son consentement peut avoir un effet négatif sur certaines caractéristiques et fonctions.
Fonctionnel Always active
Le stockage ou l’accès technique est strictement nécessaire dans la finalité d’intérêt légitime de permettre l’utilisation d’un service spécifique explicitement demandé par l’abonné ou l’internaute, ou dans le seul but d’effectuer la transmission d’une communication sur un réseau de communications électroniques.
Préférences
Le stockage ou l’accès technique est nécessaire dans la finalité d’intérêt légitime de stocker des préférences qui ne sont pas demandées par l’abonné ou la personne utilisant le service.
Statistiques
Le stockage ou l’accès technique qui est utilisé exclusivement à des fins statistiques. Le stockage ou l’accès technique qui est utilisé exclusivement dans des finalités statistiques anonymes. En l’absence d’une assignation à comparaître, d’une conformité volontaire de la part de votre fournisseur d’accès à internet ou d’enregistrements supplémentaires provenant d’une tierce partie, les informations stockées ou extraites à cette seule fin ne peuvent généralement pas être utilisées pour vous identifier.
Marketing
Le stockage ou l’accès technique est nécessaire pour créer des profils d’internautes afin d’envoyer des publicités, ou pour suivre l’internaute sur un site web ou sur plusieurs sites web ayant des finalités marketing similaires.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
Voir les préférences
  • {title}
  • {title}
  • {title}
  • Features
    • Finance
      • Purchases
      • Audits & KPIs
      • Accounting
      • Invoicing
    • Management
      • Documents
      • Interventions
      • Project Management
      • Inventory Management
    • HR
      • Employees
      • Timesheets
      • Absence Management
      • Recruitment
    • Customer Service
      • Service Contracts
      • Warranty Tracking
      • Maintenance
      • Tickets
    • Sales
      • Subscriptions
      • Sales Automation
      • CRM
      • Points of Sale
    • Cross-Features
      • API
      • Extranet
      • Electronic Signature
      • Workflows
  • Use Cases
  • Pricing
  • Login
  • Discover the demo