java-dev-mcp-server

sk71994/java-dev-mcp-server

3.2

If you are the rightful owner of java-dev-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A comprehensive Model Context Protocol (MCP) server designed specifically for Java backend developers to enhance their daily development workflow.

Tools
  1. java-class-analyzer

    Analyze Java classes for patterns, dependencies, and potential issues

  2. spring-controller-generator

    Generate Spring Boot REST controllers with proper annotations

  3. jpa-entity-generator

    Create JPA entities from specifications

  4. unit-test-generator

    Generate JUnit 5 test templates for existing classes

Java Backend Developer MCP Server

A comprehensive Model Context Protocol (MCP) server designed specifically for Java backend developers to enhance their daily development workflow.

Features

Tools (AI-Controlled Actions)

  • java-class-analyzer: Analyze Java classes for patterns, dependencies, and potential issues
  • spring-controller-generator: Generate Spring Boot REST controllers with proper annotations
  • jpa-entity-generator: Create JPA entities from specifications
  • unit-test-generator: Generate JUnit 5 test templates for existing classes

Resources (Data Sources)

  • java-project://current/structure: Current Java project structure and organization
  • java-project://current/dependencies: Project dependencies and their versions
  • java-project://current/configuration: Application configuration files

Prompts (User-Invoked Templates)

  • create-spring-boot-service: Step-by-step service creation with best practices
  • implement-crud-operations: Generate complete CRUD operations for entities

Requirements

  • Java 17 or higher
  • Gradle 8.x

Building

./gradlew build

Running

./gradlew bootRun

Or run the JAR directly:

java -jar build/libs/java-dev-mcp-server.jar

Usage

The server communicates via JSON-RPC over stdio. Example tool usage:

{
  "method": "tools/call",
  "params": {
    "name": "spring-controller-generator",
    "arguments": {
      "entityName": "User",
      "packageName": "com.example.user",
      "includeCrud": true,
      "useResponseEntity": true
    }
  }
}

Integration

This MCP server can be integrated with AI assistants like Claude to provide Java development assistance.

License

MIT License