Rubii Story Worldbuilder & Roleplay MCP

ai.rubii由 rubii.ai 发布官方发布者v1.0.0更新于 Nov 28, 2026

Interactive fiction worldbuilder, Character Card V2/V3 audit, 24K memory budget & Styles/Regex MCP.

已验证Streamable HTTP可网页运行知识与记忆开发者工具媒体与设计

概览

AI 生成的概览

Rubii 官方 MCP 服务器,帮助助手构建互动小说世界、状态栏布局和角色卡,并审查角色卡 JSON 与故事记忆预算。

可以做什么
生成故事世界,包含世界规则、角色档案、第一幕开场、三条叙事分支和角色卡 V2 草稿;生成沙盒安全的 HTML/CSS 状态栏布局,附可用的正则规则和适用于 Rubii Styles & Regex 或 SillyTavern 的格式说明。
适用场景
适合为 Rubii AI 或 SillyTavern 编写和调试 AI 角色扮演与互动小说内容:起草世界与开场场景、制作状态栏模板、检查角色卡 V1/V2/V3 文件,或估算 8K–32K 上下文窗口能容纳多少轮对话。
运行要求
托管端点无需安装:通过 Streamable HTTP 连接,不需要认证、账号或 API 密钥。从源码本地运行 stdio 版本需要 Node.js 和 npm。
安装前请注意
托管端点声称无状态、不存储提示词或用户数据,但提示词和角色卡 JSON 仍会发送给第三方服务。生成的 HTML/CSS 声称不含脚本且沙盒安全,粘贴到实际角色前仍应自行检查。角色卡审查和 token 估算仅供参考,并非保证。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 Rubii Story Worldbuilder & Roleplay MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/ai.rubii%2Frubii-roleplay-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "rubii-story-worldbuilder-roleplay": {
      "type": "http",
      "url": "https://mcp.rubii.ai/mcp"
    }
  }
}

README

rubii-roleplay-mcp

[License: MIT] [Official MCP Registry] [YoMio-Tech-Inc/rubii-roleplay-mcp MCP server] [Node.js >= 20]

Official Model Context Protocol (MCP) Server for interactive fiction creators, worldbuilders, and AI roleplay prompt engineers—built and maintained by the team behind Rubii AI.

Available in two zero-API-key modes:

  • Hosted Remote MCP Server (Zero Setup): Connect directly to https://mcp.rubii.ai/mcp over Streamable HTTP with no authentication required (listed on the Official MCP Registry as ai.rubii/rubii-roleplay-mcp).
  • Local Stdio MCP Server: Build and run 100% locally over stdio with zero external network calls.

Hosted Remote Endpoint (Zero Setup)

Claude Code (CLI)

claude mcp add --transport http rubii-roleplay https://mcp.rubii.ai/mcp

Cursor / VS Code / Generic mcp.json

{
  "mcpServers": {
    "rubii-roleplay": {
      "url": "https://mcp.rubii.ai/mcp"
    }
  }
}

