io.github.jyswee/ainpc-cli

Official registry Games, sports and entertainment

AI NPCs with persistent memory for game studios. NPC CRUD, dialogue, voice. Stdio or remote SSE.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

Remote (streamable-http)
Claude Code
claude mcp add --transport http ainpc-cli 'https://mcp.ainpcengine.com/mcp' --header 'Authorization: <Bearer token using your AINPCEngine API key: '\''Bearer npk_...'\''. Optional: without one the server starts in onboarding mode and can self-signup via the ainpc_signup tool.>'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "ainpc-cli": {
            "type": "http",
            "url": "https://mcp.ainpcengine.com/mcp",
            "headers": {
                "Authorization": "<Bearer token using your AINPCEngine API key: 'Bearer npk_...'. Optional: without one the server starts in onboarding mode and can self-signup via the ainpc_signup tool.>"
            }
        }
    }
}
Remote (sse)
Claude Code
claude mcp add --transport sse ainpc-cli 'https://mcp.ainpcengine.com/sse' --header 'Authorization: <Bearer token using your AINPCEngine API key: '\''Bearer npk_...'\''. Optional: without one the server starts in onboarding mode and can self-signup via the ainpc_signup tool.>'
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "ainpc-cli": {
            "type": "sse",
            "url": "https://mcp.ainpcengine.com/sse",
            "headers": {
                "Authorization": "<Bearer token using your AINPCEngine API key: 'Bearer npk_...'. Optional: without one the server starts in onboarding mode and can self-signup via the ainpc_signup tool.>"
            }
        }
    }
}
NPM package ainpc-cli
Claude Code
claude mcp add ainpc-cli -e 'AINPC_API_KEY=<your ainpc_api_key>' -e 'AINPC_GAME_ID=<AINPC_GAME_ID>' -- npx -y ainpc-cli@1.5.4
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "ainpc-cli": {
            "command": "npx",
            "args": [
                "-y",
                "ainpc-cli@1.5.4"
            ],
            "env": {
                "AINPC_API_KEY": "<your ainpc_api_key>",
                "AINPC_GAME_ID": "<AINPC_GAME_ID>"
            }
        }
    }
}

Environment variables

  • AINPC_API_KEY required secret AINPCEngine API key (npk_...). Get one with `ainpc signup` — 7-day free trial.
  • AINPC_GAME_ID Game slug to scope NPC tools to.

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. ainpc — AINPCEngine CLI & MCP Server
  2. Meet the NPCs
  3. See It In Action
  4. Why AINPCEngine
  5. Pricing
  6. Install
  7. Get Your API Key
  8. Quick Start
  9. Per-Project Config
  10. Agent Integration
  11. MCP Server
  12. Commands
  13. Environment Variables
  14. Links
  15. License

ainpc — AINPCEngine CLI & MCP Server

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.

Website · Docs · Live Demo · Pricing


Meet the NPCs

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

npm install -g ainpc-cli

Get Your API Key

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

# 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

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:

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.

Local (stdio):

{ "mcpServers": { "ainpcengine": { "type": "stdio", "command": "ainpc", "args": ["mcp-serve"] } } }

Requires npm install -g ainpc-cli + ainpc login --key npk_YOUR_KEY --game my-rpg (or AINPC_API_KEY env).

Remote (SSE, zero install) — for Claude Web and other web-based agents:

{ "mcpServers": { "ainpcengine": { "type": "sse", "url": "https://mcp.ainpcengine.com/sse",
  "headers": { "Authorization": "Bearer npk_YOUR_API_KEY" } } } }

No key yet? Connect keyless — the remote server starts in onboarding mode and an agent can self-signup via the ainpc_signup tool.

Commands

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

Environment Variables

AINPC_API_KEY=your-key
AINPC_GAME_ID=my-rpg
AINPC_BASE_URL=https://ainpcengine.com   # optional

License

Proprietary — see LICENSE. © 2026 Tyga.Cloud Ltd.

Frequently asked questions

What is io.github.jyswee/ainpc-cli?

AI NPCs with persistent memory for game studios. NPC CRUD, dialogue, voice. Stdio or remote SSE.

How do I install io.github.jyswee/ainpc-cli?

It runs as a remote server. In Claude Code: claude mcp add --transport http ainpc-cli 'https://mcp.ainpcengine.com/mcp' --header 'Authorization: <Bearer token using your AINPCEngine API key: '\''Bearer npk_...'\''. Optional: without one the server starts in onboarding mode and can self-signup via the ainpc_signup tool.>'. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.jyswee/ainpc-cli need an API key?

Yes. It expects AINPC_API_KEY, Authorization, which you set in its configuration.

Is io.github.jyswee/ainpc-cli open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains io.github.jyswee/ainpc-cli?

It is published by jyswee. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.