renpy_mcp_server
Allows AI assistants to create complete Ren'Py visual novel games with image generation, dialogue scripting, branching stories, and web deployment.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@renpy_mcp_serverCreate a visual novel project named 'Mystery Manor' with a spooky mansion background."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🎮 Ren'Py MCP Server
Build visual novels with AI! An Model Context Protocol server that lets AI assistants create complete Ren'Py visual novel games with images, dialogue, branching stories, and web deployment.
🎬 See It In Action
🎥 Demo Video
📸 Example Outputs
Generated Backgrounds (16:9)
Character Sprites with Multiple Emotions (2:3)
Final Playable Games
Related MCP server: TyranoStudio MCP Server
✨ Features
🎨 AI Image Generation - Backgrounds (16:9) and characters (2:3) using Gemini 2.5 Flash Image
🎭 Emotion System - Generate 5 emotions per character in one API call (neutral, happy, sad, surprised, angry)
📝 Script Generation - AI writes complete Ren'Py scripts with dialogue, choices, and branching paths
🌐 Web Builds - Automatically compile to playable web games
🎬 Live Preview - Local HTTP server to test games instantly
🪄 Transparent Sprites - Automatic background removal for character sprites
🚀 Quick Start
Automated Setup
# Clone and setup everything automatically
git clone https://github.com/banjtheman/renpy_mcp_server.git
cd renpy_mcp_server
./setup.sh
# Test your installation
./test_setup.sh
# (Optional) Test image generation directly
uv run python test_nano_banana.pyThe setup.sh script will:
✅ Install Python dependencies
✅ Download and setup Ren'Py SDK (OS-specific)
✅ Automatically install web support module
✅ Help configure Gemini API key
✅ Create MCP configuration files
✅ Test everything works
MCP Client Configuration
Add the server to your MCP client configuration (Claude Desktop, Cursor, etc.):
{
"mcpServers": {
"renpy_mcp_server": {
"command": "uv",
"args": [
"--directory",
"/FULL_PATH_TO_RENPY_MCP_SERVER",
"run",
"renpy-mcp-server"
],
"env": {
"GEMINI_API_KEY": "${GEMINI_API_KEY}",
"RENPY_SDK_PATH": "${RENPY_SDK_PATH}"
}
}
}
}Replace:
/FULL_PATH_TO_RENPY_MCP_SERVER- Full path to this repository${GEMINI_API_KEY}- Your Gemini API key${RENPY_SDK_PATH}- Path to Ren'Py SDK (e.g.,/path/to/renpy-8.4.1-sdk)
Or use environment variables:
export GEMINI_API_KEY="your-api-key"
export RENPY_SDK_PATH="/path/to/renpy-8.4.1-sdk"Manual Setup
Install Dependencies
uv syncSetup Ren'Py SDK
SDK and web module are automatically downloaded during setup
No manual launcher interaction needed
Get Gemini API Key
Visit Google AI Studio
Create an API key
Configure Environment
export RENPY_SDK_PATH="/path/to/renpy-sdk" export GEMINI_API_KEY="your-api-key"Add to MCP Client
See "MCP Client Configuration" section above
The server will start automatically when your MCP client connects
🎮 Usage
Basic Workflow
Create a project
create_project(name="my_vn")Generate assets
generate_background(project_name="my_vn", description="Cozy café interior, evening time...") generate_character(project_name="my_vn", character_name="alice", description="Friendly barista...", generate_emotions=True)Write the story
generate_script(project_name="my_vn", script_name="intro", script_content="label intro:\n scene bg cafe\n show alice happy\n Alice \"Welcome!\"\n return")Inspect and edit (optional)
list_project_files(project_name="my_vn") # See all files read_project_file(project_name="my_vn", file_path="intro.rpy") # Read a script edit_project_file(project_name="my_vn", file_path="intro.rpy", content="...") # Update itBuild and preview
build_project(project_name="my_vn") start_web_preview(project_name="my_vn")
📚 Documentation
Examples - Claude Agent SDK and Strands integration examples
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
📄 License
MIT License - see LICENSE for details.
Happy visual novel creating! 🎮✨
This server cannot be deployed
Maintenance
Related MCP Connectors
Build, version, review, and export websites, web apps, and games from a conversation.
Publish HTML5 browser games from your AI assistant — upload, release, stats. You keep the rights.
Generate logos, social posts, app screenshots, comic panels & visual-novel assets from prompts.
Generate AI images, videos, music, SFX & speech in any AI assistant. Results appear inline in chat.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables creation and management of structured game worlds for text adventures and RPGs with character creation, world generation, and natural language interaction through AI integration.1MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables comprehensive management of TyranoStudio visual novel projects including project creation, scenario editing with syntax validation, resource management, and TyranoScript development assistance. Supports project analysis, template generation, and Git integration for visual novel game development.2-
- AlicenseBqualityBmaintenanceEnables AI assistants to act as co-developers for RPG Maker MV projects, providing full database CRUD, map and event editing, plugin management, playtest control, and automatic backups.4169 npmMIT
- AlicenseNot gradedqualityAmaintenanceProvides 70+ MCP tools for creating and managing Ren'Py projects, enabling natural language requirements to be converted into editable projects with build, preview, and asset generation capabilities.MIT