ThreadMine MCP Server
by maschiojv
README.md
# ThreadMine 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](https://modelcontextprotocol.io) server for [ThreadMine](https://threadmine.dev). 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
1. Create a free account at [threadmine.dev](https://threadmine.dev).
2. Create an API key: **Settings → API Keys** in the [web app](https://app.threadmine.dev).
3. Add the server to your assistant:
**Claude Code**
```bash
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`)
```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](https://threadmine.dev/pricing)).
- `THREADMINE_API_URL` can override the API endpoint (self-hosted / staging).
- Requires Node.js ≥ 20.
## License
MIT
TDQS
A4.6/5.0
Scored across 2 tools
Disambiguation5/5
The two tools are clearly distinct: one submits a new thread dump for analysis, the other retrieves results by ID. No overlap or ambiguity.
Naming Consistency5/5
Both tools follow a consistent verb_noun pattern ('analyze_thread_dump', 'get_analysis'), making them predictable and easy to distinguish.
Tool Count4/5
Two tools is reasonable for a specialized analysis server. It covers the essential create and retrieve operations without unnecessary bloat.
Completeness4/5
The server covers the core workflow (analyze and retrieve results). Missing list or delete functionality are minor gaps but do not break the usage flow.
Maintenance
ActivityStale
ResponsivenessNo issues