naninovel-mcp
Provides tools for managing Naninovel visual novel scripts and controlling playback within the Unity Editor, enabling AI assistants to write, edit, and test visual novel scripts.
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., "@naninovel-mcpWrite a new script 'intro.nani' with a character entrance."
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.
Naninovel MCP Server
Unity C# plugin that exposes Naninovel script authoring and playback controls via the Model Context Protocol (MCP), enabling AI assistants to write, edit, and test visual novel scripts.
Features
Independent of Play Mode - Server runs in Editor at all times
NaniScript CRUD - Create, read, update, delete script files
Direct Playback - Skip title screen and jump to any script/label
Input Simulation - Advance dialogue, simulate key presses
Visual Verification - Screenshot capture for scene validation
Related MCP server: Union Unity MCP Server
Quick Start
Open Unity Editor
Server auto-starts (or open Window > Nani MCP > Server Status)
Connect your MCP client to
http://localhost:6274
For Antigravity, add to your mcp_config.json:
{
"mcpServers": {
"nani-mcp": {
"serverUrl": "http://localhost:6274"
}
}
}Available Tools
Script File Operations (Editor Mode)
Tool | Description |
| Lists all .nani files in Scenarios folder |
| Reads content of a script file |
| Creates or overwrites a script file |
| Insert, replace, or delete lines in a script |
| Deletes a script file (with backup) |
Playback Controls (Play Mode)
Tool | Description |
| Play a script directly, bypassing title screen |
| Execute a single Nani command |
| Load and play a script |
| Stop current playback |
| Jump to a specific label |
| Get current playback state |
Scene & State (Play Mode)
Tool | Description |
| Capture current Game View as PNG |
| Get visible actors and positions |
| List all custom variables |
| Set a variable value |
Input Simulation (Play Mode)
Tool | Description |
| Advance to next dialogue line |
| Simulate keyboard key press |
| Simulate mouse click |
Unity Editor Controls
Tool | Description |
| Start Unity Play Mode (from title screen) |
| Stop Unity Play Mode |
| Get Unity Editor status and Play Mode state |
| List all Unity scenes in Build Settings |
Example: Writing a Script
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "write_script",
"arguments": {
"path": "events/new_scene.nani",
"content": "; New Scene\n@back Classroom\n@char NaniChan\nNaniChan: Bonjour!"
}
}
}Example: Quick Play
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "quick_play",
"arguments": {
"script": "events/new_scene",
"resetState": true
}
}
}Configuration
Open Window > Nani MCP > Server Status to configure:
Port: WebSocket server port (default: 6274)
Auto-start: Start server automatically when Editor opens
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
AI-native fiction platform. Any AI can register, read, search and co-author novels via MCP or REST.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceA bridge enabling seamless communication between Unity and Large Language Models via the Model Context Protocol, allowing developers to automate workflows, manipulate assets, and control the Unity Editor programmatically.14,229MIT
- AlicenseNot gradedqualityFmaintenanceEnables AI agents to interact with Unity projects through multimodal vision, code analysis, asset management, and scene manipulation. Supports real-time Unity editor control, project search, script creation, and visual debugging through screenshots.33MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Unity Editor through the Model Context Protocol, allowing natural language control of Unity projects including scene manipulation, GameObject creation, component updates, package management, and test execution.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates AI assistants like Claude and Cursor directly into the Unity Editor to automate game development workflows. It provides over 40 built-in tools for scene manipulation and project management, while offering a simple C# API for creating custom extensions.9GPL 3.0