MCP ExplorerExplorer

Dolibarr Mcp

@hrishi2814on 16 days ago
1 MIT
FreeCommunity
AI Systems
An intelligent AI agent designed to streamline Dolibarr ERP operations. It automates invoice processing from documents and provides conversational data retrieval using a powerful LLM and custom Model Context Protocol (MCP) tools. This project transforms complex ERP workflows into simple, automated interactions.

Overview

What is Dolibarr Mcp

dolibarr-mcp is an intelligent AI agent designed to streamline operations within the Dolibarr ERP system. It automates invoice processing and enables conversational data retrieval through a powerful LLM and custom Model Context Protocol (MCP) tools.

Use cases

Use cases for dolibarr-mcp include automating invoice processing, managing third-party data, retrieving stock information, and simplifying complex ERP workflows into user-friendly interactions.

How to use

To use dolibarr-mcp, first ensure your Dolibarr ERP instance is running and accessible. Install the required dependencies, run the main interface using ‘python doli-mk1.py’, and access the Gradio web interface on your localhost. Enter your API key and select the desired operation to interact with Dolibarr.

Key features

Key features of dolibarr-mcp include a Gradio Web UI for easy interaction, support for various API operations (GET, POST, PUT, DELETE), prebuilt operations for quick access to third-party data, invoices, and stock information, and the ability to send custom payloads to Dolibarr endpoints.

Where to use

dolibarr-mcp can be used in various fields that require efficient ERP management, including finance, inventory management, customer relationship management, and any business operations that utilize the Dolibarr ERP system.

Content

[Work in Progress]

Dolibarr MCP Tool

A Gradio-based interface and toolkit for interacting with the Dolibarr ERP system via its API. This project provides user-friendly web interfaces to perform various Dolibarr operations, such as managing third parties, invoices, products, and more, without manual API calls or data entry.

Features

  • Gradio Web UI: Easily interact with Dolibarr ERP through a modern web interface.
  • API Operations: Supports GET, POST, PUT, DELETE requests to Dolibarr endpoints.
  • Prebuilt Operations: Quickly fetch third parties, invoices, and stock information.
  • Custom Payloads: Send custom data to Dolibarr endpoints.
  • Demo Utility: Includes a sample app for letter counting to demonstrate Gradio integration.

Getting Started

Prerequisites

Install dependencies:

pip install gradio requests

Dolibarr Setup

  • Ensure your Dolibarr ERP instance is running and accessible.
  • Obtain your Dolibarr API key from your user profile in Dolibarr.
  • Update the API base URL in the scripts if your Dolibarr instance is not at http://localhost/dolibarr/api/index.php.

Usage

1. Run the Main Interface

To launch the Dolibarr API tool:

python doli-mk1.py

2. visit the gradio on your localhost port(default: 7860), click on the view as api/mcp and copy the mcp configuration for the tool

3. add the mcp config on cursor/cline,etc and you are free to use this as a mcp tool

The Gradio interface will open in your browser. Enter your API key and select the desired operation.

File Descriptions

  • doli-mk1.py: Advanced Gradio interface for Dolibarr API. Supports all HTTP methods and endpoints with payloads.
  • doli.py: Simple Gradio interface for fetching third parties, invoices, and stock.
  • README.md: Project documentation.

Contributing

Pull requests and suggestions are welcome! Please open an issue to discuss your ideas or report bugs.


This project is not affiliated with Dolibarr. It is an independent tool to make Dolibarr API usage easier for developers and end-users.

Tools

No tools

Comments