chessagine-mcp-v060
// Comprehensive chess analysis using the ChessAgine MCP. Use this skill when users request chess-related tasks including analyzing positions or games, studying openings, finding best moves, comparing with master/computer games, solving puzzles, building repertoires, reviewing user games from Lichess o
ChessAgine MCP Skill v0.6.3 (chessagine-mcp-v060)
ChessAgine provides comprehensive chess analysis through 40+ specialized tools integrating Stockfish, Leela Chess Zero, Maia2, Lichess, Chessboard Magic, and multiple chess databases. v0.6.3 adds Chess 960 support, theme analysis tools, game review generation, and tactical summaries.
Core Workflow Principles
Context Priority
When handling chess requests, always:
- First consult this chessagine skill for chess-specific context, tools, and workflows
- Then reference user's project memory related to chess for personalized preferences or context
Always Visualize
Every position analysis must include visualization using the correct MCP rendering tools:
- Single positions: Use
chessagine-mcp-v0.6.3:render_chess_boardwith FEN - Full games: Use
chessagine-mcp-v0.6.3:render_pgn_viewerwith PGN
Chess 960 / Fischer Random Support
Many tools now accept an is960: boolean parameter (default: false). Pass is960: true when:
- User mentions Chess 960, Fischer Random, or FRC
- FEN has non-standard castling rights (e.g., HAha instead of KQkq)
- User explicitly mentions a randomized starting position
Tools supporting is960: get-boardstate-for-fen, get-boardstate-for-move, is-legal-move, get-theme-scores, get-theme-progression, analyze-variation-themes, compare-variations, find-critical-moments, generate-game-review
Multi-Source Validation
For important positions, combine multiple data sources:
- Opening database (fast orientation)
- Engine analysis (best moves)
- Master games (practical validation)
- TCEC/Correspondence (computer/deep human perspective)
Right Engine for the Job
- Stockfish (depth 18-25): Best objective moves through brute-force calculation
- Elite Leela: Master-level human perspective (~2500 rating) for strategic insights
- Leela: Neural network for positional understanding
- Maia2 (rating 1100-1900): Human-like moves matching specific player strengths
Progressive Depth
Start with quick overview, deepen analysis only where critical:
- Quick check: depth 15-18
- Standard analysis: depth 20-22
- Critical positions: depth 25-30
Quick Start Workflows
Analyze Position
chessagine-mcp-v0.6.3:get-boardstate-for-fen(understand position)chessagine-mcp-v0.6.3:render_chess_board(visualize)chessagine-mcp-v0.6.3:get-stockfish-multipv-analysis(3 lines, depth 22)chessagine-mcp-v0.6.3:fen-openingbook-lookup(if opening)chessagine-mcp-v0.6.3:get-lichess-master-games(master practice)chessagine-mcp-v0.6.3:get-theme-scores(optional: material, space, king safety breakdown)
Analyze Game (Quick)
chessagine-mcp-v0.6.3:fetch-lichess-game(get PGN) or accept user PGNchessagine-mcp-v0.6.3:generate-game-review(comprehensive theme review with critical moments)chessagine-mcp-v0.6.3:render_pgn_viewer(navigable game view)
Analyze Game (Deep)
chessagine-mcp-v0.6.3:fetch-lichess-game(get PGN)chessagine-mcp-v0.6.3:parse-pgn-into-fens(extract positions)chessagine-mcp-v0.6.3:find-critical-moments(identify key turning points)chessagine-mcp-v0.6.3:get-stockfish-analysison critical positions (depth 20)chessagine-mcp-v0.6.3:render_pgn_viewer(navigable game view)
Study Opening
chessagine-mcp-v0.6.3:fen-openingbook-lookup(identify opening, common moves)chessagine-mcp-v0.6.3:get-lichess-master-games(master statistics)chessagine-mcp-v0.6.3:get-chessboardmagic-tcec-stats(computer evaluation)chessagine-mcp-v0.6.3:get-stockfish-multipv-analysis(5 lines, depth 25)- Fetch sample games from relevant database
Find Best Move
chessagine-mcp-v0.6.3:get-stockfish-best-move(tactical solution)chessagine-mcp-v0.6.3:get-stockfish-multipv-analysis(alternatives, 3 lines)- Cross-reference with
chessagine-mcp-v0.6.3:get-chessdb-analysis - Optionally add
chessagine-mcp-v0.6.3:get-chessdb-pvfor engine best line from ChessDB
Compare Variations
chessagine-mcp-v0.6.3:compare-variations(pass rootFen + named variation arrays)- Interpret theme scores per variation (material, mobility, space, positional, kingSafety, tactical)
chessagine-mcp-v0.6.3:render_chess_boardon key resulting positions
Puzzle Training
chessagine-mcp-v0.6.3:get-puzzle-themes(show available themes)chessagine-mcp-v0.6.3:fetch-chess-puzzle(with theme/rating filters)chessagine-mcp-v0.6.3:render_chess_board(present)- After attempt:
chessagine-mcp-v0.6.3:get-stockfish-best-move(verify)
Chess 960 Analysis
- Confirm
is960: truefor all supporting tool calls chessagine-mcp-v0.6.3:get-boardstate-for-fenwithis960: truechessagine-mcp-v0.6.3:render_chess_board(visualization works for all variants)chessagine-mcp-v0.6.3:get-stockfish-multipv-analysis(Stockfish handles 960 natively)- Note: Opening book and master game databases are standard chess only — skip for 960
Tool Categories
Position Analysis
get-stockfish-analysis- Tactical evaluation (depth 18-25)get-stockfish-multipv-analysis- Show alternatives (3-5 lines)get-stockfish-best-move- Quick best move without full analysisget-stockfish-batch-analysis- Analyze multiple positions in batchget-leela-analysis- Strategic/positional evaluationget-elite-leela-analysis- Master-level positional understandingget-maia2-analysis- Human-like moves at specific rating (1100-1900)get-chessdb-analysis- Large database position lookupget-chessdb-pv- Principal variation (best line) from ChessDB (new in v0.6.3)queue-chessdb-analysis- Queue position for background ChessDB analysis
Theme Analysis (New in v0.6.3)
get-theme-scores- Scores for material, mobility, space, positional, kingSafety, tactical, light/dark square control at a FEN. Supportsis960.analyze-variation-themes- How themes evolve across a sequence of moves from a rootFen. Supportsis960.get-theme-progression- Track a single theme (e.g., kingSafety) over a variation. Supportsis960.compare-variations- Compare multiple named variations by theme analysis. Supportsis960.find-critical-moments- Find moves where theme scores change significantly (default threshold 0.5). Supportsis960.generate-game-review- Full game review with theme progression, critical moments, output as text or JSON. Supportsis960.
Theme enum values: material | mobility | space | positional | kingSafety | tactical | lightsqaureControl | darksqaureControl
Tactical Analysis
get-tactical-position-summary- Hanging pieces, forks, pins, semi-protected pieces for a FEN (new in v0.6.3)
Opening Research
fen-openingbook-lookup- Fast lookup in 12k position databaseget-lichess-master-games- Grandmaster game statisticsget-chessboardmagic-tcec-stats- Top computer engine statisticsget-chessboardmagic-corr-stats- Correspondence chess statistics
Game Analysis
fetch-lichess-game- Get game PGN from Lichess (URL or ID)fetch-lichess-games- User's 20 most recent gamesget-chessboardmagic-games- User's Chessboard Magic gamesget-chessboardmagic-game-details- Detailed single gameparse-pgn-into-fens- Convert PGN to FEN listget-fen-map-lookup- Map moves to FENs (before or after)get-chessboardmagic-tcec-games- TCEC games reaching a positionget-chessboardmagic-corr-games- Correspondence games reaching a position
Visualization (MCP v0.6.3 Tools)
render_chess_board- Display single position from FENrender_pgn_viewer- Interactive game viewer with move navigation
Move Validation
is-legal-move- Check move legality (SAN or UCI). Supportsis960.get-boardstate-for-move- Get resulting position after move. Supportsis960.get-boardstate-for-fen- Describe current position. Supportsis960.
Learning & Training
fetch-chess-puzzle- Random puzzle (filterable by theme + rating 1000-2500)get-puzzle-themes- Available puzzle themes list
Repertoire
get-chessboardmagic-repertoires- User's repertoire listget-chessboardmagic-repertoire-details- Detailed repertoire linesfetch-lichess-studies- User's Lichess studiesfetch-lichess-study-pgn- Specific study in PGN
User Info
get-lichess-username- Current user's Lichess username
Common Request Patterns
| User Request | Workflow |
|---|---|
| "Analyze this position [FEN]" | Position Deep Dive (see references/workflow_patterns.md) |
| "Analyze my last game" | Get Lichess username → Fetch recent games → generate-game-review |
| "What's the best move?" | Quick best move + alternatives + explanation |
| "Help me study the Sicilian" | Opening study workflow with multiple databases |
| "I'm stuck in this endgame" | Endgame analysis + get-tactical-position-summary |
| Lichess URL provided | Parse game ID → fetch-lichess-game → generate-game-review |
| "Give me a tactics puzzle" | Puzzle training session with explanations |
| "Chess 960 / Fischer Random position" | All analysis with is960: true |
| "Compare these two variations" | compare-variations → theme breakdown |
| "When did the game turn?" | find-critical-moments on game variation |
| "How is my king safety?" | get-theme-scores → kingSafety reading |
Advanced Features
For detailed guidance on:
- Workflow patterns: See references/workflow_patterns.md
- Tool selection: See references/tool_selection.md
- API parameters: See references/api_reference.md
- Chess knowledge: See references/chess_knowledgebase.md
Best Practices
Performance Optimization
- Use
generate-game-reviewfor fast comprehensive game analysis (replaces manual parse → batch analyze) - Use
find-critical-momentsto identify key positions before deep diving - Use batch analysis for 10+ positions
- Start with opening book (fastest) before databases
- Use
get-chessdb-pvfor quick best line before committing to deep Stockfish search
User Experience
- Always visualize positions using MCP rendering tools
- Explain evaluations in chess terms (not just numbers)
- Match analysis depth to user expertise
- For theme scores: positive = White better, negative = Black better, zero = equal
Error Handling
- Retry Logic: If any tool call returns an error, automatically retry up to 2 times before informing the user
- On third failure: Clearly inform user that the tool encountered an error, specify which tool failed, and suggest alternatives when available
- Validate FEN format before tool calls
- Check move legality with
is-legal-movebefore analysis - Graceful fallbacks: book → ChessDB → Lichess → TCEC
- Handle missing user accounts gracefully
- For Chess 960: skip opening book and master game lookups (databases are standard chess only)
Key Reminders
- MCP version: All tool calls use prefix
chessagine-mcp-v0.6.3:(not v0.6.0) - Chess 960: Pass
is960: trueon all supporting tools for Fischer Random positions - New theme tools: Use
generate-game-reviewfor fast game analysis;get-theme-scores/compare-variationsfor strategic breakdown - Retry on errors: Retry failed tool calls up to 2 times; inform user only after 3rd failure
- Always visualize: Use
render_chess_boardfor positions,render_pgn_viewerfor games - FEN validation: Check format before API calls
- Progressive detail: Quick overview → selective deep dive
- Multi-source: Combine engines, databases, and principles
- User-focused: Match analysis to user's needs and skill level
Changes in v0.6.3 vs v0.6.0
New Tools:
- ✅
generate-game-review- One-call comprehensive game review with theme progression - ✅
analyze-variation-themes- Theme changes across a move sequence - ✅
compare-variations- Side-by-side theme comparison of named variations - ✅
find-critical-moments- Auto-detect turning points in a game - ✅
get-theme-scores- Material/mobility/space/kingSafety/tactical scores per FEN - ✅
get-theme-progression- Track a single theme across moves - ✅
get-tactical-position-summary- Hanging pieces, forks, pins at a glance - ✅
get-chessdb-pv- ChessDB principal variation retrieval
Chess 960 Support:
- ✅
is960?: booleanparameter added to:get-boardstate-for-fen,get-boardstate-for-move,is-legal-move,get-theme-scores,get-theme-progression,analyze-variation-themes,compare-variations,find-critical-moments,generate-game-review
Removed Tools (not in v0.6.3):
- ❌
get-chess-knowledgebase(removed; use references/chess_knowledgebase.md directly) - ❌
get-chessagine-stater-prompts(removed)
MCP Prefix:
- All tool calls must use
chessagine-mcp-v0.6.3:(updated fromchessagine-mcp-v0.6.0:)