The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Slima listing page.
MCP (Model Context Protocol) Server for Slima - AI Writing IDE for Novel Authors.
Connect your Slima books to any MCP-compatible AI tool - one server, all platforms.
| Platform | Status | Notes |
|---|---|---|
| Claude Desktop | ✅ | Native MCP support |
| ChatGPT Desktop | ✅ | Developer Mode (2025.10+) |
| Gemini CLI | ✅ | Native MCP support |
| Cursor | ✅ | Native MCP support |
| VS Code | ✅ | Via MCP extensions |
| Platform | Status | Notes |
|---|---|---|
| Claude.ai | ✅ | OAuth login, no token needed |
| ChatGPT Web | ✅ | OAuth login, no token needed |
MCP became the industry standard in December 2025 when Anthropic, OpenAI, and Block co-founded the Agentic AI Foundation under the Linux Foundation.
Pick the path that matches how you use AI:
npxIf you chat with Claude or ChatGPT in a browser, this is the easiest and most future-proof option. Configure once and you will automatically get every Slima MCP update — no upgrade commands, no config edits.
MCP URL: https://mcp.slima.ai/mcp
Slimahttps://mcp.slima.ai/mcpSlimahttps://mcp.slima.ai/mcpAfter setup, Slima features roll out automatically on your next conversation. No restarts, no reinstalls.
Use this if you want offline-friendly operation, faster startup, or you need to run MCP alongside other stdio servers.
Recommended config — pinned to the major version so you pick up new features automatically but never break on a 1.0 release:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
Get your token from Slima Settings or run npx slima-mcp@0 auth once to save it to disk.
Why
slima-mcp@0instead ofslima-mcp/slima-mcp@latest? Using@0pins to the current major version — npx still fetches new0.x.yreleases automatically (so you get features + bug fixes), but when we ship1.0.0with breaking changes you won't silently pick it up without updating your config. We'll announce the@1switch in the release notes.
If you already installed globally with npm install -g slima-mcp:
Or, if you want to stay on a global install, remember to periodically run:
Otherwise your local client will drift from the MCP tools/schema the Slima backend exposes.
You can also clone this repo and deploy the Cloudflare Worker yourself. See wrangler.toml + npm run deploy:worker. Not required for normal use.
The hosted Remote MCP Server at https://mcp.slima.ai/mcp uses:
Slima books come in two flavors, distinguished by the book_type field. MCP behaves slightly differently for each:
📖 Writing Studio (book_type: "book") | 📝 Script Studio (book_type: "script") | |
|---|---|---|
| Creation via MCP | ✅ create_book works | ❌ use the Slima app UI |
| Read (any file) | ✅ | ✅ |
| Write / Edit / Delete | ✅ any path | ✅ only under .script_studio/planning/**/* |
Structured files (series.json, *.character, *.scene, *.storyline, *.note, *.location, season.json, episode.json) | n/a | ❌ read-only via MCP — edits must go through the Script Studio UI |
analyze_chapter (AI Beta Reader) | ✅ | ❌ not yet supported on structured scenes |
search_content | all files | structured files excluded by default; pass include_structured: true to include them |
For per-book details, ask your AI client to read the resource slima://books/{book_token}/schema — it returns a JSON spec of exactly which paths are writable/read-only for that specific book.
list_books tags every book with its studio icon (📝 / 📖) so you (and the AI) can tell them apart at a glance.
| Tool | Description |
|---|---|
create_book | Create a new book in your library |
list_books | List all books in your Slima library |
get_book | Get details of a specific book |
get_book_structure | Get the file/folder structure of a book |
get_writing_stats | Get writing statistics for a book |
| Tool | Description |
|---|---|
read_file | Read content of any file by path |
edit_file | Edit specific text using search & replace |
write_file | Replace entire content of a file |
create_file | Create a new file in a book |
delete_file | Delete a file from a book |
append_to_file | Append content to end of a file |
search_content | Search for text across all files |
| Tool | Description |
|---|---|
list_personas | List available beta reader personas |
analyze_chapter | Get AI beta reader feedback on a chapter |
Once configured, you can ask your AI:
Book & Content:
File Operations:
AI Feedback:
Token is stored in ~/.slima/credentials.json with secure permissions.
| Variable | Required | Default | Description |
|---|---|---|---|
SLIMA_API_TOKEN | No* | - | Your Slima API token |
SLIMA_API_URL | No | https://api.slima.ai | API endpoint (for development) |
DEBUG | No | false | Enable debug logging |
*Not required if you used slima-mcp auth
Merge to main with a version bump in package.json triggers automatic npm publish via GitHub Actions.
Worker deployment is separate from npm. Deploy after code changes:
To publish/update the server listing on the MCP Registry:
Requires mcpName in package.json and server.json in repo root.
When troubleshooting claude.ai or ChatGPT connector issues:
All OAuth endpoints log key parameters (client_id, redirect_uri, token prefix, etc.) to help trace the flow.
slima_ prefix) to support OAuth-issued tokens. Rails API performs actual validation.getTokenFromSession() checks Authorization header first, then falls back to cookie session.npx @modelcontextprotocol/inspector) is useful for testing the full OAuth flow independently.MIT