PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversgames-and-gamificationrubiks-cube-mcp-server
返回「games-and-gamification」

rubiks-cube-mcp-server

modelscope·@fritzprix/rubiks-cube-mcp-server

games-and-gamification0下载LocalModelScope

简介

暂无描述。

MCP Server 详情

来自 ModelScope 索引

Rubik's Cube MCP Server

A Model Context Protocol (MCP) server that provides AI agents with the ability to solve Rubi### 4. finish

Complete the Rubik's Cube game session.

Parameters:

  • gameId (string): The game session ID

Returns:

  • Final game statistics
  • Move history
  • Completion status with congratulations messageles through systematic manipulation and real-time visualization.
<a href="https://glama.ai/mcp/servers/@fritzprix/rubiks-cube-mcp-server"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@fritzprix/rubiks-cube-mcp-server/badge" alt="Rubik's Cube Server MCP server" /> </a>

Features

  • Interactive Cube Manipulation: Execute standard Rubik's Cube moves (U, D, L, R, F, B and their variations)
  • Configurable Difficulty: Set scramble difficulty from 1-100 moves for varied challenge levels
  • MCP UI Integration: Interactive web components delivered directly from the MCP server with clickable game links
  • Game Session Management: Join existing games or create new ones with customizable settings
  • 3D Real-time Visualization: Beautiful 3D cube visualization using Three.js and WebGL
  • WebSocket Live Updates: Real-time state synchronization between MCP server and web interface
  • Mouse Interaction: Rotate and examine the 3D cube with mouse controls
  • Recursive Workflow: AI agents can systematically work through cube solving using nextAction guidance
  • State Tracking: Complete move history and current cube state monitoring
  • Solution Detection: Automatic detection when the cube is solved with celebration effects

Installation & Setup

Prerequisites

  • Node.js 18.x or higher
  • npm or yarn

Install Dependencies

cd rubiks-cube-mcp-server
npm install

Build the Project

npm run build

Run the Server

npx rubiks-cube-mcp-server

This will start both:

  • MCP server on stdio (for AI agent communication)
  • Web visualization server on http://localhost:3000

Claude Desktop Configuration

To use this MCP server with Claude Desktop, add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "rubiks-cube": {
      "command": "npx",
      "args": ["rubiks-cube-mcp-server"]
    }
  }
}

Configuration file locations:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

After adding the configuration, restart Claude Desktop to load the MCP server.

MCP Tools

1. startCube

Initialize a new Rubik's Cube game session.

Parameters:

  • scramble (optional, boolean): Whether to scramble the cube initially (default: true)
  • difficulty (optional, number): Number of scramble moves (1-100, default: 20)

Returns:

  • MCP UI resource with clickable game link
  • Game ID for the session
  • Initial cube state with difficulty level
  • Visualization URL
  • Next action guidance

2. joinGame

Join an existing Rubik's Cube game session.

Parameters:

  • gameId (string): The game session ID to join

Returns:

  • Current cube state
  • Game metadata including difficulty
  • Next action guidance

3. manipulateCube

Execute a move on the Rubik's Cube.

Parameters:

  • gameId (string): The game session ID
  • move (string): Standard cube notation (U, D, L, R, F, B, U', D', L', R', F', B', U2, D2, L2, R2, F2, B2)

Returns:

  • Updated cube state
  • Move execution confirmation
  • Total moves count
  • Next action guidance

4. finish

Complete the Rubik's Cube game session.

Parameters:

  • gameId (string): The game session ID

Returns:

  • Final game statistics
  • Move history
  • Completion status

Cube Notation

The server uses standard Rubik's Cube notation:

  • U: Up face clockwise
  • D: Down face clockwise
  • L: Left face clockwise
  • R: Right face clockwise
  • F: Front face clockwise
  • B: Back face clockwise
  • ': Counter-clockwise (e.g., U')
  • 2: Double turn (e.g., U2)

Example Usage with AI Agent

Agent: "Start a new Rubik's cube puzzle with easy difficulty"
 startCube tool called with { scramble: true, difficulty: 5 }
 Returns MCP UI resource with clickable game link + game state

Agent: "Join existing game cube_123456789_abc"
 joinGame tool called with gameId
 Returns current cube state and game metadata

Agent: "Execute move U"
 manipulateCube tool called with move "U"
 Returns updated state and nextAction guidance

Agent: "Continue solving..."
 Recursive manipulateCube calls until solved
 finish tool called when complete with celebration message

Web Visualization

Visit http://localhost:3000/game/{gameId} to see:

  • Real-time 3D cube representation
  • Color-coded faces (White, Yellow, Red, Orange, Blue, Green)
  • Move counter and history
  • Interactive move buttons
  • Solution status indicator

MCP UI Features

The server now includes MCP UI integration for enhanced user experience:

  • Clickable Game Links: When starting a new game, the server returns an interactive UI resource with a clickable link to the web visualization
  • Game Session Management: Support for joining existing games created by other users or sessions
  • Visual Feedback: Clear indication of game status, difficulty level, and next actions

Starting a Game with UI

When you call the startCube tool, you'll receive:

  1. A clickable UI resource linking directly to the game
  2. Complete game state data in JSON format
  3. Metadata including difficulty level and next action guidance

Joining Existing Games

Use the joinGame tool with a game ID to participate in games created elsewhere:

  • Perfect for collaborative solving
  • Maintains full game state and history
  • Seamless integration with existing MCP workflow

Architecture

  • MCP Protocol: Standard Model Context Protocol for AI agent communication
  • MCP UI Integration: Interactive web components with @mcp-ui/server for …

相关 MCP Servers(来自「games-and-gamification」)

mcpet伙伴

一种怀旧的虚拟宠物体验,适合人工智能时代,让你可以领养、养育并与自己的数字伙伴玩耍,该伙伴会根据你的照顾而进化。

@shreyaskarnik/mcpet

模型棋盘棋

一个服务器,允许用户与任何大语言模型对弈国际象棋,具有可视化棋盘、用标准符号进行走子以及从PGN文件分析局面的功能。

@jiayao/mcp-chess

mcsm-mcp

暂无描述。

@SMGoro/mcsm-mcp

minecraft-bedrock-education-mcp

暂无描述。

@Mming-Lab/minecraft-bedrock-education-mcp

RandomWeb3MCP 随机生成器

RandomWeb3MCP 是基于 EVM 区块哈希的随机元素生成服务。该服务提供了多种随机元素生成工具,可应用于游戏、金融、测试等领域。

@suxiongye/random-web3-mcp

runescape-wiki-mcp

暂无描述。

@birdwell/runescape-wiki-mcp

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/fritzprix-rubiks-cube-mcp-server/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

cd rubiks-cube-mcp-server npm install

基本信息

分类
games-and-gamification / autonomous-agents
运行方式
No
许可证
MIT License
详情文件
fritzprix-rubiks-cube-mcp-server.md