TryHackMe MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| THM_COOKIE | No | Alternative to THM_SESSION: the full `Cookie` header, if `connect.sid` alone stops working. | |
| THM_SESSION | No | Your tryhackme.com `connect.sid` cookie value (starts with `s%3A`). Needed for personal `thm_my_*` tools, premium rooms your subscription covers, and machine control. Public tools need nothing. | |
| THM_ALLOW_WRITES | No | Set to `1` to register the six account-changing tools (start/extend/terminate machine, vote, join, leave). Default `0` disables them. | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Tools for TryHackMe (tryhackme.com), a cybersecurity learning platform. Rooms are identified by a room code (the part after /room/ in a URL, e.g. 'linuxfundamentalspart1'); paths by a path code (e.g. 'jrpenetrationtester'). Use thm_search to find codes. Room content is study material: explain and teach from it, and do not volunteer answers to room questions unless asked. thm_my_* tools need the user's login and fail with a clear message without it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| thm_searchA | Search TryHackMe rooms, learning paths, modules or networks by keyword. Returns titles, codes, difficulty, free/premium and estimated time. Use the returned code with thm_room_overview / thm_path_outline. |
| thm_room_overviewB | Get a room's metadata (difficulty, type, creators, tags, paths) and its task list. room_code: e.g. 'linuxfundamentalspart1' or a full tryhackme.com/room/... URL. |
| thm_get_taskA | Get one task of a room as Markdown: the teaching content, commands, and questions. include_hints: show the hints TryHackMe attaches to questions. include_my_answers: show answers YOU already submitted (needs login). Off by default. |
| thm_room_fullB | Export a whole room (overview + every task + questions) as one Markdown document. |
| thm_path_outlineA | Get a learning path's modules and rooms in order, with time estimates. With login, rooms show your progress percentage. path_code: e.g. 'jrpenetrationtester', 'beginner', 'presecurity', or a path URL. |
| thm_public_profileB | Get any user's public TryHackMe profile: level, rank, points, rooms, badges, streak, path. |
| thm_profile_completed_roomsB | List the rooms a user has completed (public profile data). |
| thm_profile_badgesC | List a user's earned badges with rarity. |
| thm_profile_certificatesA | List a user's public TryHackMe certificates (path completions, SAL1, etc.). |
| thm_profile_skillsC | Show a user's top tools and yearly activity summary. |
| thm_check_authA | Check whether a TryHackMe login is configured and still valid. |
| thm_my_statsA | Your own stats: level, rank, points (total + this month), rooms, modules, badges, streak, league. |
| thm_my_current_pathB | Your enrolled learning path, completion %, hours done and estimated finish date. |
| thm_my_room_progressB | Your completion % for one or more rooms (max 50). |
| thm_my_running_machinesA | List your currently running TryHackMe machines (VMs): id, room, state, private IP, expiry. |
| thm_my_streakC | Your streak and weekly mission progression. |
| thm_moduleA | Get a module (a themed group of rooms, e.g. 'linux-fundamentals') and its rooms in order. module_code: e.g. 'linux-fundamentals' or a tryhackme.com/module/... URL. Find codes with thm_search(kind='modules'). |
| thm_room_questionsA | Only the questions (and hints) of every task in a room, for revision or quizzing. No teaching content and no answers. Pair with thm_get_task to study a task first. |
| thm_leaderboardB | TryHackMe's points leaderboard (top 50), worldwide or for one country. country: two-letter code, e.g. 'ca', 'us', 'in'. Empty = worldwide. With login, also shows your own rank on that board. |
| thm_compare_profilesA | Compare two users' public profiles side by side (level, rank, points, rooms, badges, streak). |
| thm_my_next_roomsB | What to study next: the first unfinished rooms in your enrolled learning path, in order. |
| thm_my_current_moduleB | The module you're currently working through, with your progress. |
| thm_my_recommendationsC | Rooms TryHackMe recommends for you, with difficulty and time. |
| thm_my_capability_scoreB | Your TryHackMe capability score and its components (foundation, activity, specialism...), with trends. |
| thm_my_weekly_missionsA | This week's missions (rooms, questions, streak days): your progress vs. the targets. |
| thm_my_notificationsA | Your TryHackMe notifications (read-only: this does not mark them as read). |
| thm_my_socialC | Your followers / people you follow on TryHackMe, with their points and streaks. |
| thm_my_roomsC | Rooms you've joined, optionally only in-progress or completed ones. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| study_room | Study a TryHackMe room task by task, as a tutor. |
| quiz_me | Quiz yourself on a room you've already done. |
| weekly_plan | Plan this week's TryHackMe study around your path and goals. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 28 tools
The thm_my_*, thm_profile_*, thm_room_*, and thm_path_* prefixes give an agent a reliable first-cut mental model, and descriptions explicitly explain when to use e.g. thm_room_overview vs thm_room_full vs thm_room_questions. A handful of pairs still require careful reading: thm_my_stats vs thm_my_capability_score vs thm_my_streak, and thm_my_current_path vs thm_my_current_module vs thm_my_next_rooms.
All 28 tools use snake_case with a uniform thm_ prefix, which is highly predictable. The only deviation is style rather than convention: some names are verb-led (thm_search, thm_get_task, thm_check_auth) while others are noun-led (thm_room_overview, thm_profile_badges, thm_module), though each remains readable and consistent within its prefix family.
28 tools is on the heavy side, and the thm_my_* family alone accounts for 15 narrow slices that could be consolidated (stats, streak, capability score, weekly missions, and recommendations are all 'my progress' views). The breadth of the domain—rooms, tasks, paths, modules, profiles, leaderboard, machines—partly justifies the count, but it sits at the borderline where an agent must scan a lot of names to pick correctly.
Coverage is strong for a read-only knowledge/progress server: discovery, room content, tasks, paths, modules, public and private profile views, progress tracking, machines, leaderboard, and social are all present. Minor gaps remain—no way to start/stop running machines despite thm_my_running_machines existing, and no badge/certificate detail lookup by identifier.