Click on "Install 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., "@MCP SGF Servershow me the board after move 50 from this SGF file"
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.
MCP SGF Server
A Model Context Protocol (MCP) server for processing SGF (Smart Game Format) files. Extract game information and generate visual board diagrams with.
Features
Extract comprehensive game information from SGF files
Generate visual board diagrams with customizable themes and formats
High performance: ≤200ms for game info, ≤500ms for diagrams
Robust validation with detailed error handling
TypeScript strict mode with 100% type safety
91.73% test coverage with 139 comprehensive tests
Multiple output formats: PNG and SVG support
Customizable themes: Classic, modern, and minimal styles
Quick Start
NPX (Recommended)
Start the MCP server instantly without installation:
The server will start and listen for MCP protocol connections on stdio.
Installation
Install globally for repeated use:
Development Setup
Clone and set up for development:
Client Configuration
To use this server with MCP-compatible clients (Claude Desktop, etc.), add the following configuration:
Claude Desktop Configuration (
Alternative with local installation:
Usage
The MCP SGF server provides two main tools that can be called via the MCP protocol:
1. Extract Game Information (get-sgf-info)
Extract comprehensive metadata from SGF files including player information, game rules, and results.
Response:
2. Generate Board Diagrams (get-sgf-diagram)
Create visual board diagrams showing game positions with customizable appearance.
Response:
The response includes base64-encoded image data with the specified MIME type.
Configuration Options
Game Information Tool
Parameter | Type | Required | Description |
| string | ✓ | Complete SGF file content |
Diagram Tool
Parameter | Type | Required | Default | Description |
| string | ✓ | - | Complete SGF file content |
| number | ✗ | final | Specific move to display (1-based) |
| number | ✗ | - | Start of move range (1-based) |
| number | ✗ | - | End of move range (1-based) |
| number | ✗ | 600 | Image width (100-2000) |
| number | ✗ | 600 | Image height (100-2000) |
| boolean | ✗ | true | Show coordinate labels |
| boolean | ✗ | true | Show move numbers |
| string | ✗ | classic | Visual theme |
| string | ✗ | png | Output format |
Supported Themes
classic: Traditional wood board with classic stonesmodern: Clean, contemporary appearanceminimal: Simplified design for clarity
Supported Formats
png: Raster format, best for viewing and sharingsvg: Vector format, scalable and editable
Supported Board Sizes
Range: 1×1 to 361×361 boards
Common: 9×9, 13×13, 19×19
Automatic: Size detection from SGF content
Development
Scripts
Client Integration
MCP Protocol JSON Examples
When integrating programmatically, use these JSON message formats:
List Available Tools:
Call Get SGF Info Tool:
Call Get SGF Diagram Tool:
Project Structure
Testing
Quality Assurance
TypeScript: Strict mode with 100% type coverage
ESLint: Zero warnings with strict rules
Prettier: Consistent code formatting
Vitest: 95% coverage threshold enforced
Performance: Response time targets validated
Error Handling
The server provides comprehensive error handling with specific error types:
Error Types
Type | Description |
| SGF content is not valid format |
| Invalid or missing parameters |
| Failed to parse SGF content |
| Game type not supported |
| SGF file exceeds size limits |
Example Error Response
License
MIT License - see LICENSE file for details.
Documentation
Tool Reference: Complete API documentation
OpenAPI Schema: Machine-readable specification
Model Context Protocol: MCP specification