# JavaBytes

> JavaBytes is an MCP server for developer tools. 71 Java-oriented tools for sandboxed files, MySQL, JavaFX drawing and Spring Boot. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/markymakes-dev/javabytes
- **MCP Registry name:** io.github.markymakes-dev/javabytes
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-11-23

## About

JavaBytes is written in Java with no MCP SDK; the protocol is implemented directly on Jackson and speaks JSON-RPC over stdio. The README is frank that most generator tools only reword a prompt, and that the real capability sits in the file sandbox, live MySQL access, JavaFX rendering and project inspection.

A fresh install exposes 44 capability tools, with 30 template generators off until enabled through JAVABYTES_ENABLE. File tools only touch directories allowed by JAVABYTES_ALLOWED_DIRS or the client's MCP roots, and root directories like `/` are refused. SQL is read-only (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH, 1,000 rows maximum). JavaFX tools draw to an off-screen canvas and export a PNG, and analysis tools inspect Spring Boot layouts and parse data models from mongoose, prisma, sequelize or SQL into proposed DDL.

It needs JDK 21 or newer and, for the npx launcher, Node.js 18+. Each tool carries MCP annotations so clients can auto-approve reads or ask before writes.

## Features

- **Sandboxed filesystem:** Read, write, search and compare files only within allowed roots.
- **Read-only MySQL:** Query, list tables and describe columns with a 1,000 row cap.
- **JavaFX canvas:** Draw shapes and text off-screen and export a real PNG.
- **Spring Boot inspection:** Analyses project layout and runs evidence-based diagnostics.
- **Data model extraction:** Parses ORM and SQL declarations into proposed schemas with confidence notes.
- **Tool group flags:** Enable or disable tools by group or name with environment variables.

## Good for

- Let an assistant inspect a Spring Boot project's layout and dependencies
- Run read-only queries against a MySQL development database
- Generate a PNG diagram from JavaFX drawing commands
- Convert mongoose or prisma models into relational DDL proposals

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add javabytes --env JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' -- npx -y javabytes-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add javabytes --env JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' -- npx -y javabytes-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.javabytes]
command = "npx"
args = ["-y", "javabytes-mcp"]
env = { JAVABYTES_DB_PASSWORD = "<JAVABYTES_DB_PASSWORD>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' javabytes npx -- -y javabytes-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "javabytes": {
      "command": "npx",
      "args": [
        "-y",
        "javabytes-mcp"
      ],
      "env": {
        "JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 13 tools changes data; 5 names don't say. From the server's own tool labels and tool names; not verified by us.

- `query_database` (name suggests: reads): Read-only SQL with a 1,000 row maximum.
- `list_tables` (name suggests: reads): Lists tables and views.
- `describe_table` (name suggests: reads): Returns column metadata.
- `javafx_init_canvas`: Creates an off-screen canvas.
- `javafx_export_image` (name suggests: reads): Snapshots the canvas to a PNG.
- `project_diagnostic`: Evidence-based dependency and configuration check.
- `analyze_springboot_project` (name suggests: reads): Spring Boot layout inspection.
- `extract_data_models`: Parses data declarations into tables and columns.
- `models_to_schema`: Converts parsed models into normalised schema proposals.
- `generate_database`: Executes proposed DDL against a JDBC URL.
- `read_text_file` (name suggests: reads): Reads a file inside the sandbox.
- `write_file` (name suggests: changes): Writes a file inside the sandbox.
- `search_files` (name suggests: reads): Glob and optional content regex search.

## FAQ

### Which Java version is required?

JDK 21 or newer; the README says it was built and tested with JDK 25.

### Can JavaBytes write to my database?

Query tools are read-only; generate_database creates schema from proposed DDL and refuses to overwrite existing tables unless confirmed.

### Are the generator tools on by default?

No. The 30 template generators are opt-in.

### How do I limit file access?

Set JAVABYTES_ALLOWED_DIRS or rely on the roots the client advertises.

### How do I add JavaBytes to Claude Code?

Run this command in your terminal: claude mcp add javabytes --env JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' -- npx -y javabytes-mcp

### What are the best alternatives to JavaBytes?

The closest alternatives to JavaBytes are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/javabytes
