Gensokyo MCP server

Bridges chat bot platforms with cross-platform support for message processing, WebSocket connectivity, and media handling across Linux, macOS, Windows, and Android environments.
Back to servers
Setup instructions
Provider
Hoshinonyaruko
Release date
May 28, 2025
Stats
32 stars

Gensokyo is a Golang-based MCP (Model Context Protocol) server implementing the OneBot-v11 standard. It allows you to connect AI models (like VScode-Cline, Claude, OpenAI) with thousands of existing OneBot ecosystem plugins without any redevelopment.

Installation

System Requirements

The server has very minimal requirements:

  • Memory usage: Only about 10MB
  • Multiple instances can run simultaneously by using different ports

Download and Setup

  1. Download the latest release from the GitHub Releases page

  2. Run the executable file. The first time you run it, a config.yml file will be automatically generated

  3. Configure the connection parameters in the config.yml file to specify which OneBot-v11 reverse WebSocket address to connect to

Configuration

Setting Up MCP Server Connection

When configuring for a client like VScode-Cline, use the following format in your client's configuration:

{
  "mcpServers": {
    "gensokyo-mcp": {
      "autoApprove": [
        "call_ws"
      ],
      "disabled": false,
      "timeout": 30,
      "url": "http://127.0.0.1:8090/sse/sse",
      "transportType": "sse"
    }
  }
}

Connection Options

  • You can connect to both local and remote servers by changing the url parameter
  • The configuration template can be adapted for other MCP clients by modifying the parameters accordingly

Usage Examples

Connecting to Bot Platforms

Gensokyo is compatible with various OneBot-v11 platforms and frameworks, including:

  • Koishi
  • Nonebot2
  • TRSS
  • ZeroBot
  • MiraiCQ
  • Hoshino
  • Tata
  • Various other OneBot-v11 compatible projects

Practical Applications

The server is useful for:

  • Developer testing
  • Screenshot demonstrations
  • Personal entertainment
  • Tool integration and workflow enhancement

Troubleshooting

If you encounter connection issues or configuration problems:

  • Double-check your URL format (note the repeated path element in /sse/sse)
  • Ensure ports are correctly set and not blocked
  • Verify that the server you're connecting to supports the OneBot-v11 protocol
  • Join the support group (196173384) for assistance

Supported Features

Currently, the server supports:

  • Reverse WebSocket connections to OneBot-v11 bot applications
  • Text message transmission
  • Virtual conversion of MCP user information into group/private chat events

The server is actively maintained with ongoing updates and improvements.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "gensokyo-mcp" '{"autoApprove":["call_ws"],"disabled":false,"timeout":30,"url":"http://127.0.0.1:8090/sse/sse","transportType":"sse"}'

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

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

{
    "mcpServers": {
        "gensokyo-mcp": {
            "autoApprove": [
                "call_ws"
            ],
            "disabled": false,
            "timeout": 30,
            "url": "http://127.0.0.1:8090/sse/sse",
            "transportType": "sse"
        }
    }
}

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

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

2. Add this to your configuration file:

{
    "mcpServers": {
        "gensokyo-mcp": {
            "autoApprove": [
                "call_ws"
            ],
            "disabled": false,
            "timeout": 30,
            "url": "http://127.0.0.1:8090/sse/sse",
            "transportType": "sse"
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

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