About threadmine
threadmine is an MCP server for AI assistants that analyzes Java thread dumps, aimed at developers investigating JVM issues. It returns detected problems, a health score, and a link to an interactive report.
Key features
- 01Analyze JVM thread dumps
- 02Detect deadlocks and CPU spikes
- 03Find pool exhaustion and virtual thread pinning
- 04Return a health score and report link
- 05Fetch an earlier analysis by ID
Use cases
- 01Investigate deadlocks in a JVM application
- 02Look into CPU spikes or pool exhaustion
- 03Check for virtual thread pinning
- 04Review earlier analysis results in chat
MCP support
The MCP server provides tools to analyze thread dumps and retrieve an analysis by ID. Analysis uses the workspace's daily quota; retrieving an existing result is read-only.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @threadmine/mcpTHREADMINE_API_KEYSecretOptional. Without it, analyses run anonymously (5/hour per IP, report expires in 7 days)THREADMINE_API_URLOverride the ThreadMine API endpoint (default: https://api.threadmine.dev)Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
2Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| title | string | No | Optional title for the analysis |
| content | string | No | Raw thread dump text (jstack / jcmd Thread.print / kill -3 output) |
| file_path | string | No | Absolute path to a thread dump file — preferred for large dumps |
Details
From the project READMEThreadMine MCP Server
ThreadMine is a Java thread dump analyzer with AI — detects deadlocks, CPU spikes, pool exhaustion and virtual thread pinning. Free online, no signup.
Official MCP server for ThreadMine. Paste a JVM thread dump into your AI assistant — Claude Code, Claude Desktop or Cursor — and get back the detected problems, a health score and a link to the full interactive report, without leaving the chat.
Tools
| Tool | What it does | Quota |
|---|---|---|
analyze_thread_dump | Uploads a thread dump (inline text or file path) and returns detected problems, health score (0-100) and the report link | Consumes 1 analysis from your daily quota |
get_analysis | Fetches a previous analysis by id | Free (read-only) |
Setup
- Create a free account at threadmine.dev.
- Create an API key: Settings → API Keys in the web app.
- Add the server to your assistant:
Claude Code
claude mcp add threadmine -e THREADMINE_API_KEY=tf_live_xxx -- npx -y @threadmine/mcp
Claude Desktop / Cursor (claude_desktop_config.json / .cursor/mcp.json)
{
"mcpServers": {
"threadmine": {
"command": "npx",
"args": ["-y", "@threadmine/mcp"],
"env": { "THREADMINE_API_KEY": "tf_live_xxx" }
}
}
}
Usage
Ask your assistant things like:
- "Analyze this thread dump:
<paste>" - "Run the dump at /tmp/threaddump.txt through ThreadMine"
- "What did analysis
<id>find? Any deadlocks?"
Notes
- Analyses run in the workspace the API key belongs to and count against that workspace's plan quota (the Free plan includes a daily quota — pricing).
THREADMINE_API_URLcan override the API endpoint (self-hosted / staging).- Requires Node.js ≥ 20.
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.