Skip to main content
Glama

SFML 3.1.0 Documentation MCP Server (sfml3-ref)

License: MIT SFML Model Context Protocol TypeScript

An official Model Context Protocol (MCP) server providing AI assistants (Claude Desktop, Cursor, Claude Code, Cline, etc.) with direct, offline access to the complete SFML 3.1.0 C++ reference documentation.


🌟 Features

  • Clean Markdown API Reference: Doxygen HTML documentation parsed and cleaned into formatted GitHub Markdown with syntax-highlighted C++ code blocks.

  • Full C++20 Signatures: Full method prototypes with specifiers ([[nodiscard]], constexpr, explicit, delete, default arguments).

  • Categorized by Module: All 155+ symbols categorized across the 5 SFML modules: System, Window, Graphics, Audio, and Network.

  • Fast In-Memory Search: Sub-millisecond lookup across symbol names, member functions, parameters, and descriptions.

  • Smart Aliases: Direct resolution of common SFML typedefs and helpers (e.g., Vector2f βž” sf::Vector2<T>, IntRect βž” sf::Rect<T>, seconds βž” sf::Time).


Related MCP server: godot-mcp-docs

πŸ› οΈ MCP Tools

Tool

Parameters

Description

list_modules

none

Lists the 5 primary SFML 3.1.0 modules with descriptions and symbol counts.

get_module_toc

module_name: string

Returns the table of contents for a module (classes, structs, enums, namespaces, functions).

search_sfml_symbol

query: string

Searches symbols and member methods for a given term (e.g. Sprite, setTexture, pollEvent).

get_sfml_doc

symbol_name: string

Returns complete Markdown documentation and C++ prototypes for a specific symbol (e.g. sf::Sprite, sf::Vector2, sf::Dns).


πŸš€ Getting Started

Prerequisites

  • Node.js (v18.0.0 or higher recommended)

  • npm

Installation & Build

# 1. Clone the repository
git clone https://github.com/Floxius/sfml3-ref.git
cd sfml3-ref

# 2. Install dependencies
npm install

# 3. Build the TypeScript server
npm run build

Note: The repository already includes the pre-built index.json (~1 MB), so you don't need to download the raw SFML Doxygen HTML files unless you want to re-run the indexing script.


πŸ–₯️ Client Configuration

1. Claude Desktop

Add the server to your Claude Desktop configuration file:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "sfml3-ref": {
      "command": "node",
      "args": [
        "/ABSOLUTE/PATH/TO/sfml3-ref/dist/src/index.js"
      ]
    }
  }
}

(On Windows, use forward slashes or double backslashes, e.g. C:/Users/<username>/Documents/sfml3-ref/dist/src/index.js)

Alternative: Running directly with tsx (No build step required)

{
  "mcpServers": {
    "sfml3-ref": {
      "command": "npx",
      "args": [
        "-y",
        "tsx",
        "/ABSOLUTE/PATH/TO/sfml3-ref/src/index.ts"
      ]
    }
  }
}

2. Cursor / Cline / Other MCP Clients

Add an STDIO MCP server with:

  • Command: node

  • Args: ["/path/to/sfml3-ref/dist/src/index.js"]


πŸ“– Usage Examples

Once connected in Claude or your MCP client, you can ask prompts such as:

  • "List all modules available in SFML 3.1."

  • "Show me all classes and functions in the SFML Graphics module."

  • "What is the constructor signature for sf::Sprite in SFML 3?"

  • "How do I query DNS records with sf::Dns in SFML 3.1?"

  • "Search for event handling methods in SFML 3."


πŸ”„ Rebuilding the Index (Optional)

If you wish to re-generate index.json from scratch:

  1. Download the SFML 3.1.0 Doxygen HTML documentation from the SFML Website.

  2. Extract the HTML files into a folder named SFML-3.1.0 in the repository root.

  3. Run the indexing script:

    npm run build:index

πŸ“„ License

  • Server Code: Licensed under the MIT License.

  • SFML Documentation & Library: Copyright Β© Laurent Gomila & SFML Team. SFML is licensed under the terms and conditions of the zlib/png license.

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…

  • Get up-to-date, version-specific documentation and code examples from official sources directly in…

  • @latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Floxius/sfml3-ref'

If you have feedback or need assistance with the MCP directory API, please join our Discord server