hltv-csgo-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@hltv-csgo-mcp List the upcoming CS2 matches"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
hltv-csgo-mcp
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
stdiotransport for Codex, ChatGPT desktop, Claude Desktop, and other MCP clients.Bundled
hltv-csgoSkill underskills/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
curlexecutable onPATH. On Windows 10/11,curl.exeis 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.jsIf 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.jsAfter the package is published to npm:
npx -y hltv-csgo-mcpLogs use stderr so stdout remains a valid MCP transport.
Codex setup
Add the package with:
codex mcp add hltv-csgo -- npx -y hltv-csgo-mcpOr add this to ~/.codex/config.toml:
[mcp_servers.hltv_csgo]
command = "npx"
args = ["-y", "hltv-csgo-mcp"]
startup_timeout_sec = 20
tool_timeout_sec = 120Install 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 |
| Find teams, players, and events by name. |
| List upcoming, live, finished, or all matches with optional filters. |
| 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-runDefault 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 toolsget_hltv_matchGet HLTV match detailsARead-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.
Inputs: url (required). Returns: ok, data, error, source, +2 more
list_hltv_matchesList Counter-Strike matchesARead-onlyIdempotent
List upcoming, live, or finished Counter-Strike matches from HLTV.org. Filter by exact team display name, event id, date range, and limit.
Inputs: to, from, kind, team, +2 more. Returns: ok, data, error, source, +2 more
search_hltv_entitiesSearch HLTV teams, players, and eventsARead-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.
Inputs: query (required), limit, types. Returns: ok, data, error, source, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
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.
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.
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.
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
Related MCP Connectors
Market data tools for the MCP ecosystem: server stats, events, search, leaderboards, package trends.
Search MCP servers, MCP clients and AI agents, and retrieve listing details. Free, read-only access.
Curated, trust-first index of vetted MCP servers — scored tiers, monthly re-verified. Read-only.
Official MCP server for MAQAMI, a hotel and flight booking platform with 3M+ hotels. Search live hotel rates and flights, look up places, airports and hotel details, then prebook and book. Remote Streamable HTTP endpoint, no API key required.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP 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.1516 npm1MIT
- FlicenseAqualityCmaintenanceMCP server for Valorant match analysis. Enables fetching player stats, match history, agent performance, and more via Henrik's Valorant API.9-
- AlicenseBqualityCmaintenanceRead-only MCP server for Supercell game APIs (Clash of Clans, Clash Royale, Brawl Stars) with prefixed tool names to search players, clans, clubs, and more.1549 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP 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