DBJavaGenixCAUTION
面向 Java 后端开发的智能数据库代码生成工具:基于 MCP 解析 MySQL 等数据库结构与关系,生成 Entity、DAO、Service、Controller 等分层代码,并支持模板扩展、规范校验与依赖管理。
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://mseep.ai/app/zhaoxingpeng-dbjavagenix)
把"用 LLM 看着数据库做反向工程"做成一件可重复、可审计的事。 Skills 定义"怎么做" · MCP 提供"能做什么" · MCP Apps 让结果"看得见"。
[](https://github.com/ZhaoXingPeng/DBJavaGenix/actions/workflows/ci.yml)
graph LR Client[Claude Desktop / Cursor / Cherry] -->|Skill 加载| Skills Skills[".claude/skills/java-codegen-from-dbspringboot-migration"] Skills -->|按需调用| MCP subgraph MCP[MCP Server 34 工具] direction TB DB[db_* 连接 / 查询 / 描述] Atom[codegen_build_contextcodegen_render_entity/dao/service/controller/dto/mapper] Graph[schema_topo_orderschema_cluster_tablesschema_check_cycles] AI[ai_infer_business_namesai_recommend_templateai_summarize_schema] Vis[db_render_er_diagram] Obs[server_metrics / server_healthai_metrics / search_tools] end MCP -->|返回 _meta| Apps[MCP Apps 渲染] Apps -->|mermaid / dashboard / code-diff / tree| Client MCP -->|读取| Data[MySQL / PostgreSQL / SQLite + Mustache templates]
它解决什么问题
把数据库表反向生成成 Spring Boot 工程 (Entity/DAO/Service/Controller/DTO/Mapper) 不是新东西 —— EasyCode、MyBatis-Plus Generator、Renren-generator 都做了多年。LLM 时代的区别在于:
快速开始
Docker (推荐)
docke
050750ea5212OBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add dbjavagenix-mcp-server --env AI_API_KEY=${AI_API_KEY} --env ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} --env DBJAVAGENIX_TEST_DB_PASSWORD=${DBJAVAGENIX_TEST_DB_PASSWORD} -- npx -y [email protected]{
"mcpServers": {
"dbjavagenix-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"AI_API_KEY": "${AI_API_KEY}",
"ANTHROPIC_API_KEY": "${ANTHROPIC_API_KEY}",
"DBJAVAGENIX_TEST_DB_PASSWORD": "${DBJAVAGENIX_TEST_DB_PASSWORD}"
}
}
}
}Exposed tools (18)
16 read · 2 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
codegen_render_entity | read | d |
db_codegen_analyze | read | Analyze database table structure for code generation with template context |
db_connect_test | write | Test database connection and create connection session |
db_disconnect | read | Close an existing database connection session |
db_query_databases | read | List all databases on the server |
db_query_execute | write | Execute custom SQL query (SELECT only for safety) |
db_query_table_exists | read | Check if a table exists in the database |
db_query_tables | read | List all tables in a specific database |
db_table_columns | read | Get detailed column information for a table |
db_table_describe | read | Get complete table structure information including columns, types, constraints |
db_table_foreign_keys | read | Get foreign key relationships for a table |
db_table_indexes | read | Get index information for a table |
db_table_primary_keys | read | Get primary key information for a table |
duplicate | read | test |
search_tools | read | d |
springboot_analyze_dependencies | read | Analyze project dependencies and generate intelligent recommendations for code generation |
springboot_read_config | read | Read Spring Boot project configuration (YAML/Properties/Bootstrap) and infer base package |
springboot_validate_project | read | Validate SpringBoot project structure and dependencies before code generation |
Trust audit
CAUTIONgrade B · trust 87/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- declared (1 observation(s))
- Shell
- declared (2 observation(s))
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (6)
__import__(mod_name)
"mysql://reader:p%[email protected]/app?charset=utf8mb4",
"postgresql://reader:p%[email protected]/app",
pytest, pytest-asyncio, pytest-cov, ruff, mypy, pre-commit
mcp, pydantic, sqlalchemy, pymysql, psycopg2-binary, PyYAML, python-dotenv, pystache
docs/design/dbjavagenix-architecture.png
Gates applied: no_behavioural_pass.
050750ea5212full audit observations/trust-audit/mcp-server/zhaoxingpeng__dbjavagenix.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 050750ea5212 | CAUTION | B | 87 | first audit |
Questions
What is the DBJavaGenix MCP server?
面向 Java 后端开发的智能数据库代码生成工具:基于 MCP 解析 MySQL 等数据库结构与关系,生成 Entity、DAO、Service、Controller 等分层代码,并支持模板扩展、规范校验与依赖管理。
What tools does DBJavaGenix expose?
18 in total: 16 read-only, 2 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is DBJavaGenix safe to connect to an agent?
With care. The audit graded it B (87/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does DBJavaGenix need?
It reads AI_API_KEY, ANTHROPIC_API_KEY and DBJAVAGENIX_TEST_DB_PASSWORD from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does DBJavaGenix run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as dbjavagenix-mcp-server at 0.1.1.
How current is this page?
The grade is for one exact copy of the source (050750ea5212), read on 2026-10-08. The repository is watched and re-audited when it changes.