mcp-recherche-entreprise
Enables searching for French companies using the official data.gouv.fr API, with filters for name, location, activity, and certifications.
README
Serveur MCP data.gouv.fr
Un serveur MCP (Model Context Protocol) pour accéder aux données de data.gouv.fr, la plateforme française de données ouvertes.
🚀 Fonctionnalités
Ce serveur MCP fournit actuellement l'outil suivant pour interagir avec l'API recherche-entreprises.api.gouv.fr :
Recherche d'entreprises
search_companies: Rechercher des entreprises via l'API recherche-entreprises.api.gouv.fr
📋 Prérequis
- Node.js 18+
- npm ou yarn
🛠️ Installation
- Clonez le repository :
git clone <repository-url>
cd mcp-data-gouv-server
- Installez les dépendances :
npm install
- Copiez le fichier d'exemple d'environnement :
cp env.example .env
- Compilez le projet :
npm run build
🚀 Utilisation
Mode développement
npm run dev
Mode production
npm run build
npm start
🔧 Configuration
Le serveur utilise les variables d'environnement suivantes (optionnelles) :
API_RATE_LIMIT: Limite de taux pour les requêtes APIAPI_TIMEOUT: Timeout pour les requêtes API en millisecondes
📖 API des outils
search_companies
Rechercher des entreprises via l'API recherche-entreprises.api.gouv.fr.
Paramètres :
query(requis) : Recherche libre (nom, SIREN, SIRET, etc.)page(optionnel) : Numéro de page (défaut: 1)page_size(optionnel) : Nombre de résultats par page (défaut: 10)activite_principale(optionnel) : Code NAF/APEcode_postal(optionnel) : Code postal (5 chiffres ou liste séparée par des virgules)tranche_effectif_salarie(optionnel) : Tranche d'effectif salarié INSEEest_association(optionnel) : Est une associationest_bio(optionnel) : Uniquement les entreprises certifiées bioest_organisme_formation(optionnel) : Uniquement les organismes de formationest_qualiopi(optionnel) : Uniquement les entreprises certifiées Qualiopi
🔗 Intégration avec un client MCP
Pour utiliser ce serveur avec un client MCP, ajoutez la configuration suivante à votre fichier de configuration MCP :
{
"mcpServers": {
"data-gouv": {
"command": "node",
"args": ["/path/to/mcp-data-gouv-server/dist/server.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}
📝 Exemples d'utilisation
Recherche d'entreprises par nom
search_companies({
"query": "Apple",
"page_size": 5
})
Recherche d'entreprises par code postal
search_companies({
"query": "",
"code_postal": "75001",
"page_size": 10
})
Recherche d'entreprises par activité
search_companies({
"query": "",
"activite_principale": "62.02A",
"page_size": 5
})
Recherche d'associations
search_companies({
"query": "association",
"est_association": true,
"page_size": 10
})
🧪 Tests
Le projet inclut des scripts de test pour vérifier le bon fonctionnement :
# Test des APIs
npm run test:apis
# Test de l'intégration avec Cursor
npm run test:cursor
🤝 Contribution
Les contributions sont les bienvenues ! N'hésitez pas à :
- Fork le projet
- Créer une branche pour votre fonctionnalité
- Commiter vos changements
- Pousser vers la branche
- Ouvrir une Pull Request
📄 Licence
Ce projet est sous licence ISC.
🔗 Liens utiles
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.