by handsomestWei · MCP Server · ★ 43
Java Class Analyzer MCP Server 一个基于Model Context Protocol (MCP)的Java类分析服务,可以扫描Maven项目依赖、反编译Java类文件、获取class方法列表等详细信息,并提供给LLM进行代码分析。 适用场景 Cursor等AI工具直接生成调用二方(内部调用)、三方包(外部调用)接口的代码,但因AI无法读取未在当前工程中打开的依赖源码,导致生成的代码错误频出,甚至出现幻觉式编码。 为解决此问题,一般会直接拷贝源码内容喂给LLM;或者先将源码文件放到当前工程内,再在对话中引用。 而使用本地反编译MCP方案最有效,能精准解析jar包中的类与方法,显著提升代码生成的准确性和可用性。 功能特性 🚀使用方便:mcp服务基于TypeScript实现,使用npm打包,方便分发和安装,弱环境依赖。 🔍 依赖扫描: 自动扫描Maven项目的所有依赖JAR包 📦 类索引: 建立类全名到JAR包路径的映射索引 🔄 反编译: 使用CFR工具(已内置有)实时反编译.class文件为Java源码 📊 类分析: 分析Java类的结构、方法、字段、继承关系等 💾 智能缓存: 按包名结构缓存反编译结果,支持缓存控制 🚀 自动索引: 执行分析前自动检查并创建索引 ⚙️ 灵活配置: 支持外部指定CFR工具路径 🤖 LLM集成:...
| Stars | 43 |
| Forks | 12 |
| Language | TypeScript |
| Category | MCP Server |
| License | Apache-2.0 |
| Quality Score | 57.7594657109537/100 |
| Open Issues | 1 |
| Last Updated | 2026-06-28 |
| Created | 2025-09-10 |
| Platforms | mcp, node |
| Est. Tokens | ~11k |
These tools work well together with java-class-analyzer-mcp-server for enhanced workflows:
Explore other popular mcp server tools:
java-class-analyzer-mcp-server is java class反编译mcp server. It is categorized as a MCP Server with 43 GitHub stars.
java-class-analyzer-mcp-server is primarily written in TypeScript. It covers topics such as cfr, decompiler, java-class.
You can find installation instructions and usage details in the java-class-analyzer-mcp-server GitHub repository at github.com/handsomestWei/java-class-analyzer-mcp-server. The project has 43 stars and 12 forks, indicating an active community.
java-class-analyzer-mcp-server is released under the Apache-2.0 license, making it free to use and modify according to the license terms.