NestDaddy

TryHackMe

io.github.realarmaansidhu/tryhackme-mcp ยท v0.1.0

Unofficial MCP server for TryHackMe: rooms, tasks, paths, profiles, progress, and lab machines.

Is this your server? Claim it to get a Verified maintainer mark, your own note here, and an email when it goes down or its tools change. Free.

MCP Score How we grade

This server runs on your own machine, so there is no public endpoint to check and grade.

Connect Runs on your machine

Terminal
claude mcp add tryhackme-mcp -e THM_SESSION=<THM_SESSION> -e THM_ALLOW_WRITES=<THM_ALLOW_WRITES> -- uvx tryhackme-mcp==0.1.0
claude_desktop_config.json
{
  "mcpServers": {
    "tryhackme-mcp": {
      "command": "uvx",
      "args": [
        "tryhackme-mcp==0.1.0"
      ],
      "env": {
        "THM_SESSION": "<THM_SESSION>",
        "THM_ALLOW_WRITES": "<THM_ALLOW_WRITES>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "tryhackme-mcp": {
      "command": "uvx",
      "args": [
        "tryhackme-mcp==0.1.0"
      ],
      "env": {
        "THM_SESSION": "<THM_SESSION>",
        "THM_ALLOW_WRITES": "<THM_ALLOW_WRITES>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "tryhackme-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "tryhackme-mcp==0.1.0"
      ],
      "env": {
        "THM_SESSION": "<THM_SESSION>",
        "THM_ALLOW_WRITES": "<THM_ALLOW_WRITES>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
THM_SESSION
Optional, secret
Optional. Value of your tryhackme.com connect.sid cookie; unlocks account tools.
THM_ALLOW_WRITES
Optional
Optional. Set to 1 to enable tools that change your account (machines, votes, joining rooms).

Details

Package[email protected] (PYPI, stdio)
First published23 Nov 2026
Last updated23 Nov 2026
Registry nameio.github.realarmaansidhu/tryhackme-mcp

More productivity servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.