SuperAPI AI Directory

scrivener-mcp

Work with Scrivener 3 writing projects: document management, writing analysis, semantic search, character and plot memory, and content enhancement.

Open website

About this tool

Purpose

scrivener-mcp is an MCP (Model Context Protocol) server for connecting Scrivener 3 writing projects to Claude, ChatGPT, and any AI assistant that supports MCP. It lets AI assistants directly open, read, edit, analyze, and search .scriv projects, with no need to export files and no need to copy and paste text back and forth between the AI and Scrivener. Suitable for writing workflows for novels, screenplays, and manuscripts.

Main Capabilities

  • Document management: Read chapters, create scenes, reorganize the binder, update synopses, etc., all through conversation.
  • Writing analysis: Readability, pacing, style, dialogue quality, and emotional arc analysis based on the actual text, rather than generic advice.
  • Content enhancement: Provides targeted edits, including removing filter words, strengthening verbs, varying sentence structure, adding sensory details, showing rather than telling, tightening dialogue, fixing pacing, etc. Enhancement types include: eliminate-filter-words, strengthen-verbs, vary-sentences, add-sensory-details, show-dont-tell, improve-flow, enhance-descriptions, strengthen-dialogue, fix-pacing, expand, condense, rewrite.
  • Character and plot tracking: Character profiles, plot threads, and style guides persist with the project across sessions, enabling consistency checks.
  • Semantic search: Find scenes by meaning, even when keywords do not appear. Indexing and similarity scoring run locally through the Holographic Memory System; semantic_search requires configuring an AI provider to interpret queries and explain results.
  • Relationship tracking: Query connections between characters, places, themes, and plot threads. No Neo4j is required; relationships are stored in the semantic memory engine and persist with the project; connecting Neo4j provides deeper graph analysis.
  • Compilation and export: Assemble chapters into a single manuscript, preserving custom formatting and structure. Can export inline as Markdown, HTML, or JSON, or write DOCX, EPUB, and PDF to disk.

Tools are organized by workflow, with 67 tools total, using progressive loading to reduce token consumption: project tools load at startup, document and search tools load after opening a project, and the rest load on demand. Set SCRIVENER_MCP_EAGER_TOOLS=1 to load all tools at once.

Usage

Installation:

  • npx, no installation required:npx scrivener-mcp
  • Or add it directly to the Claude Desktop configuration
  • Homebrew (macOS)
  • Other MCP clients: point them to npx scrivener-mcp as a stdio server

Client support: Claude Desktop, Claude Code, VS Code (Copilot/Continue), Cursor, and any MCP-compatible client. Registered in the official MCP Registry as io.github.writerslogic/scrivener-mcp.

Configuration: Restart Claude Desktop to use it. Other clients require an extra step: automatically find and configure Claude Code, Claude Desktop, and Cursor. Manually set up Claude Code:claude mcp add -s user scrivener -- npx scrivener-mcp, then restart (or run /mcp).

API keys: Document management, deterministic analysis, keyword search, and project memory require no API key. Writing analysis, generation, enhancement, and semantic search require a key, supporting Anthropic, OpenAI, or OpenRouter. When multiple are set, Claude handles chat by default; this can be overridden with AI_PROVIDER=openai or AI_PROVIDER=openrouter (OpenRouter defaults to anthropic/claude-sonnet-4.6, changeable with OPENROUTER_MODEL). If the current provider fails due to an account-level error, the server retries the next configured provider. If the MCP client supports sampling, chat-based features can run through the client's own model without a separate key. Semantic indexing always runs locally through the Holographic Memory System; only semantic_search's query interpretation requires a provider.

Keys are automatically obtained from the following locations: ANTHROPIC_API_KEY / OPENAI_API_KEY / OPENROUTER_API_KEY; ~/.env or ~/.scrivener-mcp/.env; ~/.anthropic/key, ~/.openai/key, ~/.openrouter/key; macOS Keychain (anthropic-api-key / openai-api-key / openrouter-api-key).

Usage flow: First open the project. The server has no connection to the Scrivener application itself and cannot see what is open in it—you need to say "Open my Scrivener project at ~/Documents/My Novel.scriv", or "Discover my Scrivener projects". On macOS, "Use the project I have open in Scrivener" also works (on first use, macOS will request permission to control Scrivener). Do this once per conversation. If the project is also open in Scrivener and unsaved,please save or close it first, otherwise the two may overwrite each other.

Use cases

  • Writing, editing, and analysis of novels, scripts, and manuscripts
  • Scenarios requiring AI to directly manipulate the Scrivener project structure (binder hierarchy, metadata, labels, status, snapshots, compile settings, RTF formatting)
  • Tracking character, plot, and style consistency across sessions
  • Searching scene content by meaning
  • Compiling and exporting chapters to multiple formats

Limitations

  • Requires a Scrivener 3 project file (.scriv), supported on macOS, Windows, or Linux.
  • The server has no connection to the Scrivener application itself and cannot see what is open in Scrivener; the project path must be specified manually.
  • If the project is also open in Scrivener and unsaved, write conflicts may occur.
  • Writing analysis, generation, enhancement, and semantic search require an Anthropic, OpenAI, or OpenRouter API key; semantic_search's query interpretation also requires a provider.
  • Document management, deterministic analysis, keyword search, and project memory require no API key.
  • Relationship tracking requires no Neo4j, but Neo4j can provide deeper graph analysis.
  • The document cross-reference tool is fully deterministic (exact whole-word matching, no AI) and requires no external services.
  • Memory is stored within each .scriv project and moves with the project.
  • The license is AGPL-3.0, free for personal use and open-source projects; a commercial license is available for proprietary integrations.
  • Alternative: Scrivener can Sync to External Folder, writing each document as RTF or plain text, and any general-purpose file-access MCP server can read and write them; however, this loses the binder hierarchy, metadata, labels and status, snapshots, compile settings, and RTF formatting, and edits land in the sync folder rather than the project itself.