New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

scrivener-mcp

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scrivener-mcp

Source
crates.io
Version
0.4.0
Version published
Maintainers
1
Created
Source

scrivener-mcp

MCP server for Scrivener 3 projects — AI-powered writing assistant tools.

Provides 30 tools that let AI assistants (Claude, etc.) read, write, analyze, and manage Scrivener projects through the Model Context Protocol.

Features

  • Project management — open/close/refresh projects, view binder structure
  • Binder item operations — read, write, create, delete, rename, and move documents or folders
  • Atomic Binder trees — validate and apply nested create/move plans with a single project save
  • Safe writes — reject writes while Scrivener is open or project files changed outside the session
  • Lossless structural writes — preserve document children, original item types, and unmodeled Binder XML such as TextSettings
  • Search — full-text search across document and folder body text
  • Trash management — list, search, and recover deleted documents
  • Compilation — compile documents in reading order, export entire draft
  • Writing analysis — readability scores (Flesch-Kincaid, SMOG, Coleman-Liau, ARI), passive voice, clichés, filter words, sentiment, sentence variety
  • Statistics — project-wide and per-document word counts with CJK-aware writing metrics
  • Project memory — persistent notes per project with consistency checking

Installation

From crates.io

cargo install scrivener-mcp

From GitHub Releases

Download a prebuilt binary from Releases for your platform:

PlatformFile
macOS (Apple Silicon)scrivener-mcp-aarch64-apple-darwin.tar.gz
macOS (Intel)scrivener-mcp-x86_64-apple-darwin.tar.gz
Linux (x86_64)scrivener-mcp-x86_64-unknown-linux-gnu.tar.gz
Windows (x86_64)scrivener-mcp-x86_64-pc-windows-msvc.zip

macOS: The downloaded binary is unsigned. Remove the quarantine attribute before running:

xattr -d com.apple.quarantine scrivener-mcp

Windows: SmartScreen may show "Windows protected your PC". Click More info → Run anyway to proceed.

Build from source

git clone https://github.com/jiayun/scrivener-mcp.git
cd scrivener-mcp
cargo install --path .

Configuration

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "scrivener": {
      "command": "scrivener-mcp",
      "args": []
    }
  }
}

Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "scrivener": {
      "command": "scrivener-mcp",
      "args": []
    }
  }
}

Or add interactively:

claude mcp add scrivener scrivener-mcp

Usage

  • Open a project — point the server at your .scriv bundle; an unclosed project is restored after process restarts
  • Browse structure — view the binder hierarchy
  • Read & write — access document or folder content by title or UUID
  • Analyze writing — get readability scores, find passive voice, clichés, etc.
  • Compile & export — combine documents into a single output

Item and parent parameters

Tools identify binder items with identifier (UUID, title, or Binder path such as Draft/Part One/Chapter 01) and destinations with parent (UUID, title, Binder path, or "root"). move_document requires parent so a misspelled field can never be interpreted as a request to move an item to root. The previous uuid, parent_uuid, target_parent_uuid, and folder_uuid names remain accepted as aliases for compatibility. Unknown fields are rejected.

CLI Options

scrivener-mcp [OPTIONS]

Options:
  --db_path <PATH>    Path to the SQLite database file [default: ~/.scrivener-mcp/data.db]
  --log_level <LEVEL> Log level: trace, debug, info, warn, error [default: info]
  -h, --help          Print help
  -V, --version       Print version

Tools

CategoryToolDescription
Projectopen_projectOpen a Scrivener 3 project (.scriv bundle)
Projectclose_projectClose the currently open project
Projectrefresh_projectReload project from disk
Projectget_structureGet hierarchical binder structure
Projectget_project_summaryComprehensive project summary
Projectget_session_infoCurrent MCP server session info
Documentread_documentRead document/folder content by UUID or title
Documentwrite_documentWrite content to a document or folder
Documentcreate_documentCreate a new document
Documentcreate_folderCreate a new folder
Documentcreate_binder_treeDry-run or atomically apply a nested create/move plan
Documentdelete_documentMove document to trash
Documentrename_documentRename a document or folder
Documentmove_documentMove an item to a required parent ("root" for binder root)
Documentget_document_infoDetailed document/folder info, notes, and metadata
Documentupdate_metadataUpdate synopsis, notes, keywords, custom metadata, or compile state
Searchsearch_contentFull-text search across documents and folders
Trashlist_trashList documents in trash
Trashsearch_trashSearch trash by title
Trashrecover_documentRecover document from trash
Compilecompile_documentsCompile documents in reading order
Compileexport_projectExport entire draft as single document
Analysisanalyze_documentFull document/folder analysis (readability, style, sentiment)
Analysisanalyze_readabilityReadability scores
Analysischeck_consistencyCheck memory against document state
Statsget_statisticsProject statistics and breakdown
Statsget_word_countWord count for document or project
Statsget_writing_statsDetailed per-document writing stats
Memoryupdate_memoryStore/update persistent project memory
Memoryget_memoryRetrieve stored memory entries

Acknowledgments

Inspired by dcondrey/scrivener-mcp (MIT License, Copyright 2025 David Condrey).

The issue #3 data-loss analysis and original verification scenarios were reported by @fidelnamisi.

License

MIT

FAQs

Package last updated on 11 Aug 2026

Related posts