mcp-dolibarr
An MCP server that gives Claude read access to a Dolibarr ERP/CRM — searching third parties and products, reading sales documents, and calling raw API endpoints — with write tools only when explicitly enabled.
Check the connection —
get_statusreports the Dolibarr version and validates the API URL and key.Search third parties —
search_thirdpartiesfinds companies/people by name or alias, filtered by role (customer, prospect, supplier) and paged.Search products and services —
search_productsmatches on reference or label, filtered by type.List sales documents —
list_sales_documentsreturns proposals, orders or invoices newest first, filtered by status, third party orsqlfilters, paged (max 100).Fetch one full object —
get_objectreturns a third party, contact, product, project, proposal, order or invoice by numeric id, with line items for documents.Reach the rest of the API —
dolibarr_getperforms a raw GET on any endpoint no other tool covers (e.g.projects/3/tasks,setup/dictionary/countries).Stay safe by default — all tools are read-only; tools that draft and validate documents appear only with
DOLIBARR_ALLOW_WRITE=trueand ask for confirmation first.Save context — lists request only summary fields and empty values are dropped from answers.
Run flexibly — stdio locally or streamable HTTP (localhost by default, no built-in auth), as a uv command or a container.
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., "@mcp-dolibarr show me the unpaid invoices for customer Acme Corp"
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.
mcp-dolibarr
An MCP server for the Dolibarr ERP/CRM REST API: lets Claude, or any MCP client, search third parties and products, read proposals, orders and invoices, and, when enabled, draft and validate them.
Read-only by default. Write tools only exist when
DOLIBARR_ALLOW_WRITE=true, and carry MCP annotations so the client asks before running them.Few tools. 11 at most (docs/tools.md), with a
kindparameter for proposals, orders and invoices, and a raw passthrough for the rest of the API.Compact answers. Lists ask Dolibarr only for summary fields, and empty values are dropped from every answer, to save the model's context.
Dolibarr setup
Dolibarr 24 or later.
Enable the API REST module (Home → Setup → Modules).
Create a dedicated user, give it only the permissions the agent needs (read-only rights for a read-only server), and generate its API key on its user card.
The API key carries that user's permissions: Dolibarr enforces them whatever this server allows.
Related MCP server: EspoCRM Assistant
Configuration
Each setting is an environment variable and, except the API key, a command-line
option (--url, --port... see mcp-dolibarr --help). The option
wins over the variable, which wins over the .env file of the working directory
(copy .env.example), which wins over the default. Keep the API key in the
environment or in .env: an option would show in ps and in the shell history.
Variable | Default | Meaning |
| required | API root, ending with |
| required | API key of the Dolibarr user |
|
| Register the tools that write to Dolibarr |
|
|
|
|
| HTTP bind address |
|
| HTTP port |
|
| HTTP path, starting with |
Run
Requires uv.
uv run mcp-dolibarrClaude Code, over stdio:
claude mcp add dolibarr -- uv run --directory /path/to/mcp-dolibarr mcp-dolibarrContainer, over HTTP (see the container-build skill):
podman build -t mcp-dolibarr -f Containerfile .
podman run --rm --env-file .env -p 127.0.0.1:8000:8000 mcp-dolibarrThe HTTP transport has no authentication: keep it on localhost, or behind a reverse proxy that authenticates (see Deployment, with a Traefik example).
Contributing
Issues and pull requests are welcome.
One issue per change. Branch from
dev, named<type>/<short-description>(feat/,fix/,docs/…).Commits and pull request titles follow Conventional Commits.
Pull requests target
devand are squash-merged;devgoes tomainat each release.
AI coding agents follow AGENTS.md.
Development
With uv:
uv sync --extra dev
uv run ruff format && uv run ruff check && uv run mypy && uv run pytest -qLicense
Available Tools
6 toolsdolibarr_getDolibarr GetARead-only
GET a Dolibarr REST endpoint that no other tool covers.
path is relative to the API root, e.g. projects/3/tasks, setup/dictionary/countries.
Inputs: path (required), params. Returns: result
get_objectGet ObjectBRead-only
Full Dolibarr object by numeric id, with its lines for a proposal, order or invoice.
Inputs: id (required), kind (required). Returns: result
get_statusGet StatusARead-only
Dolibarr version and API status: checks the connection and the API key.
Inputs: no named parameters. Returns: result
list_sales_documentsList Sales DocumentsCRead-only
Sales documents (proposals, orders or invoices), newest first.
The status codes are in the instructions.
Inputs: kind (required), page, limit, status, +2 more. Returns: result
search_productsSearch ProductsCRead-only
Products and services whose reference or label contains text.
Inputs: page, text, type, limit. Returns: result
search_thirdpartiesSearch ThirdpartiesCRead-only
Third parties (companies or people) whose name or alias contains name.
Inputs: name, page, role, limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools mostly have distinct purposes: status check, generic object fetch, third-party search, product search, generic GET fallback, and sales document listing. The only mild overlap is between get_object and dolibarr_get, but the descriptions clarify that one handles known object types while the other is a fallback for uncovered endpoints.
Most names follow a readable verb_noun pattern such as get_status, get_object, search_thirdparties, search_products, and list_sales_documents. dolibarr_get is the main deviation, using noun_verb ordering and a server-name prefix, but it remains understandable.
Six tools is a reasonable, focused set for a Dolibarr integration and avoids a bloated surface. It may be slightly limited for a full ERP domain, but the generic GET tool helps extend coverage without adding many tools.
The read-side surface is fairly broad: status, object retrieval, entity search, sales document listing, and a generic GET fallback cover many inspection needs. However, there are no create, update, or delete operations, which is a notable gap for a Dolibarr/ERP toolset unless the server is intentionally read-only.
Maintenance
Related MCP Connectors
Read-only access to your Drivara fleet — jobs, drivers, vehicles, fuel, profit & analytics.
No key: what Piqline can do for a business, and its openly published data. Read-only.
Read-only access to a company's ERP for Claude, ChatGPT and Gemini, with OAuth and an audit trail.
Read-only NuMetric.work accounting & ERP data: statements, KPIs, reports, invoices, documents.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables read-only access to FileMaker databases through the Data API, allowing users to retrieve records, analyze metadata, search across layouts, and infer relationships while maintaining data security.16MIT
- FlicenseBqualityDmaintenanceProvides read-only EspoCRM access for AI assistants, enabling record retrieval and preparation of signed change sets without direct modification or deletion.7-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to natively interact with Dolibarr ERP/CRM through its REST API, providing over 30 tools for managing customers, contacts, products, quotes, orders, invoices, stock, projects, contracts, interventions, and PDF generation, while supporting complex workflow orchestration and read-only security modes.MIT
- AlicenseNot gradedqualityBmaintenanceEnables per-user Dolibarr API access with allowlisted tools for identity, time reporting, sales records, and leave requests, preserving Dolibarr's per-user permissions.MIT