Haiguitang Lateral Thinking Puzzles MCP server

Hosts a collection of 'Haiguitang' lateral thinking puzzles where users ask yes/no questions to solve mysterious scenarios through interactive critical thinking exercises.
Back to servers
Provider
Wang Yafu
Release date
Apr 08, 2025
Language
Python
Package
Stats
1.1K downloads
3 stars

This MCP server allows you to play "Turtle Soup" (Haiguitang) riddle games with a large language model acting as the game host, letting you enjoy this creative deduction game on your own.

Installation Requirements

Before using this project, ensure you have Python and uv installed on your computer. Follow these steps to set up the server:

git clone https://github.com/wangyafu/haiguitangmcp/
cd haiguitangmcp
uv sync

Configuration

After installation, you need to configure your MCP client to connect to the server.

VSCode Configuration

Add the following to your VSCode configuration:

"mcp": {
    "servers": {
        "haiguitang-mcp": {
            "type": "stdio",
            "command": "uv",
            "args": [
                "--directory",
                "E:\\haiguitangmcp\\haiguitang_mcp",
                "run",
                "server.py"
            ]
        }
    }
}

Cherry Studio Configuration

For Cherry Studio users, add this to your configuration:

"mcpServers": {
    "haiguitang": {
      "isActive": true,
      "name": "海龟汤MCP服务器",
      "description": "和用户玩海龟汤",
      "registryUrl": "",
      "command": "uv",
      "args": [
        "--directory",
        "E:/haiguitangmcp/haiguitang_mcp",
        "run",
        "server.py"
      ]
    }
}

Note: Replace "E:/haiguitangmcp/haiguitang_mcp" with the actual path where your server.py is located. Similar configuration methods apply to other MCP clients.

Available Tools and Resources

This project provides three tools:

  • get_prompt: Obtain complete instructions for the Turtle Soup game
  • get_puzzle: Get the full content of a specific puzzle (requires the puzzle title as parameter)
  • list_puzzles_tool: List all available puzzles

Additionally, the project offers:

  • Resource: puzzles://{puzzle_title} - Access information about specific puzzles
  • Prompt template: game_rules - Provides the rules for the Turtle Soup game

Game Rules

In Turtle Soup (Haiguitang):

  • Players are presented with a puzzling scenario that seems illogical
  • Players ask yes/no questions to narrow down possibilities and discover the full story
  • The host answers with "yes," "no," "both yes and no," or "irrelevant"
  • Players can attempt to solve the puzzle by starting their message with "汤底" (solution)
  • The host will confirm when players have correctly identified the key scenario

Tips for Playing

  • Start with basic questions about the number of people involved, cause of death, etc.
  • Pay attention to every detail in the puzzle description as they may be crucial clues
  • Try approaching the problem from different angles when stuck
  • Keep track of confirmed clues to help formulate your solution

Recommended Puzzles

The server currently includes 35 puzzles. Based on ratings from the developer's Turtle Soup Simulator, here are some recommended puzzles to try:

  • 忠诚的狗 (The Loyal Dog)
  • 100元钱 (100 Yuan)
  • 爱犬 (Beloved Dog)
  • 治病 (Treatment)
  • 祭日 (Memorial Day)
  • 电梯里的人 (Person in the Elevator)
  • 延迟死亡 (Delayed Death)
  • 生意 (Business)
  • 裤子破了 (Torn Pants)
  • 要好的朋友 (Good Friends)

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later