Dolibarr MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Dolibarr MCP Server
Dolibarr MCP delivers a Model Context Protocol (MCP) interface for the Dolibarr
ERP/CRM. The project mirrors the project structure of prestashop-mcp:
an async API client, a production-ready STDIO server, and focused
documentation.
Design Note: While sharing the same architecture, this server implements specialized search tools (e.g., search_products_by_ref, resolve_product_ref) instead of a single unified get_ tool. This design choice ensures efficient server-side filtering via Dolibarr's SQL API, preventing the agent from accidentally loading thousands of records and exceeding context limits.
Claude Desktop and other MCP-aware tools can use the server to manage customers, products, invoices, orders, and contacts in a Dolibarr instance.
Consult the bundled documentation index for deep dives into configuration, API coverage, and contributor workflows.
✨ Features
Full ERP coverage – CRUD tools for users, customers, products, invoices, orders, contacts, projects, and raw API access.
Advanced Search – Server-side filtering for products, customers, and projects to minimize token usage and costs.
Async/await HTTP client – Efficient Dolibarr API wrapper with structured error handling.
Ready for MCP hosts – STDIO transport compatible with Claude Desktop out of the box.
Shared workflow with prestashop-mcp – Identical developer ergonomics and documentation structure across both repositories.
Related MCP server: mcp-server-dolibarr
✅ Prerequisites
Python 3.8 or newer.
Access to a Dolibarr installation with the REST API enabled and a personal API token.
📦 Installation
Linux / macOS
git clone https://github.com/latinogino/dolibarr-mcp.git
cd dolibarr-mcp
python3 -m venv venv_dolibarr
source venv_dolibarr/bin/activate
pip install -e .
# Optional development extras
pip install -e '.[dev]'While the virtual environment is active record the Python executable path with
which python. Claude Desktop must launch the MCP server using this interpreter.
Windows (PowerShell)
git clone https://github.com/latinogino/dolibarr-mcp.git
Set-Location dolibarr-mcp
py -3 -m venv venv_dolibarr
./venv_dolibarr/Scripts/Activate.ps1
pip install -e .
# Optional development extras (escape brackets in PowerShell)
pip install -e .`[dev`]Run Get-Command python (or Get-Command python.exe) while the environment is
activated and note the absolute path. Claude Desktop should use this interpreter
inside the virtual environment, for example
C:\\path\\to\\dolibarr-mcp\\venv_dolibarr\\Scripts\\python.exe.
Docker (optional)
# Copy the template and update credentials (file is gitignored)
cp .env.example .env
# Start the HTTP listener for MCP clients (Open WebUI, MCPO, etc.)
docker compose up -d
# or
docker build -t dolibarr-mcp .
docker run -d \
-e DOLIBARR_URL=https://your-dolibarr.example.com/api/index.php \
-e DOLIBARR_API_KEY=YOUR_API_KEY \
dolibarr-mcp⚙️ Configuration
Environment variables
The server reads configuration from the environment or a .env file. Both
DOLIBARR_URL and DOLIBARR_SHOP_URL are accepted for the base API address.
The repository .gitignore excludes .env, so a local .env file will not be
overwritten by git pull on your server.
Variable | Description |
| Base Dolibarr API endpoint, e.g. |
| Personal Dolibarr API token. |
| Optional logging verbosity ( |
| Transport to use: |
| Host/interface to bind when using HTTP transport (default |
| Port to bind when using HTTP transport (default |
| Optional host port to publish in Docker Compose (default |
| Optional Docker Compose container name (default |
| Optional Docker Compose network name (default |
| Set to |
Example .env:
DOLIBARR_URL=https://your-dolibarr.example.com/api/index.php
DOLIBARR_API_KEY=YOUR_API_KEY
LOG_LEVEL=INFO
MCP_CONTAINER_NAME=dolibarr-mcp-server
MCP_NETWORK_NAME=dolibarr-mcp-net
MCP_NETWORK_EXTERNAL=falseClaude Desktop configuration
Add the following block to claude_desktop_config.json, replacing the paths and
credentials with your own values:
{
"mcpServers": {
"dolibarr": {
"command": "C:\\path\\to\\dolibarr-mcp\\venv_dolibarr\\Scripts\\python.exe",
"args": ["-m", "dolibarr_mcp.dolibarr_mcp_server"],
"cwd": "C:\\path\\to\\dolibarr-mcp",
"env": {
"DOLIBARR_SHOP_URL": "https://your-dolibarr.example.com",
"DOLIBARR_API_KEY": "YOUR_API_KEY"
}
}
}
}Restart Claude Desktop after saving the configuration. The MCP server reads the same environment variables when launched from Linux or macOS hosts.
Open WebUI configuration
Open WebUI connects to the Dolibarr MCP server over Streamable HTTP, so start
the server with MCP_TRANSPORT=http (locally or via Docker Compose) and then
add a new MCP server in Settings → Admin → MCP Servers.
Example configuration (URL + optional headers):
{
"name": "dolibarr",
"url": "http://localhost:8080/",
"headers": {
"mcp-protocol-version": "2024-11-05"
}
}If you are running Docker Compose, point the URL at
http://<host>:${MCP_HOST_PORT:-18004}/ instead.
LM Studio configuration
LM Studio also connects over Streamable HTTP. Ensure the server is running with
MCP_TRANSPORT=http and then open Settings → MCP Servers → Add Server.
Example entry:
Name: dolibarr
URL: http://localhost:8080/If you are using Docker, substitute the host port published by
docker-compose.yml, for example http://localhost:18004/.
▶️ Usage
Start the MCP server
The server communicates over STDIO by default, so run it in the foreground from the virtual environment:
python -m dolibarr_mcp.dolibarr_mcp_serverLogs are written to stderr to avoid interfering with the MCP protocol. Keep the process running while Claude Desktop is active.
HTTP streaming mode (for Open WebUI or remote MCP clients)
Enable the HTTP transport by setting MCP_TRANSPORT=http (and optionally
MCP_HTTP_HOST / MCP_HTTP_PORT). This keeps the server running without STDIO
and exposes the Streamable HTTP transport compatible with Open WebUI:
MCP_TRANSPORT=http MCP_HTTP_PORT=8080 python -m dolibarr_mcp.dolibarr_mcp_serverThen point Open WebUI’s MCP configuration at http://<host>:8080/. The MCP
protocol headers (including mcp-protocol-version) are handled automatically by
Open WebUI’s MCP client.
Docker Compose listener (recommended for MCP clients)
The bundled docker-compose.yml starts the HTTP listener by default so MCP
clients such as Open WebUI or MCPO can connect to
http://<host>:${MCP_HOST_PORT:-18004}/ right away.
Test the Dolibarr credentials
Use the standalone connectivity check before wiring the server into an MCP host:
python -m dolibarr_mcp.test_connection --url https://your-dolibarr.example.com/api/index.php --api-key YOUR_API_KEYWhen the environment variables are already set, omit the overrides and run
python -m dolibarr_mcp.test_connection.
🧪 Development
Run the test-suite with
pytest(seedocs/development.mdfor coverage options and Docker helpers).Editable installs rely on the
src/layout and expose thedolibarr-mcpconsole entry point for backwards compatibility.The repository structure, tooling, and docs intentionally mirror
prestashop-mcpto keep the companion projects aligned.
📄 License
Released under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
Create contacts, move deals, send proposals and invoices, read your inbox, from Claude or ChatGPT.
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
Dubsado MCP server for ChatGPT, Claude and any AI agent: create project, send form, send invoice, record payment and list unpaid invoices in your own Dubsado account. Cotlet works in the account through your Cloud Browser, a real Chrome where you sign in to Dubsado yourself; Cotlet does not store your password and you need no Dubsado API key. About the official Dubsado API: Dubsado has no public API (checked 11 Oct 2026). Its only official connection is Zapier, on the Premier plan: five triggers and one action, Create Project. Setup and FAQ: https://cotlet.dev/integrations/dubsado-api-mcp-server
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a Model Context Protocol interface for the Dolibarr ERP/CRM, enabling AI agents to manage customers, products, invoices, and orders. It features specialized search tools and server-side filtering to efficiently interact with Dolibarr's REST API while minimizing token usage.1MIT
- AlicenseAqualityDmaintenanceAn MCP server for Dolibarr ERP/CRM that lets Claude or any MCP-compatible client read and manage thirdparties, commercial proposals, contracts, and invoices directly.22MIT
- 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
- FlicenseNot gradedqualityCmaintenanceEnables an AI agent to connect to Dolibarr ERP via REST API and perform CRUD operations on invoices, orders, products, third parties, and other entities, with stateless multi-tenant support.-