TJMCP is an MCP server that lets Agents know about compiled Java classes, by using:
- Java Class File API to extract low level information about the class file.
- Ollama for local inference, to interpret the low level details and generate a report of the given class.
The result is a Markdown document describing the class, generated locally without having to expose your private code to a remote LLM.
You can read more about this project in my article: An MCP Server To Describe Java Classes
-
Build the project:
mvn clean install
-
Add the following configuration to your agent:
{ "tjmcp": { "command": "/path/to/java", "args": [ "-jar", "/path/to/project/target/tjmcp-0.1.jar" ], "env": { "TJMCP_CACHE_FOLDER": "/home/nacho/tjmcp-cache", "TJMCP_LANGCHAIN4J_OLLAMA_URL": "http://localhost:11434", "TJMCP_LANGCHAIN4J_OLLAMA_MODEL": "qwen3-coder:latest" }, "timeout": 300 } }