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 分

這個評分如何計算