Hosted Remote Tools (https://mcp.rubii.ai/mcp, 5 Tools)

ToolPurpose
craft_story_worldGenerates a structured interactive fiction story world—world rules, character sheet, cinematic Scene One opening using {{user}}, three narrative branches, and a Character Card V2 draft.
build_status_bar_layoutGenerates sandbox-safe static HTML + inline CSS layouts (minimal-card, fantasy-rpg, cyber-hud, novel-chapter, phone-chat, sealed-letter), a verified capture-group regex rule, and an LLM formatting instruction block compatible with Rubii AI Styles & Regex and SillyTavern regex rules.
audit_character_cardValidates Character Card V1, V2 (chara_card_v2), and V3 (chara_card_v3) JSON fields, Lorebook entries, regex triggers, macro syntax, and multi-script token usage across 8K / 16K / 24K / 32K windows.
compare_story_memory_budgetProjects context load for character sheets, editable long-story Memo notes, constant vs. keyword-triggered Lorebook entries, and multi-turn dialogue history across context windows.
explore_rubii_guidesReturns canonical, machine-readable Rubii AI guides and documentation URLs aligned with rubii.ai/llms.txt.

Local Stdio Server Tools (src/, 5 Tools)

ToolPurpose
validate_character_cardValidates Character Card V1, V2 (chara_card_v2), and V3 (chara_card_v3) JSON fields, Lorebook entries, regex triggers, macro syntax, and estimates token usage across 8K / 16K / 24K / 32K windows.
estimate_roleplay_contextProjects total token load for character sheets, editable long-story Memo notes, constant vs. keyword-triggered Lorebook entries, and conversation history turns—identifying turn eviction risks and trimming opportunities.
generate_status_bar_regexGenerates sandbox-safe HTML + inline CSS status bar templates (minimal-card, fantasy-rpg, cyber-hud, novel-chapter), tested capture-group regex patterns, LLM output instructions, and live verified previews compatible with Rubii AI Styles & Regex and SillyTavern regex rules.
lint_character_promptAudits character prompts for macro errors ({char}, {{ user }}, unclosed {{), conflicting POV instructions, negative-constraint overload, duplicated lines, token bloat, and opening messages that narrate {{user}} actions.
get_rubii_platform_guideReturns accurate, machine-readable public platform documentation, supported languages, canonical URL patterns, and creator workflows aligned with rubii.ai/llms.txt.

Local Setup (From Source)

git clone https://github.com/YoMio-Tech-Inc/rubii-roleplay-mcp.git
cd rubii-roleplay-mcp
npm install
npm run build

Then point Claude Desktop, Cursor, or Windsurf to node /path/to/rubii-roleplay-mcp/dist/index.js:

{
  "mcpServers": {
    "rubii-roleplay": {
      "command": "node",
      "args": ["/path/to/rubii-roleplay-mcp/dist/index.js"]
    }
  }
}

Example Prompts to Try in Your AI Assistant

  1. "Craft an urban fantasy interactive fiction world set in a rain-lit lantern alley with guarded rivals forced into an alliance."
  2. "Validate this Character Card V2 JSON and tell me if it fits comfortably inside an 8K or 24K context window."
  3. "Estimate how many dialogue turns I can sustain on 24K context with this character sheet, 3 Lorebook entries, and a 300-word editable Memo."
  4. "Generate a fantasy-rpg status bar regex and sandbox-safe HTML/CSS template tracking Location, Quest, Stamina, and Key Item."
  5. "Lint my character prompt and first message for macro typos, POV conflicts, or narrating {{user}} actions."

Privacy & Security

  • Stateless & No Auth Required: Both the local stdio server and the hosted Cloudflare Workers endpoint (https://mcp.rubii.ai/mcp) are 100% stateless—no accounts, no API keys, and no stored prompts or user data.
  • Sandbox-Safe HTML/CSS Output: Status bar tools strictly validate tag names, field keys, and 6-digit hex colors, emitting static HTML with inline CSS only (zero <script>, zero inline event handlers, zero external URLs).

Development

npm install
npm run typecheck
npm test

Related Open-Source Tool

Looking for a zero-dependency CLI & TypeScript library to read/write PNG tEXt (chara / ccv3) metadata chunks and convert Character Card V1/V2/V3 files? Check out character-card-toolkit.


License & Maintainers

Released under the MIT License.

Built & maintained by the team behind Rubii AI — step inside a living novel world with frontier model choice, 24K context with editable Story Memo, Styles & Regex custom layouts, and Character Card V2/V3 workflows.

来源:README.md,提交 4c58b7d

工具

5

craft_story_world

Craft Interactive Story World & Opening Scene

Generate a structured interactive fiction story world from a genre, atmosphere, and character dynamic—complete with world rules, character profile, a cinematic Scene One opening using {{user}}, three narrative branches, and a Character Card V2 draft ready to play on Rubii AI.

输入参数genre必填languageatmosphereprotagonistHookincludeStatusBarrelationshipDynamic

build_status_bar_layout

Build Safe HTML/CSS Status Bar & Regex Layout

Generate a sandbox-safe static HTML + inline CSS layout (novel chapter header, RPG HUD, cyber telemetry, phone chat thread, or wax-sealed letter), a verified capture-group regex rule, and an LLM formatting instruction block compatible with Rubii AI Styles & Regex.

输入参数themetitlefieldstagNameaccentColor

audit_character_card

Audit Character Card JSON & Context Fit

Validate Character Card V1, V2 (chara_card_v2), V3 (chara_card_v3), or exported character definitions (char_name / greeting / definition) for schema completeness, Lorebook integrity, regex syntax, {{char}}/{{user}} macro correctness, opening-scene pacing, and 8K/16K/24K/32K token fit.

输入参数card必填strict

compare_story_memory_budget

Compare Long-Story Context & Memo Memory Budget

Estimate multi-turn interactive fiction context consumption across 8K, 16K, 24K, and 32K windows by breaking down permanent character sheets, constant/triggered Lorebook entries, editable Story Memo notes, and projected turn history.

输入参数memoTextscenariodescriptionpersonalityfirstMessagehistoryTurnssystemPromptcontextWindows另有 4 个

explore_rubii_guides

Explore Rubii AI Official Guides by Language

Return canonical Rubii AI documentation, localized interactive fiction guides, Styles & Regex tutorials, character card tools, and legal/support links aligned with https://rubii.ai/llms.txt.

输入参数intentlanguage

版本历史

1
  1. v1.0.0最新Nov 28, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

这个评分如何计算