mcp-dolibarr
🚀 mcp-dolibarr
FastMCP 기반의 고성능·보안 강화 MCP(Model Context Protocol) 서버로, 모든 AI 어시스턴트(Claude Desktop, Cursor, AI Agents)가 공식 REST API를 통해 Dolibarr ERP/CRM과 기본적으로 상호작용할 수 있게 해줍니다.
✨ 주요 기능
이 MCP 서버는 12개 모듈에 걸친 30개 이상의 전용 도구를 통해 Dolibarr의 기업 관리 요구사항 전체를 포괄합니다:
🏢 거래처 및 회사 (
tools/thirdparties.py): 목록 조회, 이름 기반 전체 텍스트 검색, ID별 상세 조회, 고객/잠재고객 카드 생성 및 부분 업데이트.👤 연락처 및 담당자 (
tools/contacts.py): 회사에 연결된 연락처(개인) 목록 조회 및 생성.📦 제품 및 서비스 (
tools/products.py): 품목 및 서비스 전체 카탈로그, 참조번호 검색, 생성, 업데이트, VAT 제외 가격 및 부가세율 관리.📄 견적 및 상업 제안 (
tools/proposals.py): 다중 라인 견적 생성, 검증, 라인 업데이트/삭제 및 자동 전환.🛒 고객 주문 (
tools/orders.py): 검증된 견적에서 주문 생성, 주문 라인의 상세 조회 및 수정.💳 청구서 및 결제 (
tools/invoices.py): 주문 또는 직접 청구서 생성, 최종 검증 및 청구서 라인 관리.📊 창고별 재고 (
tools/stocks.py): 창고별 제품의 실시간 실제 재고 수준 즉시 조회.📁 프로젝트 (
tools/projects.py): 프로젝트 생성, 조회 및 고객 카드 연결.📜 계약 (
tools/contracts.py): 서비스 계약 추적 및 거래처용 계약 생성.🛠️ 작업 지시서 (
tools/interventions.py): 현장 기술 작업 지시서 관리.📑 문서 및 PDF (
tools/documents.py): 공식 PDF(아쥐르(Azur), 크라브(Crabe) 등 모델) 자동 생성 및 Base64 인코딩 다운로드.🔌 직접 REST API(비상 모드) (
tools/raw.py):call_dolibarr_api도구를 통해 전용 도구로 커버되지 않는 모든 Dolibarr REST 경로를 직접 조회.
Related MCP server: MCP Server for Odoo
🌟 mcp-dolibarr가 다른 MCP 서버보다 추가로 제공하는 것
기본적이거나 일반적인 MCP 게이트웨이와 달리, 이 서버는 결정적인 부가가치를 제공합니다:
🔄 단일 호출로 복잡한 오케스트레이션 (
convert_proposal_to_invoice): AI가 수동으로 4번의 연속 요청을 수행하도록 강제하는 대신, 오케스트레이터 도구가 검증된 견적 $\rightarrow$ 고객 주문 $\rightarrow$ 청구서 $\rightarrow$ 청구서 검증을 자동으로 연속 실행합니다.✏️ 라인 단위 세밀한 조작(추가 / 업데이트 / 삭제): 견적, 주문, 청구서에서 라인별 관리(품목 추가, 수량/가격/라벨 수정, 라인 삭제)를 완벽하게 지원합니다.
🛡️ 기본 제공 보안 / 읽기 전용 모드 (
READ_ONLY=true): 민감한 프로덕션 환경을 위해 서버를 조회 전용으로 제한할 수 있습니다. 모든 쓰기 요청(POST,PUT,DELETE)은 소스에서 차단 및 거부됩니다.🔁 복원력 및 지수 백오프(HTTP 429): Dolibarr API의 속도 제한을 지능적으로 처리합니다. 과부하 시 AI 에이전트를 실패시키지 않고 지연(1초, 2초, 4초)과 함께 자동 재시도합니다.
🎯 LLM에 최적화된 정리 및 포맷팅:
Dolibarr의 원시 JSON 응답(종종 50개 이상의 불필요한 내부 필드로 가득함)을 정리하고 명확하고 읽기 쉬운 텍스트로 요약합니다.
사전 엄격한 검증(이메일, 양수 금액, 필수 필드)을 통해 Dolibarr에 잘못된 형식의 요청을 보내지 않도록 방지합니다.
📄 실제 PDF 파일 생성 및 추출: 규정 PDF 생성을 지시하고 AI 에이전트가 Base64로 인코딩된 콘텐츠를 검색할 수 있게 합니다.
🌐 기본 멀티 전송 지원(
stdio,http,sse,streamable-http): 로컬 컴퓨터(Claude Desktop, Cursor)와 클라우드 서버의 컨테이너화된 마이크로서비스 모두에서 작동합니다.
🏃 MCP 서버 실행 방법(Run)
1. 로컬 환경 준비
# 1. Créer l'environnement virtuel Python
python -m venv .venv
# 2. Activer l'environnement
# Linux / macOS / Git Bash :
source .venv/bin/activate
# Windows PowerShell :
# .venv\Scripts\Activate.ps1
# 3. Installer les dépendances
pip install -r requirements.txt
# 4. Configurer le fichier de variables d'environnement
cp .env.example .env.env 파일에서 Dolibarr 인스턴스에 대한 액세스를 구성합니다:
DOLIBARR_URL=http://localhost:8080/api/index.php
DOLIBARR_API_KEY=votre_cle_api_dolibarr
MCP_TRANSPORT=stdio
LOG_LEVEL=INFO
READ_ONLY=false2. MCP 서버 시작
A. 로컬 stdio 모드(Claude Desktop / Cursor / VS Code)
터미널에서 간단히 실행:
python server.pyClaude Desktop을 연결하려면 claude_desktop_config.json 파일에 다음 구성을 추가합니다:
{
"mcpServers": {
"dolibarr": {
"command": "python",
"args": ["/chemin/absolu/vers/mcp-dolibarr/server.py"],
"env": {
"DOLIBARR_URL": "http://localhost:8080/api/index.php",
"DOLIBARR_API_KEY": "votre_cle_api_dolibarr"
}
}
}
}B. 원격 http / Streamable HTTP 서버 모드
MCP 서버를 HTTP로 노출하려면(예: 원격 서버 또는 클라우드 컨테이너):
MCP_TRANSPORT=http MCP_PORT=8000 python server.py서버는 http://0.0.0.0:8000에서 액세스할 수 있습니다.
3. Docker로 실행
Docker Compose 사용(권장)
docker-compose up -d --buildDocker CLI 사용
docker build -t mcp-dolibarr .
docker run -d -p 8000:8000 --env-file .env mcp-dolibarr🧪 단위 테스트 실행
단위 테스트 스위트는 pytest와 HTTP mock respx를 사용하여 클라이언트 및 도구의 동작을 검증합니다(실제 네트워크 호출이나 Dolibarr 수정 없음):
pytest📁 프로젝트 아키텍처 및 구조
mcp-dolibarr/
├── app.py # Initialisation de l'instance FastMCP & gestion du lifespan
├── server.py # Point d'entrée principal (Transports stdio/http & Logging)
├── config/
│ └── settings.py # Centralisation et validation des paramètres d'environnement (.env)
├── dolibarr/
│ ├── client.py # Client HTTP asynchrone httpx connecté à l'API REST Dolibarr
│ ├── auth.py # Authentification HTTP via le header DOLAPIKEY
│ └── exceptions.py # Hiérarchie des erreurs et exceptions métier
├── tools/ # 12 modules d'outils MCP exposés aux assistants IA
│ ├── thirdparties.py # Gestion des tiers et sociétés clients/prospects
│ ├── contacts.py # Gestion des contacts personnes physiques
│ ├── products.py # Catalogue produits et services
│ ├── proposals.py # Devis & Orchestrateur de conversion devis->facture
│ ├── orders.py # Commandes clients et gestion de leurs lignes
│ ├── invoices.py # Facturation, validation et paiements
│ ├── stocks.py # Suivi des niveaux de stock par entrepôt
│ ├── projects.py # Fiches projets
│ ├── contracts.py # Suivi des contrats clients
│ ├── interventions.py # Fiches d'intervention technique
│ ├── documents.py # Génération & téléchargement de PDF
│ └── raw.py # Outil de secours API REST brute
├── utils/
│ ├── formatters.py # Nettoyage et mise en forme des réponses JSON pour les LLM
│ └── validators.py # Validation stricte des entrées utilisateur
├── tests/ # Tests unitaires automatisés (pytest + respx)
├── Dockerfile # Image Docker du serveur MCP
├── docker-compose.yml # Fichier Docker Compose
├── requirements.txt # Liste des dépendances Python
└── README.md # Documentation du projetThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Odoo ERP systems through natural language to search records, create entries, update data, and manage business operations. Supports secure authentication and configurable access controls for production environments.
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to interact with Odoo ERP systems through natural language, allowing users to search, create, update, and manage business records like customers, products, and invoices across any Odoo instance.1Mozilla Public 2.0
- 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
- FlicenseNot gradedqualityCmaintenanceExposes a curated subset of the Officegest API v2 (22 CRUD tools) for managing clients, sales, and stock to AI clients like Claude Code and Claude Desktop.1
Related MCP Connectors
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Chile DTE for AI agents - boleta/factura electronica via OpenFactura or LibreDTE. Stateless BYO.
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Houmamba1/mcp-dolibarr'
If you have feedback or need assistance with the MCP directory API, please join our Discord server