AI NPCs with persistent memory for game studios. NPC CRUD, dialogue, voice. Stdio or remote SSE.
io.github.jyswee/ainpc-cli โ AINPCEngine CLI & MCP Server
This MCP server, io.github.jyswee/ainpc-cli, provides an interface for creating, talking to, and managing AI-powered NPCs with persistent memory. The server supports NPC CRUD and dialogue, including voice. Communication is available via stdio or remote SSE, and it is built for coding agents.
๐ ๏ธ Key Features
NPC CRUD (create, manage, update/delete)
Dialogue handling for AI NPCs
Voice support (tts-related)
Persistent memory for NPCs across sessions
Interfaces via stdio and remote SSE
Tool count: 2
๐ Use Cases
Game studio tooling for AI NPC workflows
Dialogue-driven NPC interactions during development
Integrating NPC behavior with game events
Using coding agents to manage NPC assets and state
โก Developer Benefits
Fits into MCP-based toolchains (topics include mcp and mcp-server)
Works well with game development stacks mentioned in topics (e.g., Godot, Unity, Unreal)
Supports agent-driven development (coding-agent, ai-agent)
โ ๏ธ Limitations
The provided source only confirms 2 tools; details beyond NPC CRUD/dialogue/voice are not included.
Explains what AINPCEngine is and how to activate this MCP server (no API key on this session yet).
Parameters
No parameters.
Raw schema
{
"type": "object",
"properties": {}
}
ainpc_signup
Create a new AINPCEngine studio account. Requires the human's email and a password (min 8 chars): they log in at ainpcengine.com and add a card to start the 7-day free trial ($0 today). Returns an npk_ API key (shown once) and unlocks all AINPCEngine tools in this session immediately. Ask the human for their email before calling.
Parameters4
name
string
required
Studio display name, e.g. "My Game Studio"
email
string
required
Human email. Used to log in and activate the trial.
password
string
required
Account password (min 8 characters)
plan
string
optional
Plan (default: indie, $29/mo after trial)
Raw schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Studio display name, e.g. \"My Game Studio\""
},
"email": {
"type": "string",
"description": "Human email. Used to log in and activate the trial."
},
"password": {
"type": "string",
"description": "Account password (min 8 characters)"
},
"plan": {
"type": "string",
"enum": [
"indie",
"pro",
"enterprise"
],
"description": "Plan (default: indie, $29/mo after trial)"
}
},
"required": [
"name",
"email",
"password"
]
}
Create, talk to, and manage AI-powered NPCs from the command line. Built for coding agents.
NPCs that remember players across sessions, react to game events, and stay in character โ powered by AINPCEngine.
Every one of these is a live AI NPC on the public demo โ persistent memory, daily schedules, moods, and secrets. Click through and talk to them.
Grok the Blacksmith merchant ยท Village Guard "Aye, what d'ye need? I've blades sharp enough to split a hair."
Elara Nightbloom herbalist ยท Healers Circle "Every leaf tells a story, if you know how to listen."
Captain Voss guard ยท Town Watch "State your business or move along. I haven't got all day."
Pip Tanglefoot innkeeper ยท Merchants Guild "Welcome, welcome! Ale's cold, stew's hot, and the beds only have a few bugs!"
Sister Maren priest ยท Temple of the Dawnlight "The light does not judge, child. It only reveals what is already there."
Dax Ironjaw merchant "A fair deal? Friend, every deal I make is fair โ for me."
Old Thorn farmer "Rain's coming. Or trouble. Same thing, usually."
Lyra Ashford scholar ยท Academy of Letters "If the answer isn't in this book, I simply haven't found the right page yet."
See It In Action
Real terminal sessions, real dashboard โ no mockups. Click any card to watch.
CLI & Coding Agents Signup to a remembering NPC โ one terminal, 75 seconds
Dashboard Mission control: live NPC, game and interaction KPIs
Games Each game gets its own world โ create one in seconds
NPCs Create an NPC: role, traits, speech style, backstory
Playground Chat live with your NPC โ watch it remember the debt
Why AINPCEngine
Persistent memory โ NPCs remember every player across sessions: names, debts, favors, grudges
Dynamic personalities โ traits, moods, daily schedules, secrets; NPCs stay in character
Full game-event coverage โ dialogue, combat, trade, and quest events through one API
AI persona generation โ generate a complete NPC (backstory, traits, speech style) from a role
NPC voice (TTS) โ give any NPC a voice via the speak endpoint
REST + WebSocket โ request/response or realtime streaming, your choice
Agent-native โ 49 MCP tools; coding agents can create and manage NPCs end-to-end
SDKs for every engine โ Unity, Unreal, Godot, Rust, Node.js, plus a CLI
Pricing
Plans from $29/mo with a 7-day free trial ($0 today). See pricing โ
Install
bash
npm install -g ainpc-cli
Get Your API Key
bash
ainpc signup "My Studio" --email you@studio.com --password ********
Creates your studio and auto-saves an npk_ API key. Then log in at https://ainpcengine.com and add a card to start the 7-day free trial ($0 today, plans from $29/mo). Or sign up at https://ainpcengine.com/auth/register and generate a key in Studio Dashboard โ API Keys.
Quick Start
bash
# Login (one time)
ainpc login --key YOUR_API_KEY --game my-rpg
# Create an NPC
ainpc create "Grok the Blacksmith" --role merchant --traits gruff,loyal
# Talk to them
ainpc say NPC_ID "Got any swords?"# AI-generate a full NPC (NPC Persona)
ainpc generate --role guard --name "Captain Voss"# List all NPCs
ainpc list
# Check status
ainpc status
Per-Project Config
bash
ainpc login --local --key YOUR_KEY --game my-rpg # saves to .ainpc/config.json
ainpc login --key YOUR_KEY --game my-rpg # saves to ~/.ainpc/config.json
ainpc config # show active config
Local config overrides global. Add .ainpc/ to your .gitignore.
Agent Integration
Add to your CLAUDE.md, .cursorrules, .clinerules, or .windsurfrules:
code
Use the ainpc CLI for NPC management.
Config auto-loaded from .ainpc/config.json or AINPC_API_KEY env.
Run ainpc --help for full reference.
MCP Server
49 tools for AI agents: NPC CRUD, dialogue, game events, persona generation, studio account, usage and billing.
No key yet? Connect keyless โ the remote server starts in onboarding mode and an agent can self-signup via the ainpc_signup tool.
Commands
code
ainpc create "Name" --role R Create NPC
ainpc list List all NPCs
ainpc show NPC_ID Show detail
ainpc say NPC_ID "message" Talk to NPC
ainpc generate --role guard AI-generate NPC
ainpc speak NPC_ID "text" NPC voice (TTS)
ainpc status Quick overview
ainpc --help Full reference