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)
| Tool | Purpose |
|---|
craft_story_world | Generates 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_layout | Generates 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_card | Validates 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_budget | Projects 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_guides | Returns canonical, machine-readable Rubii AI guides and documentation URLs aligned with rubii.ai/llms.txt. |
Local Stdio Server Tools (src/, 5 Tools)
| Tool | Purpose |
|---|
validate_character_card | Validates 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_context | Projects 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_regex | Generates 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_prompt | Audits 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_guide | Returns 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
- "Craft an urban fantasy interactive fiction world set in a rain-lit lantern alley with guarded rivals forced into an alliance."
- "Validate this Character Card V2 JSON and tell me if it fits comfortably inside an 8K or 24K context window."
- "Estimate how many dialogue turns I can sustain on 24K context with this character sheet, 3 Lorebook entries, and a 300-word editable Memo."
- "Generate a fantasy-rpg status bar regex and sandbox-safe HTML/CSS template tracking Location, Quest, Stamina, and Key Item."
- "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.