npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

odoo-mcp-server

v1.1.0

Published

Model Context Protocol server for Odoo API with enhanced features

Downloads

40

Readme

Odoo MCP Server

Un serveur MCP (Model Context Protocol) qui intègre Odoo avec des fonctionnalités avancées pour la gestion des produits, des images, des prix fournisseurs et plus encore.

Fonctionnalités

Outils Génériques Odoo

  • search_records - Recherche d'enregistrements dans n'importe quel modèle
  • create_record - Création d'enregistrements
  • update_record - Mise à jour d'enregistrements
  • delete_record - Suppression d'enregistrements
  • execute_method - Exécution de méthodes personnalisées
  • get_model_fields - Récupération des définitions de champs

Gestion des Images

  • Import d'images depuis des URLs externes
  • Conversion automatique en base64
  • Génération de différentes tailles (128px, 256px, 512px, 1024px, 1920px)
  • Validation des images et des URLs
  • Optimisation pour Odoo

Gestion des Prix Fournisseurs

  • Synchronisation avec Supabase
  • Mise à jour des prix et quantités minimales
  • Suivi des mises à jour avec statuts
  • Support pour plusieurs fournisseurs

Ressources Humaines

  • search_employee - Recherche d'employés par nom
  • search_holidays - Recherche de congés par période

Installation

npm install -g odoo-mcp-server

Configuration

Variables d'Environnement Odoo

export ODOO_URL="https://your-odoo-instance.com"
export ODOO_DB="your-database"
export ODOO_USERNAME="your-username"
export ODOO_PASSWORD="your-password"

Configuration Claude Desktop

Ajoutez dans claude_desktop_config.json :

{
  "mcpServers": {
    "odoo": {
      "command": "npx",
      "args": ["-y", "odoo-mcp-server"],
      "env": {
        "ODOO_URL": "https://your-odoo-instance.com",
        "ODOO_DB": "your-database",
        "ODOO_USERNAME": "your-username",
        "ODOO_PASSWORD": "your-password"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Exemples d'Utilisation

Recherche de Produits

use_mcp_tool
server_name: odoo
tool_name: search_records
arguments: {
  "model": "product.template",
  "domain": [["sale_ok", "=", true]],
  "fields": ["name", "list_price", "default_code"],
  "limit": 10
}

Import d'Image Produit

use_mcp_tool
server_name: odoo
tool_name: import_product_image
arguments: {
  "product_code": "PROD001",
  "image_url": "https://example.com/images/product.jpg",
  "generate_all_sizes": true
}

Synchronisation des Prix Fournisseurs

use_mcp_tool
server_name: odoo
tool_name: sync_supplier_prices
arguments: {
  "supabase_connection": {
    "url": "https://your-project.supabase.co",
    "key": "your-api-key",
    "table": "supplier_prices"
  },
  "product_mapping": {
    "supabase_product_field": "product_code",
    "odoo_product_field": "default_code"
  },
  "price_mapping": {
    "price_field": "purchase_price",
    "min_qty_field": "minimum_quantity",
    "supplier_field": "supplier_id"
  }
}

Recherche d'Employés

use_mcp_tool
server_name: odoo
tool_name: search_employee
arguments: {
  "name": "John",
  "limit": 5
}

Recherche de Congés

use_mcp_tool
server_name: odoo
tool_name: search_holidays
arguments: {
  "start_date": "2025-01-01",
  "end_date": "2025-12-31",
  "employee_id": 42
}

Formats des Paramètres

Domaine de Recherche

Le paramètre domain accepte plusieurs formats :

// Format liste
[["is_company", "=", true]]

// Format objet
{
  "conditions": [
    {
      "field": "date_order",
      "operator": ">=",
      "value": "2025-03-01"
    }
  ]
}

// Conditions multiples
[
  ["date_order", ">=", "2025-03-01"],
  ["date_order", "<=", "2025-03-31"]
]

Images

  • Formats supportés : JPEG, PNG, GIF
  • Taille maximale : 10MB
  • Tailles générées : 128px, 256px, 512px, 1024px, 1920px
  • Les images sont automatiquement optimisées pour Odoo

Prix Fournisseurs

  • Les prix sont synchronisés par lot
  • Support pour les quantités minimales
  • Possibilité de spécifier un fournisseur par défaut
  • Suivi des mises à jour avec statuts de synchronisation

Développement

Installation des Dépendances

npm install

Build

npm run build

Développement avec Watch Mode

npm run dev

Licence

ISC