Spring Initializr MCP Server

Spring Initializr MCP Server

springinitializr-mcp•byhpalma

An MCP server that wraps the Spring Initializr API, letting AI assistants generate and download customized Spring Boot projects.

License: MIT License•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Generates Spring Boot projects with custom configurations through the generate-spring-boot-project tool.
  • •Supports Maven and Gradle project types, Java, Kotlin and Groovy languages, and selectable Java versions.
  • •Adds Spring Boot dependencies and can optionally extract downloaded ZIP files.
  • •Dynamically fetches the latest Spring Boot versions and dependencies from Spring Initializr metadata.

BEST FOR

  • •Ask an AI assistant to scaffold a web app with JPA, PostgreSQL and Spring Security dependencies.
  • •Generate a Kotlin Gradle project configured with WebFlux and MongoDB.
  • •Create a Maven project with Thymeleaf, Validation and Actuator dependencies.

ABOUT SPRINGINITIALIZR-MCP

Spring Initializr MCP Server is cataloged as an MCP server attributed to hpalma. An MCP server that wraps the Spring Initializr API, letting AI assistants generate and download customized Spring Boot projects. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spring Initializr MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What does the generate-spring-boot-project tool return?

It returns the absolute path to the downloaded file or extracted directory.

Which build systems and languages can projects use?

Project type options include maven-project, gradle-project and gradle-project-kotlin, with language choices java, kotlin and groovy.

Can the downloaded project ZIP be extracted automatically?

Yes, the server offers an optional shouldExtract parameter to extract the ZIP file.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 75e2c4d57178 · 采集于 2026-11-13 13:22:43 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Spring Initializr MCP Server

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

# Run with dev profile for more logging
./gradlew bootRun --args='--spring.profiles.active=dev'

# Generate updated constants from Spring Initializr
./gradlew generateToolDescriptions

# Run tests
./gradlew test

# Run native tests
./gradlew nativeTest

Code Generation

The project uses a Gradle task to fetch the latest Spring Initializr metadata and generate constants for supported dependencies and Java versions:

./gradlew generateToolDescriptions

This ensures the tool always supports the latest Spring Boot versions and dependencies by:

  • Fetching metadata from https://start.spring.io/metadata/client
  • Generating SpringInitializrConstants.java with current dependencies
  • Updating supported Java versions and default values

Testing

The project includes comprehensive tests:

  • Unit Tests: Standard JUnit tests for core functionality
  • Integration Tests: Tests for the MCP protocol implementation
  • Native Tests: Validation that native compilation works correctly
  • URL Builder Tests: Validation of Spring Initializr URL construction
# Run all tests
./gradlew test nativeTest nativeIntegrationTest

# Run only unit tests
./gradlew test

# Run only native integration tests
./gradlew nativeIntegrationTest

Native Performance Testing

The integration tests include startup time validation to ensure native compilation provides expected performance benefits:

  • Native executable startup under 1 second
  • Full MCP protocol handshake validation
  • Tool discovery and invocation testing

CI/CD

The project uses GitHub Actions for:

  • Continuous Integration: Build and test on every push/PR
  • Release Automation: Create native binaries for all platforms
  • Multi-platform Support: Linux, Windows, macOS (x64 and ARM64)
  • Automated Testing: Unit, integration, and native tests

Release Process

  1. Create a new release on GitHub or trigger workflow manually
  2. Native binaries are automatically built for all platforms
  3. Binaries are attached to the release for download

Configuration

Application Configuration

The server uses Spring Boot configuration with the following key properties:

spring:
  application:
    name: springinitializr-mcp
  ai:
    mcp:
      server:
        name: springinitializr
        version: 1.0.0

Environment Profiles

  • Default: Minimal logging for production use
  • Dev: Enhanced logging for development and debugging

API Reference

Tool: generate-spring-boot-project

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

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for new functionality
  5. Ensure all tests pass (./gradlew test nativeTest)
  6. Update generated constants if needed (./gradlew generateToolDescriptions)
  7. Commit your changes (git commit -m 'Add amazing feature')
  8. Push to the branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

Troubleshooting

Common Issues

Native executable fails to start:

  • Ensure you have the correct binary for your platform
  • Check that the binary has execute permissions on Unix systems
  • Verify no antivirus software is blocking execution

Project generation fails:

  • Check internet connectivity to Spring Initializr
  • Verify the specified dependencies are valid
  • Ensure the download directory exists and is writable

MCP connection issues:

  • Verify the Claude Desktop configuration is correct
  • Check that the binary path is absolute and valid
  • Restart Claude Desktop after configuration changes

Debug Mode

Run with the dev profile for enhanced logging:

./gradlew bootRun --args='--spring.profiles.active=dev'

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spring Initializr MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/springinitializr-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools