Serveur MCP (Master Control Program) pour n8n qui fournit des outils de validation de workflows et de bonnes pratiques pour vos projets d'automatisation
What is lowprofix n8n mcp server
Serveur MCP pour n8n
Ce projet est un serveur MCP (Master Control Program) pour n8n qui fournit des outils de validation de workflows et de bonnes pratiques pour vos projets d'automatisation n8n.
Fonctionnalités
- Validation de workflows : Vérifiez que vos workflows respectent les bonnes pratiques
- Conventions de nommage
- Gestion des erreurs
- Sécurité
- Performance
- Documentation
- Intégration NextJS : Générez des intégrations pour vos workflows n8n dans des applications NextJS
- Génération automatique de routes API
- Création de documentation OpenAPI/Swagger
- Génération de types TypeScript
- Client API pour faciliter l'intégration
- Gestion des workflows : Interagissez avec vos workflows n8n (liste, récupération, création, mise à jour, suppression, export, import)
- API n8n : Accédez directement à l'API n8n pour des opérations avancées
- Templates de workflows : Utilisez des templates prĂȘts Ă l'emploi pour diffĂ©rents cas d'usage, notamment Google Calendar
Prérequis
- Node.js (v16 ou supérieur)
- pnpm (v7 ou supérieur)
- Une instance n8n (locale ou distante comme votre instance Cloudron sur n8n.bienquoi.com)
Installation
- Clonez ce dépÎt ou naviguez vers le dossier du projet
- Installez les dépendances :
pnpm install
- Configurez les variables d'environnement :
cp .env.example .env
Modifiez le fichier .env
avec vos informations de connexion Ă l'API n8n.
Utilisation
Construction du projet
pnpm build
Démarrage du serveur
pnpm start
Le serveur MCP sera accessible à l'adresse http://localhost:3000 (ou le port spécifié dans votre fichier .env).
Utilisation avec Claude Desktop
Pour utiliser ce serveur MCP avec Claude Desktop, vous devez configurer le fichier claude_desktop_config.json
dans le dossier %APPDATA%/Claude/
:
{
"mcpServers": {
"n8n-mcp-server": {
"command": "node",
"args": ["/chemin/absolu/vers/mcp-n8n-server/dist/server.js"]
}
}
}
Structure du projet
mcp-n8n-server/
âââ src/ # Code source
â âââ tools/ # Outils MCP
â â âââ N8nApiTool.ts # Outil pour interagir avec l'API n8n
â â âââ WorkflowManagerTool.ts # Outil pour gĂ©rer les workflows
â â âââ NextJSIntegrationTool.ts # Outil pour gĂ©nĂ©rer des intĂ©grations NextJS
â â âââ WorkflowValidatorTool.ts # Outil pour valider les workflows
â â âââ ...
â âââ validators/ # Validateurs de workflows
â â âââ naming.js # Validateur de conventions de nommage
â â âââ errorHandling.js # Validateur de gestion des erreurs
â â âââ security.js # Validateur de sĂ©curitĂ©
â â âââ performance.js # Validateur de performance
â â âââ documentation.js # Validateur de documentation
â âââ resources/ # Ressources partagĂ©es
â âââ server.ts # Point d'entrĂ©e du serveur
âââ dist/ # Code compilĂ©
âââ public/ # Fichiers statiques
âââ output/ # RĂ©pertoire pour les sorties des outils
âââ .env.example # Exemple de fichier de configuration
âââ README.md # Documentation
Outils disponibles
1. N8nApiTool
Interagit directement avec l'API n8n.
// Exemple d'utilisation
{
"method": "GET",
"endpoint": "/workflows",
"params": "?active=true"
}
2. WorkflowManagerTool
GÚre les workflows n8n (liste, récupÚre, crée, met à jour, supprime, exporte, importe).
// Exemple d'utilisation
{
"action": "list",
"tags": "production"
}
3. NextJSIntegrationTool
GénÚre des intégrations NextJS pour les workflows n8n.
// Exemple d'utilisation
{
"workflowId": "123",
"outputDir": "./my-nextjs-app/pages/api",
"generateTypes": true,
"generateOpenAPI": true
}
4. WorkflowValidatorTool
Valide les workflows n8n selon différents critÚres.
// Exemple d'utilisation
{
"workflow": "{...}",
"validators": ["naming", "errorHandling", "security"],
"strictness": "high"
}
Contribution
Les contributions sont les bienvenues ! N'hésitez pas à ouvrir une issue ou une pull request.
Licence
MIT
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP æćĄćšïŒçšäșçźĄçæĄéąćŸçăæ„çèŻŠæ ăć猩ăç§»ćšçïŒćźć šèź©Traećźç°ïŒ
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | äžäžȘćć° Ant Design ç»ä»¶ä»Łç çæćč»è§ç MCP æćĄïŒć ć«çł»ç»æç€șèŻăç»ä»¶ææĄŁăAPI ææĄŁă代ç ç€șäŸćæŽæ°æ„ćżæ„èŻą
Submit Your MCP Server
Share your MCP server with the community
Submit Now