episodekeep
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Episodekeep
Keeps a story that runs across many episodes and quests straight, so an AI playing your character remembers what happened, what it promised, and (just as important) what it does not know.
One file, story.db, holds everything. It lives on your computer. No account, no server, no internet.
Python 3.9+, standard library only.
Use it with any AI (copy and paste)
pip install . # or just run: python -m episodekeep ...
episodekeep init "The Salt Road" --premise "A caravan crosses the dry sea."
episodekeep character Mara --pc --sheet "Scarred caravan guard, 40." --voice "Dry, short sentences."
episodekeep character Vell --sheet "Merchant who owes Mara."
episodekeep start "The Crossing"
episodekeep quest "Find the well" --description "Somewhere past the dunes"
episodekeep log "The caravan reached the dunes"
episodekeep log "Vell lied about the cargo" --kind secret --known-by "Vell"
episodekeep log "Mara promised to bring the child home" --kind promise --quest "Find the well"
episodekeep end "They crossed the salt flats and lost two wagons."
episodekeep recap --as Mara # paste this at the start of the next sessionrecap --as Mara prints a block telling the AI who it is, how it speaks, the cast, what happened
in recent episodes, open quests, promises made, and what Mara knows. A secret marked --known-by Vell
is left out of Mara's recap, so the AI can't use knowledge its character couldn't have.
recap with no name is the narrator's view and shows everything.
Related MCP server: AGI MCP Server
Try it in 10 seconds
sh examples/salt_road.sh # a two-episode story: prints Mara's recap (no secret) and the narrator's (secret shown)Writing the end-of-episode summary
The summary is the memory that matters most. episodekeep draft-summary prints everything logged in the open episode plus
instructions; paste it into any AI, read what it writes, fix it, then episodekeep end "…". Episodekeep never calls an AI itself.
Through MCP the AI can call draft_summary and end_episode on its own.
Let the AI keep the notes itself (MCP)
Claude Desktop and other MCP apps can run it as a tool server. In the app's MCP config:
{"mcpServers": {"episodekeep": {"command": "episodekeep", "args": ["--db", "/full/path/story.db", "mcp"]}}}Tools: recap, start_episode, end_episode, draft_summary, log, add_quest, update_quest, character, search. The AI can write things down as it plays and ask for the recap when a session starts.
Commands
init, character, start, end, quest, quest-set (open, done, failed, dormant), log (event, fact, promise, secret, relationship), search, recap, export (the whole story as markdown), episodes, quests, characters (lists), draft-summary, mcp, --version.
What it is not
It stores what you or the AI write down; it does not read your chat and it does not decide what matters.
Summaries (end) are the memory that matters most: write them well. Nothing leaves your computer.
Keep story.db somewhere you back up. Tests: python3 -m unittest discover -s tests.
License: Apache-2.0. Made by Every Synthetic, Mena, Arkansas.
This server cannot be deployed
Related MCP Connectors
D&D and TTRPG campaign manager for GMs: your AI reads and writes a live, typed campaign database.
Gives your AI assistant persistent memory and intelligence about your work patterns.
Story continuity, novel memory, and series bible for fiction writers, shared with AI assistants
Persistent memory for AI assistants: store, search, and connect knowledge across conversations.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceProvides persistent local memory functionality for AI assistants, enabling them to store, retrieve, and search contextual information across conversations with SQLite-based full-text search. All data stays private on your machine while dramatically improving context retention and personalized assistance.3-
- FlicenseBqualityDmaintenanceEnables persistent memory for AI systems by providing tools for episodic, semantic, and procedural data storage through a vector-and-graph-enhanced database. It allows models to maintain long-term continuity using similarity search, thematic clustering, and identity tracking.241-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to have persistent, self-hosted memory across sessions and devices, storing context in a SQLite database you control.1MIT
- AlicenseNot gradedqualityBmaintenanceProvides persistent, cross-session memory for AI agents, allowing them to store and automatically retrieve information across different conversations and sessions without repeating context.33 npm177MIT