Skip to main content
Glama

GameCoach MCP

An MCP server that watches your screen while you play, so an AI assistant can see what's happening and either coach you (evaluate decisions, spot mistakes, suggest improvements) or ride along as a sidekick with live commentary.

Status: early. The MCP server takes on-demand screenshots of a monitor or a game window, and the live sidekick watches your game and talks to you. See docs/DESIGN.md.

Quick start

python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e ".[dev]"

Connect it to Claude Code

claude mcp add gamecoach -- C:\path\to\GameCoachMCP\.venv\Scripts\gamecoach-mcp.exe

Connect it to Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "gamecoach": {
      "command": "C:\path\to\GameCoachMCP\.venv\Scripts\gamecoach-mcp.exe"
    }
  }
}

Related MCP server: Desktop MCP

Live sidekick

The sidekick watches your game window, decides when something worth reacting to happened (scene changes, sustained action, a periodic check-in, or you pressing F9), looks at a few recent frames, and speaks a short line out loud. There are two ways to run its "brain":

With your Claude subscription

With an API key

Brain

Claude Code (CLI or the desktop app's Code tab)

The standalone gamecoach-sidekick program

Cost

Included in your plan's usage limits

Pay per use, roughly $2/hour on Claude Opus 5.5

Models

Whatever Claude Code is set to (/model)

Claude (default), OpenAI or Gemini

Latency

A few seconds per line

Fastest

Either way: run the game in borderless or windowed mode. Exclusive fullscreen can make captures come out black and hide the on-screen captions.

Option A: Claude Code on your subscription

The MCP server does the capturing, the speak-when logic and the voice; Claude Code looks at the frames and decides what to say, looping on the wait_for_moment and say tools.

  1. Register the server with Claude Code. Either open a Claude Code session in this project folder (it picks up .mcp.json; approve the gamecoach server when asked), or register it for every folder with the claude CLI:

    claude mcp add gamecoach --scope user -- C:\path\to\GameCoachMCP\.venv\Scripts\gamecoach-mcp.exe
  2. Start a Claude Code session and run the sidekick prompt with the window title and game:

    /mcp__gamecoach__sidekick "Counter-Strike" "Counter-Strike 2"
  3. Play. Press F9 to ask for a comment, or hold F10 and talk to it (see Talking to the sidekick). Tell Claude "stop" when you're done.

Tips: a faster model (/model) gives snappier lines. Long sessions use your plan's usage limits like any other Claude Code work. Claude Desktop's chat can also connect to the server (see Quick start), but long tool loops suit Claude Code better.

Option B: the standalone program with an API key

copy .env.example .env    # then put your key in .env (never committed)
gamecoach-sidekick --list-windows
gamecoach-sidekick --dry-run --no-voice --window "Counter-Strike"   # free offline test
gamecoach-sidekick --window "Counter-Strike"
  • Keys: ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY, from the environment or a .env file in the project folder. Choose the provider with --provider anthropic|openai|gemini.

  • Output: voice by default (--list-voices), plus on-screen captions with --overlay.

Talking to the sidekick

Hold F10, say something ("should I push or hold?", "what killed me?"), and let go. A quick tap of the same key asks for a comment right away, like F9. Pressing it also cuts off whatever the sidekick is saying, so it doesn't talk over you (and the mic doesn't hear it). Your words are transcribed on your own PC with faster-whisper and sent to the sidekick along with what's on screen, and it answers out loud. Audio is only kept in memory while the key is held, and nothing is recorded otherwise.

pip install -e ".[voice]"

Then turn it on in sidekick.toml ([voice_input] enabled = true), or pass --listen to gamecoach-sidekick. The first run downloads the speech model (about 150 MB for base.en). While voice input is on, the mic stays open so a fraction of a second from before you press the key can be kept, and Windows will show the microphone-in-use icon.

Settings

Copy sidekick.example.toml to sidekick.toml to change the persona, game, thresholds, voice and more. The standalone program reads it with --config sidekick.toml; the MCP server reads sidekick.toml from the project folder automatically, or the file named by the GAMECOACH_CONFIG environment variable.

MCP tools

Tool

What it does

list_monitors

Lists the displays available to capture.

list_windows

Lists windows that can be captured.

screenshot

Captures a monitor, or a window with window_title, returned as a JPEG image.

start_watching

Starts the live sidekick on a window (or the whole screen).

wait_for_moment

Waits for something worth reacting to and returns a few frames.

say

Speaks a line to the player (voice and/or caption).

recent_frames

Frames from the last few seconds, while watching.

stop_watching

Stops the sidekick and reports stats.

Prompt: sidekick(window_title, game) turns the connected model into the live sidekick.

Development

pytest
ruff check .

Privacy

This project captures your screen. MCP captures go only to the MCP client you connect; sidekick frames go only to the model provider you configure. Nothing is written to disk.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers