Sponsored by Deepsite.site

Faceit Mcp

Created By
bluemadisonbluea month ago
Standalone MCP server for live CS2 FACEIT data — player stats, match history, comparisons, leaderboard, and ELO trend. Works with Claude Desktop and Claude Code.
Content

faceit-mcp

A standalone MCP server that gives Claude live CS2 FACEIT data — player stats, match history, side-by-side comparisons, leaderboard, and ELO trend.

Works with Claude Desktop and Claude Code. Single-file, no framework dependencies beyond mcp, aiohttp, aiosqlite, and python-dotenv.

Demo

You: Compare zywoo, NiKo, and sh1ro side by side

Claude: Here's a side-by-side comparison of the three players:

ZywOoNiKosh1ro
ELO452142184384
Level101010
K/D1.431.381.41
HS%52.1%48.7%44.2%
Win Rate61.3%58.9%60.1%
Avg Kills24.823.623.1
K/R0.910.870.89

You: How has NiKo been playing in his last 20 matches?

Claude: NiKo's recent form over 20 matches:

  • Record: 13W – 7L (65.0% win rate)
  • Avg K/D: 1.42 | Avg kills: 24.3 | Avg HS%: 49.1%
  • Current streak: 3W

Best maps: de_inferno (8W-2L, 70% wr), de_ancient (4W-1L, 80% wr) Worst map: de_vertigo (1W-3L, 25% wr)

Tools

ToolDescription
get_player_statsELO, skill level, region, lifetime K/D, HS%, win rate, streaks
get_match_historyLast N matches — map, W/L, K/D, kills, HS%, K/R
compare_playersSide-by-side stats for 2–6 FACEIT nicknames
get_recent_formAggregated stats from last N matches: win rate, avg K/D, current streak, per-map breakdown
get_match_detailsFull scoreboard for a match by ID — teams, score, all player stats, multi-kills
get_player_map_statsPer-map win rate, K/D, HS%, and K/R from lifetime segments
get_leaderboardRegistered users ranked by live ELO
get_elo_trendStored ELO snapshots for a registered user

All tools except get_leaderboard and get_elo_trend work for any public FACEIT player with just an API key. The leaderboard and ELO trend tools require a SQLite DB with registered users (see DB setup).

Requirements

Setup

1. Clone and install deps

git clone https://github.com/bluemadisonblue/faceit-mcp.git
cd faceit-mcp
pip install -r requirements.txt

2. Set your API key

Create a .env file next to the script:

FACEIT_API_KEY=your_key_here

Or pass it as an environment variable directly in the config below.

Connect to Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "faceit-cs2": {
      "command": "python",
      "args": ["C:/full/path/to/faceit-mcp/faceit_mcp_server.py"],
      "env": { "FACEIT_API_KEY": "your_key_here" }
    }
  }
}

Config file location:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Connect to Claude Code

claude mcp add faceit-cs2 -- python /full/path/to/faceit-mcp/faceit_mcp_server.py

Then set FACEIT_API_KEY in the .env file next to the script.

Example prompts

Once connected, just ask Claude naturally:

  • "What are s1mple's lifetime stats?"
  • "Show me the last 10 matches for NiKo"
  • "Compare zywoo, device, and sh1ro side by side"
  • "How has NiKo been performing over his last 20 matches?"
  • "Show the full scoreboard for match 1-abc123…"
  • "Which maps does sh1ro perform best on?"
  • "Show the leaderboard for our group"
  • "How has my ELO changed over the last month?"

Leaderboard & ELO trend

get_leaderboard and get_elo_trend read from a local SQLite database. By default the DB lives at ~/.faceit-mcp/data.db and is created automatically on startup.

To populate it, point DB_PATH at a database that has a users table:

DB_PATH=/path/to/your/bot_data.db

If you use the companion CS2 FACEIT Telegram bot, set DB_PATH to the bot's database and these tools will reflect your registered users automatically.

Environment variables

VariableRequiredDefaultDescription
FACEIT_API_KEYYesFACEIT Data API v4 key
DB_PATHNo~/.faceit-mcp/data.dbSQLite database path
FACEIT_CIRCUIT_FAILURE_THRESHOLDNo4Consecutive failures before circuit opens (0 to disable)
FACEIT_CIRCUIT_OPEN_SECNo60How long the circuit stays open (seconds)

License

MIT

Server Config

{
  "mcpServers": {
    "faceit-cs2": {
      "command": "python",
      "args": [
        "C:/full/path/to/faceit-mcp/faceit_mcp_server.py"
      ],
      "env": {
        "FACEIT_API_KEY": "your_key_here"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Serper MCP ServerA Serper MCP Server
Tavily Mcp
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
DeepChatYour AI Partner on Desktop
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Amap Maps高德地图官方 MCP Server