Scrivener MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Scrivener MCP Server Open my project at ~/Documents/Novel.scriv and show me the structure"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Scrivener MCP Server
An MCP (Model Context Protocol) server that lets AI assistants read, write, and organize Scrivener projects. Works with Claude, ChatGPT, Gemini, and other MCP-compatible AI tools.
Features
Read & Write - Full access to manuscript content, notes, and synopses
Organize - Create, move, rename, and delete documents and folders
Search - Find content across your entire project with context
Compile - Export your manuscript to PDF directly from AI
Continuity Tools - Check character/setting consistency across your manuscript
Perfect for writers who want AI assistance with drafting, revision, outlining, or project organization.
Requirements
Node.js 18 or higher
Scrivener 3 (macOS or Windows)
An MCP-compatible AI client (Claude Desktop, ChatGPT Desktop, Cursor, etc.)
Installation
Option 1: npm (Recommended)
npm install -g @twelvetake/scrivener-mcpThen add to your MCP client's configuration. For Claude Desktop (claude_desktop_config.json):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"scrivener": {
"command": "scrivener-mcp"
}
}
}Option 2: From Source
Clone and build:
git clone https://github.com/TwelveTake-Studios/scrivener-mcp.git cd scrivener-mcp npm install npm run buildAdd to your Claude Desktop configuration:
{ "mcpServers": { "scrivener": { "command": "node", "args": ["/full/path/to/scrivener-mcp/dist/index.js"] } } }Restart Claude Desktop
Quick Start
Once installed, try these commands with your AI assistant:
Open my Scrivener project at /path/to/mynovel.scrivShow me the structure of my manuscriptRead Chapter 3Create a new scene called "The Confrontation" in Chapter 5Compile everything up to Chapter 7 into a PDFFind all mentions of "Sarah" and check if her descriptions are consistentAvailable Tools (22 total)
Project Management
Tool | Description |
| Open a Scrivener project (.scriv folder) |
| Get the hierarchical structure of the project binder |
Document Operations
Tool | Description |
| Read content from a document (optionally includes synopsis) |
| Write/replace content in a document |
| Append content to end of document without replacing |
| Create new documents or folders |
| Move documents to trash |
| Reorganize items in the binder |
| Rename documents |
| Read multiple documents at once (more efficient) |
Synopsis & Notes
Tool | Description |
| Read the synopsis (index card text) |
| Write/update the synopsis |
| Read inspector notes for a document |
| Write/update inspector notes |
Search
Tool | Description |
| Search across all documents |
| Search with surrounding paragraphs for context |
Compile & Export
Tool | Description |
| Preview what will be compiled |
| Export manuscript to PDF |
| Toggle document's "Include in Compile" setting |
| Get word count for document or entire manuscript |
Continuity Checking
Tool | Description |
| Find all sentences mentioning a term |
| Find descriptive sentences to check consistency |
Tool Reference
open_project
Open a Scrivener project to work with.
Parameters:
path(required): Path to the .scriv project folder
Example:
Open my project at D:/Writing/MyNovel.scrivget_structure
View the binder hierarchy of your project.
Parameters:
folderId(optional): Get structure for specific folder onlymaxDepth(optional): Maximum depth to traverse
Example:
Show me the structure of my manuscript
Show me only what's in Chapter 3read_document
Read the content of a document.
Parameters:
documentId(required): UUID of the documentincludeSynopsis(optional): If true, returns both content and synopsis
Example:
Read the content of "Chapter 1 - The Beginning"
Read Chapter 3 with its synopsiswrite_document
Replace the content of a document.
Parameters:
documentId(required): UUID of the documentcontent(required): New content to write
Example:
Replace the content of Scene 2 with the revised versionappend_to_document
Add content to the end of a document without replacing existing content.
Parameters:
documentId(required): UUID of the documentcontent(required): Content to appendseparator(optional): Separator between existing and new content (default: two newlines)
Example:
Append this new paragraph to Chapter 5
Add these notes to the end of the scenecreate_document
Create a new document or folder.
Parameters:
title(required): Title of the new documentparentId(optional): UUID of parent folder (defaults to Draft/Manuscript)documentType(optional): "Text" or "Folder" (default: "Text")content(optional): Initial content
Example:
Create a new chapter called "The Escape"
Create a folder called "Act Two" and add three scenes to itdelete_document
Move a document to the trash.
Parameters:
documentId(required): UUID of the document to delete
Example:
Delete the scene called "Old Draft"move_document
Move a document to a different folder.
Parameters:
documentId(required): UUID of the document to movetargetFolderId(required): UUID of the target folderposition(optional): Position in target folder
Example:
Move "The Discovery" scene to Chapter 4rename_document
Rename a document.
Parameters:
documentId(required): UUID of the documentnewTitle(required): New title
Example:
Rename "Untitled Scene" to "The Confrontation"batch_read
Read multiple documents at once. More efficient than multiple read_document calls.
Parameters:
documentIds(required): Array of document UUIDs to read
Example:
Read all the scenes in Chapter 2read_synopsis / write_synopsis
Read or write the synopsis (index card text) for a document.
Parameters:
documentId(required): UUID of the documentsynopsis(required for write): Synopsis text
Example:
Show me the synopsis for Chapter 3
Update the synopsis for "The Chase" to summarize the new versionread_notes / write_notes
Read or write inspector notes for a document.
Parameters:
documentId(required): UUID of the documentnotes(required for write): Notes content
Example:
Show me my notes for Scene 5
Add a note to Chapter 2 about the timelinesearch_content
Search for content across all documents.
Parameters:
query(required): Search query
Example:
Search for mentions of "the artifact"
Find all scenes that reference the castlesearch_with_context
Search with surrounding paragraphs for better context.
Parameters:
query(required): Search termcontextParagraphs(optional): Paragraphs before/after to include (default: 2)
Example:
Search for "the ritual" with 3 paragraphs of contextget_compile_order
Preview what documents will be compiled and in what order.
Parameters:
stopAtTitle(optional): Stop at document with this title (partial match)
Example:
Show me the compile order
What would be compiled up to Chapter 5?compile_manuscript
Compile the manuscript to a PDF file.
Parameters:
outputPath(required): Full path for the output PDFtitle(optional): Book title for cover page and PDF metadata (default: project filename)author(optional): Author name for cover page and PDF metadatastopAtTitle(optional): Stop at document with this titleincludeTitle(optional): Include document titles as headers (default: true)fontSize(optional): Font size in points (default: 12)lineSpacing(optional): Line spacing multiplier (default: 1.5)
Example:
Compile my full manuscript to D:/Writing/MyNovel.pdf
Compile with title "Keystone: Aftermath" by Dave Cilluffo
Compile everything up to Chapter 7 to D:/Writing/Draft.pdf
Compile with 14pt font and double spacingset_include_in_compile
Toggle whether a document should be included when compiling.
Parameters:
documentId(required): UUID of the documentinclude(required): true to include, false to exclude
Example:
Exclude the "Notes" document from compile
Include "Deleted Scene" back in the compileword_count
Get word count for a specific document or the entire manuscript.
Parameters:
documentId(optional): UUID of document (omit for entire manuscript)
Example:
How many words are in my manuscript?
What's the word count for Chapter 3?find_all_mentions
Find all sentences mentioning a term. Great for character/setting consistency checks.
Parameters:
term(required): Term to search for (e.g., character name)
Example:
Find all mentions of "Sarah"
Show me every sentence that mentions "the lighthouse"compare_descriptions
Find descriptive sentences for a term (sentences with "was", "had", "looked", etc.). Helps identify inconsistent descriptions.
Parameters:
term(required): Term to find descriptions for
Example:
Find all descriptions of Sarah
Check how I've described the mansion throughout the book
Are my descriptions of Marcus consistent?Important Notes
Close Scrivener first before using this server to avoid conflicts
The server modifies the
.scrivxbinder file and RTF content files directlyAlways keep backups of important projects
Only documents marked "Include in Compile" are included in PDF export
This is an unofficial tool and is not affiliated with Literature & Latte
How It Works
Scrivener projects (.scriv folders) contain:
A
.scrivxXML file that defines the binder structureIndividual RTF files for each document's content
Synopsis and notes stored as plain text and RTF files
This server parses and modifies these files directly, allowing AI assistants to interact with your project programmatically.
Support This Project
If you find this useful, consider supporting development:
License
MIT License - see LICENSE for details.
Changelog
v1.3.2
Added title/author to compile -
compile_manuscriptnow acceptstitleandauthorparameters for cover page and PDF metadata
v1.3.1
Fixed PDF compile formatting - Paragraphs now have proper spacing instead of running together
Added text formatting to PDF - Bold, italic, and bold-italic are now rendered in compiled PDFs
Improved chapter titles - Larger font (18pt), bold, with better spacing
v1.3.0
Added utility tools:
word_count,append_to_document,set_include_in_compile,read_notes,write_notes,batch_readAdded continuity tools:
search_with_context,find_all_mentions,compare_descriptions22 tools total
v1.2.0
Added compile features:
get_compile_order,compile_manuscript(PDF export via pdfkit)Compile supports partial export with
stopAtTitleparameterAdded synopsis tools:
read_synopsis,write_synopsis
v1.1.3
Fixed empty paragraph handling - Empty lines no longer cause extra spacing in compiled output
v1.1.2
Fixed RTF paragraph formatting - Resolved issue where
\par\parpatterns caused section breaks in Scrivener compile
v1.0.1
Fixed DraftFolder detection -
create_documentnow finds the manuscript root by type (DraftFolder) instead of requiring title to be "Draft" or "Manuscript"Fixed empty search query -
search_contentwith empty query now returns empty arrayFixed empty rename validation -
rename_documentrejects empty titles
v1.0.0
Initial release with 11 core tools
Custom RTF parser with formatting preservation
Support for bold, italic, em-dash, en-dash
Credits
Developed by Dave Cilluffo / TwelveTake Studios
Scrivener is a registered trademark of Literature & Latte Ltd.
Available Tools
22 toolsappend_to_documentA
Append content to the end of an existing document without replacing existing content
Inputs: documentId (required), content (required), separator.
batch_readA
Read multiple documents at once. More efficient than multiple read_document calls.
Inputs: documentIds (required).
compare_descriptionsC
Find all descriptive sentences for a term (sentences with 'was', 'had', 'looked', etc.). Helps identify inconsistent descriptions.
Inputs: term (required).
compile_manuscriptB
Compile the manuscript to a PDF file. Only includes documents marked 'Include in Compile'.
Inputs: outputPath (required), title, author, stopAtTitle, +3 more.
create_documentC
Create a new document or folder in the project
Inputs: title (required), parentId, documentType, content.
delete_documentC
Move a document to trash
Inputs: documentId (required).
find_all_mentionsB
Find all sentences mentioning a term across the manuscript. Useful for checking character/place consistency.
Inputs: term (required).
get_compile_orderB
Get the list of documents in compile order from the Draft/Manuscript folder. Useful for seeing what will be included in a compile.
Inputs: stopAtTitle.
get_structureC
Get the hierarchical structure of the project binder
Inputs: folderId, maxDepth.
move_documentC
Move a document to a different folder
Inputs: documentId (required), targetFolderId (required), position.
open_projectC
Open a Scrivener project (.scriv folder)
Inputs: path (required).
read_documentB
Read the content of a document. Optionally includes synopsis (index card text).
Inputs: documentId (required), includeSynopsis.
read_notesC
Read the notes (inspector notes) for a document
Inputs: documentId (required).
read_synopsisC
Read the synopsis (index card text) of a document
Inputs: documentId (required).
rename_documentC
Rename a document
Inputs: documentId (required), newTitle (required).
search_contentC
Search for content across all documents
Inputs: query (required).
search_with_contextC
Search for a term and return matches with surrounding paragraphs for context
Inputs: query (required), contextParagraphs.
set_include_in_compileC
Set whether a document should be included in compile
Inputs: documentId (required), include (required).
word_countC
Get word count for a specific document or the entire manuscript
Inputs: documentId.
write_documentC
Write content to an existing document
Inputs: documentId (required), content (required).
write_notesC
Write or update the notes (inspector notes) for a document
Inputs: documentId (required), notes (required).
write_synopsisC
Write or update the synopsis (index card text) of a document
Inputs: documentId (required), synopsis (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool has a clearly distinct purpose with no significant overlap. For example, read_document, read_synopsis, and read_notes target different document attributes, while search_content and find_all_mentions serve distinct search functions. The descriptions effectively differentiate tools, preventing misselection.
Tool names follow a consistent verb_noun pattern throughout, such as create_document, delete_document, and move_document. All names use snake_case, and verbs like read, write, search, and get are applied predictably across related tools, making the set highly readable and uniform.
With 22 tools, the count is slightly high but reasonable for a comprehensive writing assistant server covering document management, search, compilation, and metadata operations. It avoids bloat by ensuring each tool serves a specific function, though it borders on the heavy side for typical MCP servers.
The tool set provides complete CRUD/lifecycle coverage for Scrivener projects, including create, read, update, delete, move, rename, compile, and search operations. It also handles specialized writing tasks like synopsis and notes management, with no obvious gaps that would hinder agent workflows in this domain.
Related MCP Connectors
Convert, create and edit Word, PowerPoint, Excel and PDF documents from any AI agent.
File tools for your AI chat: PDF tables to Excel, merge PDFs, images to PDF, fill PDF forms.
Search arXiv/Semantic Scholar/OpenAlex + medical evidence (PubMed/Europe PMC) + LaTeX/PDF tools.
Write, compile and share Typst documents (papers, slides, drawings) from any AI agent.