mcp-erp

mcp-erp

MCP server for interacting with an ERP system via REST API, featuring Microsoft authentication and tools for managing clients, quotes, and templates.

Category
Visit Server

README

MCP ERP Client

Serveur MCP (Model Context Protocol) pour interagir avec l'ERP via l'API REST.

Securite

Ce MCP ne contient aucun secret dans le code source. Toutes les donnees sensibles sont dans le fichier .env (exclu du repo via .gitignore).

Double verrou d'authentification :

  1. Cle API (X-API-Key) — sans cette cle, l'API rejette toutes les requetes
  2. Compte Microsoft (Azure AD Device Code Flow) — l'utilisateur doit s'authentifier avec un compte Microsoft autorise dans le tenant Azure AD

Meme si quelqu'un clone ce repo, il ne peut rien faire sans :

  • La cle API (ERP_API_KEY)
  • Un compte Microsoft dans le bon tenant Azure AD (AZURE_AD_TENANT_ID)
  • L'ID de l'application Azure AD (AZURE_AD_CLIENT_ID)

Installation

npm install
cp .env.example .env
# Remplir le .env avec les vraies valeurs
npm run build

Configuration (.env)

ERP_API_URL=https://votre-api.vercel.app
ERP_API_KEY=votre-cle-api
AZURE_AD_TENANT_ID=votre-tenant-id
AZURE_AD_CLIENT_ID=votre-client-id

Utilisation avec Claude Desktop / Claude Code

Ajouter dans la configuration MCP :

{
  "mcpServers": {
    "erp": {
      "command": "node",
      "args": ["/chemin/vers/mcp/dist/index.js"]
    }
  }
}

Outils disponibles (14)

Authentification (2)

Outil Description
erp_login Connexion Microsoft (Device Code Flow)
erp_status Verifier l'etat de la session

Clients (4)

Outil Description
list_clients Rechercher/lister les clients
get_client Detail d'un client par ID
create_client Creer un client (societe, SIREN, adresse obligatoires)
update_client Modifier un client

Devis (6)

Outil Description
list_devis Rechercher/lister les devis
get_devis Detail d'un devis avec ses lignes
create_devis Creer un devis (brouillon)
update_devis Modifier un devis
add_devis_item Ajouter une ligne a un devis
update_devis_item Modifier une ligne de devis

Templates (2)

Outil Description
list_templates Lister les modeles de devis
get_template Detail d'un template avec ses lignes

Architecture

mcp/
  src/
    index.ts          # Point d'entree (transport stdio)
    api-client.ts     # Client HTTP (X-API-Key + Bearer Microsoft)
    schemas.ts        # Validation Zod des inputs
    auth/
      device-code.ts  # Microsoft Device Code Flow
      refresh.ts      # Auto-refresh du token
      token-store.ts  # Stockage local (~/.erp-mcp/auth.json)
    tools/
      auth-tools.ts   # erp_login, erp_status
      clients.ts      # CRUD clients
      devis.ts        # CRUD devis + items
      templates.ts    # Lecture templates

Aucune connexion directe a la base de donnees. Tout passe par l'API REST.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured