# Gambit

A local chess analysis and tutoring server connecting AI hosts to Stockfish and attributed chess information through MCP.

Technologies: Python, Stockfish, MCP

Source code: https://github.com/mayazrakib/gambit

Updated: 2026-11-11

## 1. Local Chess Analysis

Gambit connects a compatible AI host to validated chess facts, bounded Stockfish analysis, and opening classifications through the *Model Context Protocol* (MCP). The host writes the explanations; Gambit supplies tools and evidence.

## 2. Setup and Use

Install the prerequisites listed in the [repository](https://github.com/mayazrakib/gambit), including Python, uv, and Stockfish. From a checkout, run `uv sync --locked --extra vision`, `uv run gambit initialize`, and `uv run gambit`. The vision extra supports image recognition. A compatible MCP host can launch the server and request position facts, move comparisons, and engine analysis.

The repository also documents an HTTP transport and a local playing workspace with additional build requirements. Use the documented search bounds and retain provider attribution when interpreting results.

## 3. Scope and Limits

Gambit uses White-relative engine scores. Games, evidence, jobs, and API caches are bounded and process-local. Opening classifications and non-personal configuration persist. Learner profiles, personalised databases, server-authored explanations, and speech synthesis are not supported. External provider access is opt-in. Consult the repository for current installation details and capabilities.

Author: Mayaz Rakib
Canonical URL: https://mayazrakib.com/projects/gambit
