Spring Boot data generation MCP server

Spring Boot data generation MCP server

data-generator-mcp-server-java•byuthircloudnative

A Spring Boot application built with Spring AI that runs as a synchronous MCP server, exposing data generation tools that AI models can call.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes generateData, which generates data based on a provided prompt string and returns the generated data as a String.
  • •Exposes getUserData, which generates a User object with ID, name, and age from a provided id and age.
  • •Runs the MCP server in synchronous mode.
  • •Lets developers add new tools by annotating service methods with @Tool and registering the service in the McpServerConfig class.

BEST FOR

  • •AI models that need to generate data on demand through MCP tools.
  • •Developers learning to build a custom MCP server with Spring AI in Java.

ABOUT DATA-GENERATOR-MCP-SERVER-JAVA

Spring Boot data generation MCP server is cataloged as an MCP server attributed to uthircloudnative. A Spring Boot application built with Spring AI that runs as a synchronous MCP server, exposing data generation tools that AI models can call. 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: Not specified. 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 Boot data generation 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 tools does the MCP server expose?

It exposes generateData, which generates data from a prompt, and getUserData, which generates a User object from an ID and age.

Can I add my own tools to the server?

Yes. Create a service class, add methods annotated with @Tool, register the service in McpServerConfig, and expose it via a ToolCallbackProvider.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 4380cbb26912 · 采集于 2026-11-13 13:55:47 UTC

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

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

Data Generator Java MCP Server

A Spring Boot application that implements a Model Completion Protocol (MCP) server for data generation. This project demonstrates how to create a custom MCP server using Spring AI that can be integrated with AI models to generate data based on prompts.

Overview

This application serves as an MCP server that provides tools for data generation. It uses Spring AI's MCP server capabilities to expose Java methods as tools that can be called by AI models. The server is configured to run in synchronous mode.

Features

  • Implements the Model Completion Protocol (MCP) server
  • Provides tools for data generation
  • Supports synchronous execution mode
  • Includes a REST client for external API integration
  • Simple User data model implementation

Prerequisites

  • Java 21 or higher
  • Maven 3.9+ (or use the included Maven wrapper)
  • Basic understanding of Spring Boot and Spring AI

Getting Started

Building the Application

  1. Clone the repository:

    git clone <repository-url>
    cd data-generator-java-mcp-server
    
  2. Build the application using Maven:

    ./mvnw clean install
    

Running the Application

Run the application using the Maven wrapper:

./mvnw spring-boot:run

The MCP server will start and be ready to accept requests.

Configuration

MCP Server Configuration

The MCP server is configured in the application.properties file:

# Application name
spring.application.name=data-generator-java-mcp-server

# MCP server name
spring.ai.mcp.server.name=data-generator-java-mcp-server

# MCP server type (SYNC or ASYNC)
spring.ai.mcp.server.type=SYNC

# Disable Spring Boot banner
spring.main.banner-mode=off

# Run as a non-web application
spring.main.web-application-type=none

Custom Configuration

You can customize the MCP server by modifying the McpServerConfig class:

@Configuration
public class McpServerConfig {

    @Bean
    public ToolCallbackProvider dataGeneratorToolCallbackProvider(DataGeneratorService dataGeneratorService) {
        return MethodToolCallbackProvider.builder()
                .toolObjects(dataGeneratorService)
                .build();
    }
}

Available Tools

The MCP server exposes the following tools:

  1. generateData - Generates data based on a provided prompt

    • Parameter: prompt (String)
    • Returns: Generated data as a String
  2. getUserData - Generates user data based on provided ID and age

    • Parameters:
      • id (String)
      • age (int)
    • Returns: User object with ID, name, and age

Extending the Application

To add new tools to the MCP server:

  1. Create a new service class or extend the existing DataGeneratorService
  2. Add methods annotated with @Tool annotation
  3. Register the service in the McpServerConfig class

Example:

@Service
public class MyCustomService {

    @Tool(
        name = "myCustomTool",
        description = "Description of what the tool does"
    )
    public SomeReturnType myCustomTool(String param1, int param2) {
        // Implementation
        return result;
    }
}

Then register it in the configuration:

@Bean
public ToolCallbackProvider myCustomToolCallbackProvider(MyCustomService myCustomService) {
    return MethodToolCallbackProvider.builder()
            .toolObjects(myCustomService)
            .build();
}

Integration with AI Models

This MCP server can be integrated with AI models that support the Model Completion Protocol. The AI model can call the tools exposed by this server to generate data as part of its processing.

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 Boot data generation 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/data-generator-mcp-server-java)

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