Skip to main content
Glama
Mooooooon

hltv-csgo-mcp

by Mooooooon

hltv-csgo-mcp

npm version GitHub

Read-only MCP server and Codex skill for Counter-Strike schedules, results, teams, players, and events from HLTV.org.

This is an unofficial community project. It is not affiliated with or endorsed by HLTV.org, Valve, or OpenAI.

Features

  • Three structured MCP tools for HLTV entity search, match lists, and match details.

  • Upcoming, live, and finished match parsing with teams, scores, event, time, format, and stars.

  • Match-page parsing with maps, map scores, and stream links.

  • Persistent SQLite cache, duplicate-request coalescing, and a serialized request queue.

  • Local stdio transport for Codex, ChatGPT desktop, Claude Desktop, and other MCP clients.

  • Bundled hltv-csgo Skill under skills/hltv-csgo.

Related MCP server: Valorant MCP Server

Requirements

  • Node.js 22 or newer. The server uses Node's built-in SQLite module and does not require a native dependency build.

  • A curl executable on PATH. On Windows 10/11, curl.exe is included with the operating system.

By default the server uses a browser-like User-Agent because HLTV.org serves its server-rendered pages through Cloudflare. If the server IP receives a Cloudflare challenge, set HLTV_PROXY to a cleaner egress proxy or HLTV_COOKIE to a valid cf_clearance cookie obtained from a browser on the same IP and User-Agent. You can override the User-Agent when needed:

$env:HLTV_USER_AGENT = "MyCsAssistant/1.0 (developer@example.com)"
$env:HLTV_PROXY = "http://127.0.0.1:7890"
$env:HLTV_COOKIE = "cf_clearance=...; __cf_bm=..."

The server only sends automated requests to https://www.hltv.org pages. It does not scrape logged-in or premium content.

Cloudflare and curl-impersonate

HLTV.org may challenge normal curl by TLS fingerprint rather than User-Agent. On Linux servers, the recommended fix is curl-impersonate, which mimics Chrome's TLS handshake.

# Linux
HLTV_CURL_BINARY="/usr/local/bin/curl_chrome124" node dist/cli.js
# Windows
$env:HLTV_CURL_BINARY = "C:\tools\curl-impersonate\curl_chrome124.exe"
node dist/cli.js

If HLTV_CURL_BINARY is unset, the server uses the system curl. You can also configure PATH so curl itself points to the impersonated binary, but the explicit variable is more predictable.

Install and run

From a source checkout:

npm install
npm run build
node dist/cli.js

After the package is published to npm:

npx -y hltv-csgo-mcp

Logs use stderr so stdout remains a valid MCP transport.

Codex setup

Add the package with:

codex mcp add hltv-csgo -- npx -y hltv-csgo-mcp

Or add this to ~/.codex/config.toml:

[mcp_servers.hltv_csgo]
command = "npx"
args = ["-y", "hltv-csgo-mcp"]
startup_timeout_sec = 20
tool_timeout_sec = 120

Install the bundled Skill by copying skills/hltv-csgo into either the repository's .agents/skills directory or the user's .agents/skills directory. The Skill intentionally has no remote MCP dependency URL; configure the local server separately.

Claude Desktop setup

{
  "mcpServers": {
    "hltv-csgo": {
      "command": "npx",
      "args": ["-y", "hltv-csgo-mcp"]
    }
  }
}

Tools

Tool

Purpose

search_hltv_entities

Find teams, players, and events by name.

list_hltv_matches

List upcoming, live, finished, or all matches with optional filters.

get_hltv_match

Read one match page's teams, score, event, time, maps, and streams.

Every call returns data, section-level coverage, warnings, source, and a typed error. A section marked unavailable means the current parser could not establish the data; it does not mean that HLTV contains no records.

Cache and limits

The server enforces a minimum interval of 2.1 seconds between HLTV requests. This minimum cannot be weakened through environment variables. Default TTLs are:

  • Search: 24 hours

  • Upcoming/live match list: 5 minutes

  • Finished results: 15 minutes

  • Match details: 15 minutes

Set HLTV_CACHE_PATH to choose the SQLite file. When HLTV is unavailable, an expired cache entry may be returned with source.is_stale: true and its stale age.

Development

npm run check
npm test
npm run build
npm pack --dry-run

Default tests are completely offline and use fixture HTML. Live pages can be exercised directly from Node, but do so sparingly and respect HLTV's infrastructure:

node --input-type=module -e "import { loadConfig, HltvHtmlDataSource } from './dist/index.js'; const ds = new HltvHtmlDataSource(loadConfig({ HLTV_CACHE_PATH: ':memory:' })); console.log(JSON.stringify(await ds.listMatches({ kind: 'upcoming', limit: 3 }), null, 2)); ds.close();"

Data and licensing

Project code is MIT licensed. HLTV match, team, player, and event data is displayed for reference and remains subject to HLTV.org's terms of use. Tool results include attribution, source page, and fetch time. Logos, player photos, and other media are not downloaded or redistributed.

See HLTV.org before deploying or modifying request behavior.

Available Tools

3 tools
get_hltv_matchGet HLTV match detailsA
Read-onlyIdempotent

Get one HLTV match page's teams, score, event, start time, maps, and streams from an exact match URL returned by list_hltv_matches.

ParametersJSON Schema
NameRequiredDescriptionDefault
urlYesExact HLTV match URL returned by list_hltv_matches.

Output Schema

