Spring Initializr MCP Server
About
Spring Initializr MCP Server is an MCP (Model Context Protocol) server that wraps the Spring Initializr API, allowing AI assistants to generate and download Spring Boot projects programmatically instead of manually visiting start.spring.io.
Details
- License
- MIT license
Explore
- Generate Spring Boot Projects: Create new Spring Boot projects with custom configurations
- Flexible Configuration: Support for different project types (Maven/Gradle), languages (Java/Kotlin/Groovy), and Java versions
- Dependency Management: Add popular Spring Boot dependencies automatically
- Native Compilation: Fast startup times with GraalVM native compilation
- Cross-Platform: Native binaries available for Linux, Windows, and macOS (x64 and ARM64)
- Automatic Extraction: Optional extraction of downloaded ZIP files
- Dynamic Metadata: Automatically fetches latest Spring Boot versions and dependencies
Add the MCP server to your Claude Desktop configuration:
Once configured, you can ask Claude to generate Spring Boot projects:
> "Create a Spring Boot web application with Spring Data JPA, PostgreSQL, and Spring Security dependencies"
> "Generate a Kotlin Spring Boot project using Gradle with WebFlux and MongoDB"
> "Create a Maven-based Spring Boot project with Thymeleaf, Validation, and Actuator"
The tool will generate and download the project as a ZIP file to your specified location, with optional automatic extraction.
The server uses Spring Boot configuration with the following key properties:
yamlspring:
application:
name: springinitializr-mcp
ai:
mcp:
server:
name: springinitializr
version: 1.0.0
```
- Default: Minimal logging for production use
- Dev: Enhanced logging for development and debugging
downloadFolderPath
(optional): Target download directory
shouldExtract
(optional): Whether to extract the ZIP file
projectType
(optional): Project build system type
language
(optional): Programming language
groupId
(optional): Maven/Gradle group identifier
artifactId
(optional): Project artifact identifier
springBootVersion
(optional): Spring Boot version to use
name
(optional): Project display name
description
(optional): Project description
packageName
(optional): Base Java package name
packaging
(optional): Packaging type (JAR/WAR)
javaVersion
(optional): Target Java version
dependencies
(optional): Comma-separated dependency list
Generates and downloads a Spring Boot project with the specified configuration.
Parameters:
- downloadFolderPath (optional): Target download directory
- shouldExtract (optional): Whether to extract the ZIP file
- projectType (optional): Project build system type
- language (optional): Programming language
- groupId (optional): Maven/Gradle group identifier
- artifactId (optional): Project artifact identifier
- springBootVersion (optional): Spring Boot version to use
- name (optional): Project display name
- description (optional): Project description
- packageName (optional): Base Java package name
- packaging (optional): Packaging type (JAR/WAR)
- javaVersion (optional): Target Java version
- dependencies (optional): Comma-separated dependency list
Returns: Absolute path to the downloaded file or extracted directory
An MCP (Model Context Protocol) server that provides access to Spring Initializr functionality, allowing AI assistants to generate and download Spring Boot projects programmatically.
What is this?
This project implements an MCP server that wraps the Spring Initializr API, enabling AI assistants (like Claude) to create Spring Boot projects with custom configurations. Instead of manually visiting start.spring.io, you can now ask your AI assistant to generate projects with specific dependencies, Java versions, and project structures.
Features
- Generate Spring Boot Projects: Create new Spring Boot projects with custom configurations
- Flexible Configuration: Support for different project types (Maven/Gradle), languages (Java/Kotlin/Groovy), and Java versions
- Dependency Management: Add popular Spring Boot dependencies automatically
- Native Compilation: Fast startup times with GraalVM native compilation
- Cross-Platform: Native binaries available for Linux, Windows, and macOS (x64 and ARM64)
- Automatic Extraction: Optional extraction of downloaded ZIP files
- Dynamic Metadata: Automatically fetches latest Spring Boot versions and dependencies
Supported Parameters
When generating a project, you can specify:
- Project Type: maven-project, gradle-project, gradle-project-kotlin
- Language: java, kotlin, groovy
- Java Version: 17, 21, 24 (defaults to 17)
- Packaging: jar, war (defaults to jar)
- Dependencies: Hundreds of Spring Boot starters and dependencies
- Project Metadata: Group ID, Artifact ID, name, description, package name
- Download Options: Custom download location and automatic ZIP extraction
Installation
Download Pre-built Binaries
Download the appropriate binary for your platform from the Releases page:
- Linux x64: springinitializr-mcp-linux-x64
- Windows x64: springinitializr-mcp-windows-x64.exe
- macOS x64: springinitializr-mcp-macos-x64
- macOS ARM64: springinitializr-mcp-macos-arm64
Build from Source
Requirements:
- Java 24
- GraalVM (for native compilation)
git clone https://github.com/hpalma/springinitializr-mcp.git
cd springinitializr-mcp
./gradlew build
./gradlew nativeCompile
Usage with Claude Desktop
Add the MCP server to your Claude Desktop configuration:
macOS/Linux
Edit~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"springinitializr": {
"command": "/path/to/springinitializr-mcp-binary"
}
}
}
Windows
Edit%APPDATA%/Claude/claude_desktop_config.json:
{
"mcpServers": {
"springinitializr": {
"command": "C:\\path\\to\\springinitializr-mcp-windows-x64.exe"
}
}
}
Example Usage
Once configured, you can ask Claude to generate Spring Boot projects:
> "Create a Spring Boot web application with Spring Data JPA, PostgreSQL, and Spring Security dependencies"
> "Generate a Kotlin Spring Boot project using Gradle with WebFlux and MongoDB"
> "Create a Maven-based Spring Boot project with Thymeleaf, Validation, and Actuator"
The tool will generate and download the project as a ZIP file to your specified location, with optional automatic extraction.
Available Dependencies
The server supports all Spring Initializr dependencies, including:
- Web: Spring Web, WebFlux, GraphQL, REST repositories
- Security: Spring Security, OAuth2, LDAP
- Data: JPA, JDBC, MongoDB, Redis, Elasticsearch, R2DBC
- Messaging: RabbitMQ, Apache Kafka, WebSocket
- Cloud: Spring Cloud Gateway, Config, Eureka, Feign
- Ops: Actuator, Micrometer, Distributed Tracing
- AI: Spring AI with various model providers
- Testing: TestContainers, Contract testing
The dependency list is automatically updated by fetching the latest metadata from Spring Initializr.
Development
Running in Development
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



