Json To Java Class

Data REST API MCP

Generate Java POJO class source code from a JSON object. Nested objects become separate classes, arrays become List<T>, and you can choose Lombok @Data, getters/setters, or public fields.

This page documents the MCP tool findutils:json_to_java_class. See the REST reference →

Call it over MCP

Tool name findutils:json_to_java_class · no API keys · 120 requests/min per IP

Claude Code

claude mcp add findutils --transport http https://mcp.findutils.com/

Claude Desktop — claude_desktop_config.json

{
  "mcpServers": {
    "findutils": {
      "url": "https://mcp.findutils.com/"
    }
  }
}

Raw JSON-RPC (any MCP client) — verified example

curl -X POST https://mcp.findutils.com/ \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "json_to_java_class",
      "arguments": {
        "json": "{\"id\":1,\"name\":\"John\",\"skills\":[\"Java\"],\"address\":{\"city\":\"NY\"}}"
      }
    }
  }'

Input schema

Argument Type Required Description
json string yes JSON object to convert (the root must be an object).
class_name string no Name of the root class. Default: "Root". Default: "Root".
package_name string no Java package name, e.g. "com.example". Empty string omits the package line. Default: "com.example". Default: "com.example".
use_lombok boolean no Add the Lombok @Data annotation and import instead of explicit getters/setters. Default: false. Default: false.
generate_getters_setters boolean no Generate getters and setters (ignored when use_lombok or use_public_fields is true). Default: true. Default: true.
use_public_fields boolean no Declare fields as public instead of private. Default: false. Default: false.

Example arguments (verified)

{
  "json": {
    "id": 1,
    "name": "John",
    "skills": [
      "Java"
    ],
    "address": {
      "city": "NY"
    }
  }
}

Arguments that carry JSON as a string are shown decoded for readability. The Copy button copies the exact wire arguments.

Also a REST endpoint

The same tool answers plain HTTP at POST /api/tools/json-to-java-class/execute — no key, 60 requests/min.

Open the REST reference for Json To Java Class →

More Data tools