ParametersJSON Schema
NameRequiredDescription
okYes
dataYes
errorYes
sourceYes
coverageYes
warningsYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds value by enumerating the exact data fields returned (teams, score, event, start time, maps, streams), which is useful context beyond the structured annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, direct sentence that front-loads the core purpose and the source of the required input. Every clause adds information; there is no wasted wording or repetition of annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one parameter), the presence of an output schema, and the annotations covering safety, the description provides a complete summary of what the tool does and how to use it correctly. It mentions the exact data fields returned, which complements the output schema without redundancy.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already fully documents the single 'url' parameter with a description, so the baseline is 3. The tool description does not add further parameter semantics; it only repeats the fact that the URL comes from list_hltv_matches, which is already in the schema description. Schema coverage is 100%, so no additional compensation is needed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Get') and clearly identifies the resource (one HLTV match page) and the key data returned (teams, score, event, start time, maps, streams). It also references the sibling tool list_hltv_matches, making the scope obvious and distinguishing it from the other sibling search_hltv_entities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context by stating it operates on an 'exact match URL returned by list_hltv_matches', implying a prerequisite to call list_hltv_matches first. However, it does not explicitly state when not to use alternatives like search_hltv_entities, so it lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_hltv_matchesList Counter-Strike matchesA
Read-onlyIdempotent

List upcoming, live, or finished Counter-Strike matches from HLTV.org. Filter by exact team display name, event id, date range, and limit.

ParametersJSON Schema
NameRequiredDescriptionDefault
toNoLatest ISO 8601 match start time.
fromNoEarliest ISO 8601 match start time.
kindNoWhich match set to load.upcoming
teamNoExact HLTV team display name, e.g. 'Natus Vincere'.
limitNo
event_idNoHLTV event id from search_hltv_entities.

Output Schema

ParametersJSON Schema
NameRequiredDescription
okYes
dataYes
errorYes
sourceYes
coverageYes
warningsYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds the match categories and filter types, which is useful but not deeper behavioral traits like pagination or rate limits. No contradiction with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: the first front-loads the core purpose, the second lists filter options. No redundant or wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 optional params, output schema, annotations), the description is sufficient: it states what it does and the main filters. It doesn't mention defaults for kind/limit, but those are in the schema. Acceptable for a list tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is high (83%), so baseline is 3. The description summarizes the filter parameters (team, event, date, limit) but adds little beyond the schema, except emphasizing 'exact team display name' and referencing event IDs from search_hltv_entities.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it lists Counter-Strike matches from HLTV.org, with a specific verb 'List' and resource. It enumerates filters (team, event, date range, limit) that distinguish it from sibling tools like get_hltv_match and search_hltv_entities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides clear context on the tool's scope (upcoming/live/finished matches) and filter options. However, it does not explicitly mention when to use this over get_hltv_match or how to obtain event IDs, though the schema references search_hltv_entities.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_hltv_entitiesSearch HLTV teams, players, and eventsA
Read-onlyIdempotent

Search HLTV.org for Counter-Strike teams, players, or events. Use this before filtering matches by team when the exact HLTV display name is not already known.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNo
queryYesHuman-readable name or alias.
typesNoOptional entity type filter.

Output Schema

ParametersJSON Schema
NameRequiredDescription
okYes
dataYes
errorYes
sourceYes
coverageYes
warningsYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering safety behavior. The description adds the workflow context (search before filtering) but does not disclose additional behavioral traits such as fuzzy matching, result ordering, pagination, or rate limits. With strong annotations, a moderate score is appropriate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action and followed by the use-case guidance. There is no redundancy or filler; every word contributes meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, a rich output schema, and comprehensive annotations, the description is largely complete: it names the domain, entity types, and a key workflow. It omits details like result format or edge-case behavior, but those are covered by the output schema and annotations, so the description suffices.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema provides descriptions for 'query' and 'types', covering 67% of parameters, but 'limit' lacks a prose description. The description text itself adds no parameter-level detail beyond what the schema already says, and the term 'teams, players, or events' simply aligns with the types enum. This is adequate but not enhanced.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it searches HLTV.org for Counter-Strike teams, players, or events, which is a specific verb+resource+scope. It also distinguishes from sibling tools by positioning itself as a pre-filtering step for matches when the exact display name is unknown.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly indicates when to use the tool ('Use this before filtering matches by team when the exact HLTV display name is not already known'), providing a clear usage context. However, it stops short of naming alternative tools (e.g., list_hltv_matches) or stating when not to use it beyond the known-name condition.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 3 tool updatesv0.1.3
    • First observedget_hltv_match
    • First observedlist_hltv_matches
    • First observedsearch_hltv_entities

TDQS

A4.2/5.0
Disambiguation5/5

Each tool has a distinct purpose: search entities, list matches, and get match details. There is no overlap or ambiguity in their intended use. The descriptions clearly separate the search/filter/get workflow.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern: search_hltv_entities, list_hltv_matches, get_hltv_match. The verb clearly indicates the action and the noun indicates the resource, making the pattern predictable.

Tool Count4/5

Three tools is on the lower end but still appropriate for a focused HLTV match data server. The set covers the core workflow of search, list, and detail without feeling excessive. A few more tools could be justified, but the current count is reasonable.

Completeness4/5

The tools cover the primary workflow: finding entities, listing matches, and retrieving match details. Missing are direct event or player detail endpoints, but search_hltv_entities provides entity discovery. The core match lifecycle appears adequately covered with minor gaps.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    MCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.
    15
    13
    1
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    MCP server for Valorant match analysis. Enables fetching player stats, match history, agent performance, and more via Henrik's Valorant API.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for Valorant esports analytics that exposes structured metrics and database query tools, enabling AI-assisted match analysis, player profiling, scouting reports, and coaching insights.
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mooooooon/hltv-csgo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server