mcp-server-dolibarr
An MCP server for Dolibarr ERP/CRM that lets Claude or any MCP-compatible client read and manage thirdparties, commercial proposals, contracts, and invoices directly.
README
mcp-server-dolibarr
An MCP server for Dolibarr ERP/CRM. Lets Claude (or any MCP-compatible client) read and manage your Dolibarr thirdparties (clients/suppliers), commercial proposals, contracts, and invoices directly — no manual API scripting needed.
Built by Nexora 360 Digital, released for anyone running Dolibarr to use for free.
Requirements
- A running Dolibarr instance (v15+) with the REST API module enabled (Setup → Modules → API)
- A Dolibarr API key for the user the assistant should act as (your user profile → API/REST tab → Generate Key)
- Node.js 18 or newer
Installation
No install needed — run it directly with npx (see configuration below), or clone this repo and run npm install.
Configuration
The server reads two environment variables:
| Variable | Description | Example |
|---|---|---|
DOLIBARR_URL |
Your Dolibarr REST API base URL | https://your-domain.com/dolibarr/api/index.php |
DOLIBARR_API_KEY |
The API key generated for your Dolibarr user | abc123... |
Claude Code
claude mcp add dolibarr \
--env DOLIBARR_URL=https://your-domain.com/dolibarr/api/index.php \
--env DOLIBARR_API_KEY=your_api_key_here \
-- npx -y mcp-server-dolibarr
Claude Desktop / other MCP clients
Add to your MCP config file (e.g. claude_desktop_config.json):
{
"mcpServers": {
"dolibarr": {
"command": "npx",
"args": ["-y", "mcp-server-dolibarr"],
"env": {
"DOLIBARR_URL": "https://your-domain.com/dolibarr/api/index.php",
"DOLIBARR_API_KEY": "your_api_key_here"
}
}
}
}
Available tools
Connectivity
dolibarr_ping— verify the URL/API key are working
Thirdparties (clients/suppliers)
dolibarr_list_thirdpartiesdolibarr_get_thirdpartydolibarr_find_thirdparty_by_emaildolibarr_create_thirdpartydolibarr_update_thirdparty
Commercial Proposals (Quotes)
dolibarr_list_proposalsdolibarr_get_proposaldolibarr_create_proposaldolibarr_add_proposal_linedolibarr_validate_proposal
Contracts
dolibarr_list_contractsdolibarr_get_contractdolibarr_create_contractdolibarr_add_contract_line
Invoices
dolibarr_list_invoicesdolibarr_get_invoicedolibarr_create_invoicedolibarr_add_invoice_linedolibarr_validate_invoicedolibarr_get_invoice_pdf_url
Anything else
dolibarr_request— raw passthrough to any Dolibarr REST endpoint (/products,/users,/projects, etc.) for the parts of Dolibarr's huge API surface this server doesn't wrap explicitly yet.
Notes & known Dolibarr quirks
- Proposals, contracts and invoices are created in two steps in Dolibarr's API: create the header first, then add line items separately (
*_linesendpoints). The tools above mirror that. - Dolibarr 23.x line-creation silent-failure bug: on Dolibarr 23 instances,
POST /{proposals|invoices|contracts}/{id}/linesactually expects the body wrapped as{"request_data": {...fields...}}, not a flat object of fields (despite this not matching the field names documented for older Dolibarr versions). Sending a flat object doesn't error — it silently creates a blank line withspecial_code: "3"(no description, qty 0, price 0) instead of your real data.dolibarr_add_proposal_line,dolibarr_add_invoice_lineanddolibarr_add_contract_linealready wrap the body correctly to work around this. If you see blank/special_code: 3lines appearing on Dolibarr versions other than 23.x, check your instance's live schema at/api/index.php/explorer/swagger.jsonand adjustindex.jsaccordingly — Dolibarr's REST API shape has changed across major versions. - On some Dolibarr versions, certain endpoints (e.g. contracts) only work reliably for admin/SuperAdmin API keys — if a non-admin key fails, try generating the key as an admin user.
country_idfor thirdparties follows Dolibarr's internal country table (e.g.144= Sri Lanka in standard Dolibarr installs) — check your instance if unsure.
Contributing
Issues and PRs welcome — this was built to scratch a real itch (managing client proposals/invoices via Claude) and intentionally keeps a dolibarr_request escape hatch so it stays useful even where dedicated tools haven't been written yet.
License
MIT — see LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。