jar-tools-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jar-tools-mcp Scan ./vendor/example.jar for supply-chain risks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jar-tools-mcp
MCP server for jar.tools' JAR security scanner. Scan a local .jar, .zip, or .class file for supply-chain risk — network activity, file access, process execution, and obfuscation/decompiler-evasion signals — directly from an AI agent, without opening a browser.
Features
Static behavioral analysis of
.jar/.zip/.classfiles — the file is never executedSuspicious-class counts broken down by category (network, file access, process execution, hard-to-review code)
Decompiler-anomaly detection (obfuscation/evasion signals)
Optional Pro license key raises the
.jarsize cap from 64MB to 256MB
Related MCP server: mcp-security-toolkit
Use Cases
Audit a dependency before adding it to a build — scan a resolved JAR pulled from Maven/Gradle before trusting it
Investigate a suspicious plugin or mod — check a Minecraft mod or IDE plugin JAR before installing
Review a vendor SDK — static analysis of a third-party binary before shipping it to production
Installation
npm install -g github:gogainda/jar-tools-mcpUntil the npm registry release is available, this installs directly from the public GitHub repository. No API key is required for the default free tier.
Configuration
Codex Setup
Add the MCP server with the Codex CLI:
codex mcp add jar-tools -- npx -y github:gogainda/jar-tools-mcpVerify that Codex can see it:
codex mcp listYou can also add it manually to ~/.codex/config.toml:
[mcp_servers.jar-tools]
command = "npx"
args = ["-y", "github:gogainda/jar-tools-mcp"]For Pro scans, export JARTOOLS_LICENSE_KEY before starting Codex and allow the
MCP server to receive it:
[mcp_servers.jar-tools]
command = "npx"
args = ["-y", "github:gogainda/jar-tools-mcp"]
env_vars = ["JARTOOLS_LICENSE_KEY"]In an active Codex session, use /mcp to confirm that jar-tools is connected.
Claude Code Setup
Add the MCP server using the CLI:
claude mcp add jar-tools -- npx -y github:gogainda/jar-tools-mcpOr add manually to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"jar-tools": {
"command": "npx",
"args": ["-y", "github:gogainda/jar-tools-mcp"]
}
}
}Optional: Pro License Key
If you have a jar.tools Pro license and need to scan .jar files larger than 64MB:
export JARTOOLS_LICENSE_KEY=your-license-keyOr pass license_key as a tool argument on individual calls.
Usage
Ask your agent to scan a file:
Scan ./vendor/some-library.jar for supply-chain risk before I add it as a dependency.The tool returns a text summary (suspicious-class count, top signal categories, decompiler-anomaly flags) plus the full JSON findings report.
API Reference
This server is a thin wrapper around the public jar.tools Security Scan API (POST /api/v1/security-scan/jar-report / class-report). See that page for the full response schema if you want to parse the JSON output yourself.
Development
# Build
npm run build
# Test
npm test
# Run directly
node dist/index.jsAuthor
Visit my personal site: https://igorstechnoclub.com
License
MIT
Available Tools
1 toolscan_jar_securityA
Run jar.tools' static security scan on a local .jar/.zip or .class file. Returns structured findings — suspicious-class counts by category (network activity, file access, process execution, hard-to-review/obfuscated code) plus decompiler-anomaly signals. Useful for auditing a dependency before adding it to a build, or investigating a suspicious plugin/mod. Static analysis only — the file is never executed. Free for .jar/.zip up to 64MB and .class up to 5MB; pass a Pro license_key to raise the JAR size cap to 256MB.
Inputs: file_path (required), license_key.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion between tools.
The single tool name 'scan_jar_security' follows a clear verb_noun pattern, consistent with good naming conventions.
With only one tool, the server is minimal. While it may suffice for a focused use case, the count is at the low end of reasonable scope.
The single tool covers the core functionality of static security scanning, returning structured findings. Minor gaps like retrieving past scan results or managing licenses are not addressed, but it handles the primary action well.
Maintenance
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Scan AI agent skills, MCP server packages and MCP configs before you install them. Static analysis.
Static MCP server scan: injection, secrets, tool poisoning. SARIF + rules catalog.
Related MCP Servers
- AlicenseCqualityDmaintenanceA secure-by-default MCP server and CLI for AI agents to inspect Spring Boot repositories and interact with runtime Actuator endpoints, enabling code review, dependency scanning, and monitoring.44MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that wraps Trivy and Gitleaks to provide file system vulnerability and secret scanning as tools for AI agents, enabling local, free security analysis.MIT
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server that wraps OWASP ZAP's REST API as Model Context Protocol tools, enabling AI agents to perform automated security scanning.-
- AlicenseCqualityDmaintenanceSecurity scanner and MCP server that catches dangerous patterns in MCP servers and AI agent projects, such as leaked secrets, shell execution, and prompt-injection text. Runs as both a CLI and MCP server with CI-friendly severity gates.21MIT