Skip to main content
Glama
mcp-dolibarr

mcp-dolibarr

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 kind parameter 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.

  1. Enable the API REST module (Home → Setup → Modules).

  2. 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

DOLIBARR_URL

required

API root, ending with /api/index.php

DOLIBARR_API_KEY

required

API key of the Dolibarr user

DOLIBARR_ALLOW_WRITE

false

Register the tools that write to Dolibarr

MCP_TRANSPORT

stdio

stdio, or http (streamable HTTP)

MCP_HOST

127.0.0.1

HTTP bind address

MCP_PORT

8000

HTTP port

MCP_PATH

/mcp

HTTP path, starting with /

Run

Requires uv.

uv run mcp-dolibarr

Claude Code, over stdio:

claude mcp add dolibarr -- uv run --directory /path/to/mcp-dolibarr mcp-dolibarr

Container, 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-dolibarr

The 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 dev and are squash-merged; dev goes to main at 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 -q

License

MIT

Available Tools

6 tools
dolibarr_getDolibarr GetA
Read-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 ObjectB
Read-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 StatusA
Read-only

Dolibarr version and API status: checks the connection and the API key.

Inputs: no named parameters. Returns: result

list_sales_documentsList Sales DocumentsC
Read-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 ProductsC
Read-only

Products and services whose reference or label contains text.

Inputs: page, text, type, limit. Returns: result

search_thirdpartiesSearch ThirdpartiesC
Read-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

    B3.2/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count4/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables 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.
      16
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Provides read-only EspoCRM access for AI assistants, enabling record retrieval and preparation of signed change sets without direct modification or deletion.
      7
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables 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
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables per-user Dolibarr API access with allowlisted tools for identity, time reporting, sales records, and leave requests, preserving Dolibarr's per-user permissions.
      MIT