SillyTavern-MCP
SillyTavern MCP Server
A read-only Model Context Protocol server that exposes a SillyTavern user directory (characters, personas, chat-completion presets, lorebooks, chats) to general-purpose agent clients — Claude Desktop, Raycast, BoltAI, etc.
See docs/MVP.md for the full design spec: architecture, handle scheme, envelope format, and tool inventory.
Status
The full MVP tool inventory (§6) is implemented and end-to-end tested over real stdio:
Characters —
list-characters,get-characterPersonas —
list-personas,get-personaPresets —
list-presets,get-preset,export-presetLorebooks —
list-lorebooks,get-lorebook,search-lorebookChats (the ladder) —
list-chats→get-chat-manifest→get-chat-summaries→search-chat→get-messages→export-chat
Remaining work is the explicitly-deferred post-MVP backlog (docs/MVP.md §8) — track it via bd (this repo's issue tracker — run bd ready / bd list).
Project layout
packages/core/ pure library — no MCP awareness
fs/ the ONLY module that touches the filesystem (reads + export writes)
resolve/ user-dir resolution, startup validation, handles, name resolution
parse/ one parser per surface (cards, chats, lorebooks, presets, personas, summaries)
render/ transcript assembly, preset outline/full, token estimates, prefix stripping
packages/mcp/ stdio MCP adapter — envelope, tool registration, one file per tool group
packages/cli/ st-mcp CLI — npx entrypoint + `doctor` subcommand
docs/MVP.md design specGetting started locally
npm install
npm run build
node packages/cli/dist/bin.js --user-dir /path/to/SillyTavern/data/default-user--user-dir is optional — see docs/MVP.md §3 for the full resolution order (flag > SILLYTAVERN_USER_DIR env var > ~/.config/st-mcp/config.json > platform-default guesses). The server refuses to start and lists every path it tried if none resolve to a valid SillyTavern user directory.
To check your user-dir without starting the server:
node packages/cli/dist/bin.js doctor --user-dir /path/to/SillyTavern/data/default-userRunning tests
npm testLearn more
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/logan-lopez/SillyTavern-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server