About douanecode-mcp
douanecode-mcp is an MCP server for AI agents that need to search EU and French HS, NC8 and TARIC customs codes. It provides code details, duty rates and recent tariff changes through the DouaneCode API, with a Pro API key required.
Key features
- 01Natural-language customs code search
- 02HS, NC8 and TARIC code details
- 03Duty rates and measures by origin
- 04Recent tariff change monitoring
Use cases
- 01Classifying a product for customs
- 02Checking duties for a country of origin
- 03Reviewing recent tariff changes
MCP support
Exposes four tools to MCP clients: search_customs_code, get_code_details, get_duty_rates and get_tariff_changes. Calls require a DouaneCode API key.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
uvx douanecode-mcpDOUANECODE_API_KEYSecretDouaneCode API key (Pro plan) — get one at https://douanecode.fr/compteLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEdouanecode-mcp
mcp-name: io.github.Courouge/douanecode-mcp
EU/French customs code search (HS, NC8, TARIC) for AI agents — natural-language tariff classification, duty rates and regulatory watch, powered by douanecode.fr. Requires a DouaneCode API key (Pro plan).
Serveur MCP officiel de DouaneCode.fr : donne aux agents IA (Claude, Cursor, agents logistique/ERP/e-commerce) un accès outillé à la recherche de codes douaniers HS/NC8/TARIC, aux taux de droits et à la veille tarifaire.
Modèle économique : chaque appel exige une clé API DouaneCode (plan Pro, 99 €/an — tier Cabinet à venir). Le serveur est un wrapper mince ; le backend existant applique authentification, rate limiting par plan et analytics.
Outils exposés
| Outil | Description |
|---|---|
search_customs_code | Description produit en langage naturel → codes candidats |
get_code_details | Détail d'un code (libellés, hiérarchie, unités) |
get_duty_rates | Droits de douane + mesures, option pays d'origine |
get_tariff_changes | Changements tarifaires récents (veille) |
Usage local (Claude Desktop / Claude Code / Cursor)
{
"mcpServers": {
"douanecode": {
"command": "uvx",
"args": ["douanecode-mcp"],
"env": { "DOUANECODE_API_KEY": "dc_..." }
}
}
}
Clé API : https://douanecode.fr/compte (plan Pro requis).
Dev
pip install -e ".[dev]"
pytest
Déploiement hébergé
Dockerfile + deploy/k8s.yaml (mcp.douanecode.fr, transport streamable-http).
Voir la note dans le manifeste : le mode hébergé nécessite de lire la clé API
depuis les headers client (TODO) ; le mode stdio publié sur PyPI fonctionne
sans cela.
Distribution (go-to-market)
- Publier sur PyPI (
douanecode-mcp) → utilisable viauvximmédiatement. - Lister sur les annuaires MCP (mcp.so, Smithery, PulseMCP, Glama) +
registre officiel
registry.modelcontextprotocol.io. - Page https://douanecode.fr/mcp expliquant l'installation → conversion Pro.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.