Maven Project Generator MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Maven Project Generator MCP create a Maven plugin project with groupId com.mycompany and artifactId custom-maven-plugin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🚀 Maven Project Generator MCP
Un serveur MCP (Model Context Protocol) pour générer automatiquement des projets Maven complets avec export ZIP intégré, spécialement conçu pour Claude Desktop.
📋 Table des matières
Related MCP server: MCP Universal Test Suite Generator
🎯 Fonctionnalités
✨ Génération automatique
Projets Maven complets : Applications, plugins, bibliothèques
Structure standard : Respect des conventions Maven
Templates intelligents : Génération de pom.xml optimisés
Classes par défaut : Main.java ou Mojo selon le type
🔍 Détection intelligente
Auto-détection des packages Java depuis le code source
Extraction automatique des noms de classes
Validation des structures Maven
Gestion d'erreurs robuste
📦 Export et organisation
Export ZIP automatique avec structure complète
Gestion des répertoires automatique
Support multi-fichiers (Java, ressources, documentation)
Chemins personnalisés pour fichiers spéciaux
🎨 Types de projets supportés
Applications : Projets Java standard avec main()
Plugins Maven : Avec classes Mojo et annotations
Bibliothèques : Projets jar réutilisables
🔧 Installation
Prérequis
Node.js 18+
npm ou yarn
Claude Desktop installé
1. Cloner et installer
git clone <votre-repo>
cd maven-project-generator-mcp
npm install2. Compiler le TypeScript
npm run build⚙️ Configuration
Configuration Claude Desktop
Fichier de configuration :
Windows :
%APPDATA%\Claude\claude_desktop_config.jsonmacOS/Linux :
~/.config/claude-desktop/claude_desktop_config.json
Contenu :
{
"mcpServers": {
"maven-project-generator": {
"command": "node",
"args": [
"C:\\chemin\\vers\\votre\\projet\\dist\\index.js"
],
"description": "Générateur de projets Maven avec export ZIP",
"env": {
"NODE_ENV": "production"
}
}
}
}Variables d'environnement
# Optionnel : répertoire de sortie par défaut
MAVEN_OUTPUT_DIR=./output
# Optionnel : niveau de log
LOG_LEVEL=info🎮 Utilisation
Commandes disponibles dans Claude Desktop
1. 🏗️ Créer un projet
Crée un nouveau projet Maven avec :
- Group ID: com.monentreprise
- Artifact ID: mon-super-plugin
- Type: plugin
- Description: Plugin Maven pour automatiser les builds2. ☕ Ajouter des fichiers Java
Ajoute cette classe Java au projet :
package com.monentreprise.utils;
public class StringHelper {
public static String capitalize(String input) {
return input.substring(0, 1).toUpperCase() + input.substring(1);
}
}3. 📄 Ajouter des ressources
Ajoute un fichier application.properties avec :
app.name=Mon Application
app.version=1.0.04. 📦 Générer le ZIP final
Génère maintenant le projet Maven complet en ZIPWorkflow typique
Créer le projet de base
Ajouter les classes Java nécessaires
Configurer les ressources
Personnaliser le pom.xml si besoin
Générer le ZIP final
🔍 API Documentation
Interface MavenProject
interface MavenProject {
groupId: string; // Identifiant du groupe
artifactId: string; // Identifiant de l'artifact
version: string; // Version du projet
name?: string; // Nom affiché
description?: string; // Description
javaVersion?: stringAvailable Tools
8 toolsadd_any_fileC
Ajouter n'importe quel fichier au projet avec chemin personnalise
Inputs: filePath (required), content (required).
add_java_fileC
Ajouter un fichier Java au projet Maven
Inputs: content (required), packageName, className, type, +1 more.
add_resource_fileC
Ajouter un fichier de ressources au projet
Inputs: fileName (required), content (required), type.
clear_projectC
Vider le projet en cours
Inputs: no named parameters.
create_maven_projectC
Creer un nouveau projet Maven vide avec la structure standard
Inputs: groupId (required), artifactId (required), version, name, +3 more.
generate_zipC
Generer et sauvegarder le projet Maven en ZIP
Inputs: outputPath.
list_filesB
Lister tous les fichiers du projet en cours
Inputs: no named parameters.
set_pom_xmlC
Definir ou modifier le contenu du pom.xml
Inputs: content (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose with no overlap: adding different file types, clearing, creating, generating, listing, and setting the POM file. The descriptions specify unique actions and targets, making it easy for an agent to select the right tool without confusion.
All tools follow a consistent verb_noun pattern in snake_case (e.g., add_java_file, create_maven_project, list_files). The naming is predictable and readable throughout the set, with no deviations in style or convention.
With 8 tools, the count is well-scoped for a Maven project generator. Each tool earns its place by covering essential operations like project creation, file management, and output generation, without being too sparse or bloated.
The tool set provides complete coverage for the domain of Maven project generation, including CRUD-like operations: create project, add/clear files, list contents, set configuration (POM), and generate output (ZIP). There are no obvious gaps that would hinder an agent's workflow.
Maintenance
Related MCP Connectors
Build Spring Boot applications, ready for coding agents, including best practices.
- VULKDeprecatedio.github.devjoaocastro
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
A MCP server built for developers enabling Git based project management with project and personal…
Generate a ServiceBricks C# .NET microservice as a ZIP file.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAutomates Java Maven testing workflows with decision table-based test generation, security vulnerability scanning, JaCoCo coverage analysis, and Git automation.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze Java and Web projects, automatically generate unit tests (JUnit) and end-to-end tests (Selenium), and execute them directly through Maven or NPM commands.-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to fetch comprehensive information about Maven packages from Maven Central, including README content, package metadata, dependencies, and search functionality with GitHub integration.8 npmMIT
- AlicenseAqualityDmaintenanceEnables AI to analyze Java classes from Maven project dependencies, with support for decompilation strategies and configurable groupId mappings.35MIT