JavaBytes
71 Java-oriented tools for sandboxed files, MySQL, JavaFX drawing and Spring Boot
JavaBytes is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- Version
- 1.5.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add javabytes --env JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' -- npx -y javabytes-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"javabytes": {
"command": "npx",
"args": [
"-y",
"javabytes-mcp"
],
"env": {
"JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add javabytes --env JAVABYTES_DB_PASSWORD='<JAVABYTES_DB_PASSWORD>' -- npx -y javabytes-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.javabytes]
command = "npx"
args = ["-y", "javabytes-mcp"]
env = { JAVABYTES_DB_PASSWORD = "<JAVABYTES_DB_PASSWORD>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"javabytes": {
"command": "npx",
"args": [
"-y",
"javabytes-mcp"
],
"env": {
"JAVABYTES_DB_PASSWORD": "<JAVABYTES_DB_PASSWORD>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
JAVABYTES_ALLOWED_DIRSFilesystem sandbox roots (defaults to working dir + JVM temp dir)JAVABYTES_DB_URLJDBC URL for the MySQL toolsJAVABYTES_DB_USERMySQL userJAVABYTES_DB_PASSWORDMySQL password
About JavaBytes
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.
Tools this server provides (13)
Taken from the project documentation; the running server may differ.
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_databaseName suggests: reads
- Read-only SQL with a 1,000 row maximum.
- list_tablesName suggests: reads
- Lists tables and views.
- describe_tableName suggests: reads
- Returns column metadata.
- javafx_init_canvas
- Creates an off-screen canvas.
- javafx_export_imageName suggests: reads
- Snapshots the canvas to a PNG.
- project_diagnostic
- Evidence-based dependency and configuration check.
- analyze_springboot_projectName 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_fileName suggests: reads
- Reads a file inside the sandbox.
- write_fileName suggests: changes
- Writes a file inside the sandbox.
- search_filesName suggests: reads
- Glob and optional content regex search.
What it does
- 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
JavaBytes 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.


