# ThreadMine

> ThreadMine is a freemium MCP server for developer tools. Analyze JVM thread dumps from your assistant: deadlocks, pool exhaustion, health score. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, API
- **Repository:** https://github.com/maschiojv/threadmine-mcp
- **MCP Registry name:** dev.threadmine/mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

This is the official MCP server for ThreadMine, a Java thread dump analyzer. You paste a dump or give a file path, and the assistant returns the detected problems, a health score from 0 to 100 and a link to the full interactive report. ThreadMine's own description lists deadlocks, CPU spikes, pool exhaustion and virtual thread pinning.

It works without an account, using the public endpoint: five analyses per hour and twenty per day per IP, with a public report link that expires after seven days. With THREADMINE_API_KEY set, analyses go to your private workspace under your plan's quota. The README flags a privacy point: dumps can contain hostnames, class names and SQL fragments and are sent to the ThreadMine API over TLS, and it suggests running them through the tm-anon anonymizer first.

A separate GitHub Action can dump a hung test JVM in CI and put the diagnosis in the job summary. The server needs Node.js 20 or later and is MIT licensed.

## Features

- **Thread dump analysis:** Uploads inline text or a file and returns problems and a health score.
- **Interactive report link:** Each analysis comes with a link to a full report.
- **Anonymous or keyed use:** Works without an account, or with an API key for private workspace reports.
- **Fetch earlier analyses:** get_analysis reads a previous result without using quota.
- **Anonymizer option:** tm-anon can mask hostnames and classes locally before upload.
- **CI hung-test action:** threadmine-action diagnoses stuck test JVMs in GitHub Actions.

## Good for

- Diagnose a Spring Boot app that stopped responding
- Check a jstack dump for deadlocks
- Find thread pool exhaustion
- Detect virtual thread pinning
- Explain why a CI test hung

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp --env THREADMINE_API_KEY='<THREADMINE_API_KEY>' -- npx -y @threadmine/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@threadmine/mcp"
      ],
      "env": {
        "THREADMINE_API_KEY": "<THREADMINE_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@threadmine/mcp"
      ],
      "env": {
        "THREADMINE_API_KEY": "<THREADMINE_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@threadmine/mcp"
      ],
      "env": {
        "THREADMINE_API_KEY": "<THREADMINE_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@threadmine/mcp"
      ],
      "env": {
        "THREADMINE_API_KEY": "<THREADMINE_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@threadmine/mcp"
      ],
      "env": {
        "THREADMINE_API_KEY": "<THREADMINE_API_KEY>"
      }
    }
  }
}
```

## Tools

- `analyze_thread_dump`: Uploads a thread dump and returns problems, a 0-100 health score and a report link.
- `get_analysis`: Fetches a previous analysis by id, read-only.

## FAQ

### Do I need an account?

No. Without a key you get 5 analyses per hour and 20 per day per IP.

### How long do anonymous reports last?

The public report link expires after 7 days.

### Is my dump sent anywhere?

Yes, to the ThreadMine API over TLS; the README suggests tm-anon for sensitive dumps.

### Which tools are exposed?

analyze_thread_dump and get_analysis.

### What licence is ThreadMine?

MIT.

### Is ThreadMine free?

ThreadMine has a free plan, with paid plans for more usage or features.

### How do I add ThreadMine to Claude Code?

Run this command in your terminal: claude mcp add mcp --env THREADMINE_API_KEY='<THREADMINE_API_KEY>' -- npx -y @threadmine/mcp

### What are the best alternatives to ThreadMine?

The closest alternatives to ThreadMine are M00N Report, Test Intel, Java All Call Graph Server, Gaffer and Tickstem.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [M00N Report](https://ai-powered.com/mcp/m00n-report): M00N Report is an open-source MCP server for developer tools.
- [Test Intel](https://ai-powered.com/mcp/test-intel): Test Intel is an open-source MCP server for developer tools.
- [Java All Call Graph Server](https://ai-powered.com/mcp/java-all-call-graph-server): Java All Call Graph Server is an open-source MCP server for developer tools.
- [Gaffer](https://ai-powered.com/mcp/gaffer): Gaffer is a freemium MCP server for developer tools.
- [Tickstem](https://ai-powered.com/mcp/tickstem): Tickstem is a freemium MCP server for developer tools.
- [Testdino MCP](https://ai-powered.com/mcp/testdino-mcp): Testdino MCP is an MCP server for developer tools.
- [Monito](https://ai-powered.com/mcp/monito): Monito is a freemium MCP server for developer tools.
- [Midge](https://ai-powered.com/mcp/midge): Midge is a free MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/threadmine
