Skip to content
MCP server

ThreadMine

Analyze JVM thread dumps from your assistant: deadlocks, pool exhaustion, health score

Runs locally
Install

ThreadMine is a freemium MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Freemium
Platforms
CLI, API
Runs
Locally
Version
0.2.0
Listing updated

Similar MCP servers

Install

Run in a terminal

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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.json

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

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Using several servers? Build one config file with the MCP config generator.

Configuration

  • THREADMINE_API_KEYOptional. 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)

About ThreadMine

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.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Freemium

Free anonymous use with rate limits; API key follows your ThreadMine plan quota

ThreadMine 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.

How AIPoweredBot checks servers