Claude Writer's Aid MCP
Links git commits to conversations based on timestamps and file changes, enabling tracking of code evolution and commit history alongside conversation context.
Supports using Ollama for generating embeddings with models like mxbai-embed-large for semantic search capabilities across conversation history.
Uses SQLite as the storage backend for indexing conversations, tracking file history, decisions, mistakes, and managing conversation memory data.
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., "@Claude Writer's Aid MCP check my manuscript for broken links and terminology consistency"
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.
Claude Writer's Aid MCP
A Model Context Protocol (MCP) server designed specifically for writers and authors working with markdown manuscripts. Provides intelligent analysis, quality checks, and writing assistance tools integrated into Claude Code.
π‘ What It Does
Manuscript Indexing - Automatically index and track all markdown files in your writing project
Semantic Search - Find content across your manuscript using natural language queries
Quality Analysis - Check for terminology consistency, readability, duplicates, and structure issues
Link Management - Validate internal links, find broken references, and suggest cross-references
Progress Tracking - Monitor word counts, track changes, and generate progress reports
Theme Extraction - Discover and analyze recurring themes across your content
TODO Management - Extract and track all TODO, FIXME, and DRAFT markers
Writing Statistics - Comprehensive metrics and analytics for your writing project
Related MCP server: Content Manager MCP Server
β οΈ Important: Claude Code CLI Only
This MCP server works ONLY with Claude Code CLI.
It does NOT work with:
β Claude Desktop
β Claude Web
β Other Claude integrations
Writer's Aid MCP stores manuscript data in .writers-aid/manuscript.db within your project folder, keeping all writing data organized alongside your manuscript files.
π¦ Installation
Prerequisites
Required:
Claude Code CLI: https://github.com/anthropics/claude-code
Node.js: Version 18 or higher
Quick Install (Recommended)
Install globally from npm:
# Install the package globally
npm install -g claude-writers-aid-mcp
# Auto-configure for Claude Code CLI
writers-aid init-mcpThat's it! The init-mcp command automatically:
Detects your installation paths
Configures
~/.claude.jsonwith the correct settingsProvides next steps for verification
Alternative: Development Install
For local development/use from this repository:
# Clone the repository
git clone https://github.com/xiaolai/claude-writers-aid-mcp.git
cd claude-writers-aid-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Configure MCP server
npm run init-mcpManual Configuration (Advanced)
If you prefer manual setup, add to your ~/.claude.json (NOT ~/.claude/config.json):
{
"mcpServers": {
"writers-aid": {
"type": "stdio",
"command": "node",
"args": [
"/path/to/claude-writers-aid-mcp/dist/index.js"
]
}
}
}Replace /path/to/ with the actual path where you installed the package.
Verify Installation
Check your MCP configuration:
writers-aid mcp-statusRestart Claude Code CLI and test with:
"Index my manuscript files"
"Check my manuscript for quality issues"
"Show writing statistics"If the MCP tools are working, you'll see analysis results and statistics!
MCP Configuration Commands
The package includes commands to manage your Claude Code MCP configuration:
# Check MCP configuration status
writers-aid mcp-status
# Configure or update MCP server
writers-aid init-mcp
# Remove MCP configuration
writers-aid remove-mcpImportant: Restarting After Updates
When you upgrade to a new version, you MUST restart Claude Code CLI to reload the MCP server:
Exit Claude Code CLI completely
Start it again
The new version will be loaded
Why? Claude Code caches MCP servers. Without restarting, it will continue using the old cached version even after you've upgraded the npm package globally.
Quick check: After restart, you can verify the version with:
claude-conversation-memory-mcp --versionπ₯οΈ Standalone CLI / REPL Mode
Beyond the MCP server, this package includes a powerful standalone CLI for managing your conversation memory directly from the terminal.
Three Modes of Operation
1. Interactive REPL Mode (Default)
claude-conversation-memory-mcp
# Starts interactive shell with 40+ commands2. Single Command Mode
claude-conversation-memory-mcp status
claude-conversation-memory-mcp "search authentication"
claude-conversation-memory-mcp mistakes --limit 53. MCP Server Mode (Used by Claude Code CLI)
claude-conversation-memory-mcp --server
# Or automatically via stdio from Claude Code CLIQuick CLI Examples
# View database status
claude-conversation-memory-mcp status
# Index conversations
claude-conversation-memory-mcp index --include-mcp
# Search for topics
claude-conversation-memory-mcp "search database migration" --limit 3
# Find past mistakes
claude-conversation-memory-mcp mistakes "async" --type logic_error
# Check file context before editing
claude-conversation-memory-mcp check src/auth.ts
# Configure embedding model
claude-conversation-memory-mcp config
claude-conversation-memory-mcp set model mxbai-embed-large
claude-conversation-memory-mcp set dimensions 1024
# View help
claude-conversation-memory-mcp help
claude-conversation-memory-mcp "help search"Configuration Management
The CLI includes built-in commands for managing embedding models and dimensions:
# View current configuration
claude-conversation-memory-mcp config
# Switch to Ollama with mxbai-embed-large (1024 dimensions)
claude-conversation-memory-mcp set provider ollama
claude-conversation-memory-mcp set model mxbai-embed-large
claude-conversation-memory-mcp set dimensions 1024
# Switch to Transformers.js (offline, no setup)
claude-conversation-memory-mcp set provider transformers
claude-conversation-memory-mcp set model Xenova/all-MiniLM-L6-v2
claude-conversation-memory-mcp set dimensions 384
# Get specific config value
claude-conversation-memory-mcp get providerAvailable Commands
π₯ Indexing:
index,reindexπ Search:
search,decisions,mistakes,similarπ Files:
check,historyπ Git:
commitsπ Other:
requirements,tools,docsβΉοΈ Info:
status,version,helpβοΈ Config:
config,get,setπ§Ή Maintenance:
vacuum,reset
π See Complete CLI Guide for all commands, examples, and workflows
π― Usage Examples
First Time Setup
You: "Index my conversation history for this project"
Claude: I'll index all conversations for this project...
β Indexed 5 conversations with 2,341 messages
β Semantic search enabled (embeddings generated)Search Past Conversations
You: "What did we discuss about the authentication system?"
Claude: Let me search our conversation history...
[Returns relevant messages with context and timestamps]Before Modifying Files
You: "Before I change database.ts, what should I know?"
Claude: Let me check the context for database.ts...
[Shows recent changes, related decisions, and past mistakes]Track Decisions
You: "Why did we choose SQLite over PostgreSQL?"
Claude: Let me check our decision history...
[Returns the decision with rationale and alternatives considered]Learn from Mistakes
You: "Have we had issues with async/await before?"
Claude: Let me search past mistakes...
[Shows previous errors and how they were fixed]Find Related Work
You: "Have we worked on similar API endpoints before?"
Claude: Let me find similar sessions...
[Returns past conversations about similar work]View File History
You: "Show me how auth.ts evolved over time"
Claude: Let me trace the file evolution...
[Shows complete timeline with conversations, commits, and decisions]Recall and Apply Context
You: "Recall how we implemented authentication, now add OAuth support using that same pattern"
Claude: Let me recall the authentication implementation context...
[Returns relevant conversations, decisions, mistakes, file changes, and commits]
[Provides suggestions for applying this context to OAuth implementation]More examples:
"Remember the bug we fixed in parser.ts, check if similar issue exists in lexer.ts"
"Recall all decisions about database schema, now design the migration strategy"
"Find mistakes we made with async/await, avoid them in this new async function"
π§ Advanced Usage
Index Specific Session
You: "Index conversation from session a1172af3-ca62-41be-9b90-701cef39daae"Exclude MCP Conversations
By default, conversations about the MCP itself are excluded to prevent self-referential loops. To include them:
You: "Index all conversations, including MCP conversations"Indexing Options
When indexing conversations, several options control what gets stored:
Include Thinking Blocks
Default: false (thinking blocks are excluded)
Thinking blocks contain Claude's internal reasoning process. They can be very large (3-5x more data) and are usually not needed for search.
# Default behavior (recommended)
You: "Index conversations"
# Thinking blocks are excluded
# Include thinking blocks (increases database size significantly)
You: "Index conversations with thinking blocks"When to enable:
β You want to search Claude's reasoning process
β You're analyzing decision-making patterns
β Don't enable if you just want to search visible conversation content
Exclude MCP Conversations
Default: "self-only" (excludes only conversation-memory MCP calls)
Controls which MCP tool interactions are indexed:
"self-only"(default): Excludes messages about this conversation-memory MCP to prevent self-referential loopsfalse: Index all MCP tool calls from all servers"all-mcp"ortrue: Exclude all MCP tool calls from all servers["server1", "server2"]: Exclude specific MCP servers
# Default - exclude only conversation-memory MCP
You: "Index conversations"
# Include all MCP conversations (including this one)
You: "Index conversations, include all MCP tools"
# Exclude all MCP tool calls
You: "Index conversations, exclude all MCP interactions"What gets filtered: Only the specific messages that invoke MCP tools are excluded, not entire conversations. This preserves conversation context while preventing self-referential loops.
Enable Git Integration
Default: true (git commits are linked)
Links git commits to conversations based on timestamps and file changes.
# Default behavior
You: "Index conversations"
# Git commits are automatically linked
# Disable git integration
You: "Index conversations without git integration"Index Output
After indexing, you'll see:
π Indexed from: /path/to/modern-folder, /path/to/legacy-folder
πΎ Database: /path/to/.claude-conversations-memory.dbThis shows:
Indexed folders: Which conversation folders were used (including legacy if it exists)
Database location: Where your indexed data is stored
Search with Date Filters
You: "What were we working on last week?"Generate Documentation
You: "Generate project documentation from our conversations"Claude will create comprehensive docs combining code analysis with conversation history.
Migrate Conversation History
When you rename or move a project directory, your conversation history becomes inaccessible because Claude Code creates a new folder for the new path. Use the migration tools to recover your history:
Step 1: Discover old conversation folders
You: "Discover old conversations for this project"Claude will scan ~/.claude/projects/ and show you folders that match your current project, ranked by similarity score. The output includes:
Folder name and path
Original project path stored in the database
Number of conversations and files
Last activity timestamp
Similarity score (higher = better match)
Step 2: Migrate the history
You: "Migrate conversations from /Users/name/.claude/projects/-old-project-name, old path was /Users/name/old-project, new path is /Users/name/new-project"Claude will:
Copy all conversation JSONL files to the new location
Update the
project_pathin the databaseCreate automatic backups (
.claude-conversations-memory.db.bak)Preserve all original data (copy, not move)
Example workflow:
# You renamed your project directory
# Old: /Users/alice/code/my-app
# New: /Users/alice/code/my-awesome-app
You: "Discover old conversations for this project"
Claude: Found 1 potential old conversation folder:
- Folder: -Users-alice-code-my-app
- Original path: /Users/alice/code/my-app
- Conversations: 15
- Files: 47
- Score: 95.3
You: "Migrate from /Users/alice/.claude/projects/-Users-alice-code-my-app, old path /Users/alice/code/my-app, new path /Users/alice/code/my-awesome-app"
Claude: Successfully migrated 47 conversation files.
Now you can index and search your full history!Dry run mode:
Test the migration without making changes:
You: "Dry run: migrate from [source] old path [old] new path [new]"This shows what would be migrated without actually copying files.
Merge Conversations from Different Projects
NEW in v0.4.0: Combine conversation history from different projects into one folder using merge mode.
Use case: You want to merge conversations from /project-a/drafts/2025-01-05 into your current project /project-b.
Step 1: Discover the source folder
You: "Discover old conversations for project path /Users/name/project-a/drafts/2025-01-05"Step 2: Merge into current project
You: "Merge conversations from /Users/name/.claude/projects/-project-a-drafts-2025-01-05, old path /Users/name/project-a/drafts/2025-01-05, new path /Users/name/project-b, mode merge"Claude will:
Copy only new conversation files (skip duplicates)
Keep target conversations when IDs collide (no data loss)
Merge all database entries using INSERT OR IGNORE
Create backup of target database before merge
Preserve all original source data
Example workflow:
# Scenario: You have conversations from different projects to combine
Current project: /Users/alice/main-project (already has 20 conversations)
Source project: /Users/alice/drafts/experiment (has 10 conversations, 3 overlap with main)
You: "Discover old conversations for /Users/alice/drafts/experiment"
Claude: Found 1 folder:
- Folder: -Users-alice-drafts-experiment
- Original path: /Users/alice/drafts/experiment
- Conversations: 10
- Files: 10
You: "Merge from /Users/alice/.claude/projects/-Users-alice-drafts-experiment, old path /Users/alice/drafts/experiment, new path /Users/alice/main-project, mode merge"
Claude: Successfully merged 7 new conversation files into /Users/alice/.claude/projects/-Users-alice-main-project
(3 duplicate conversations were skipped to preserve target data)
Backup created at: .claude-conversations-memory.db.bak
# Result: main-project now has 27 conversations (20 original + 7 new from experiment)Key differences between migrate and merge:
Feature | Migrate Mode (default) | Merge Mode |
Target has data | β Rejected (conflict) | β Allowed |
Duplicate IDs | Overwrites target | Skips source (keeps target) |
Use case | Renamed project | Combine different projects |
Backup location | Source folder | Target folder |
π Learn More
Tool Examples - 50+ natural language examples for each tool
Quick Reference - Common phrases cheat sheet
Embeddings FAQ - How semantic search works
π Troubleshooting
"No conversations found"
Make sure you're running this in a directory where you've had Claude Code CLI conversations. Check ~/.claude/projects/ to verify conversation files exist.
"Embeddings failed"
The MCP falls back to full-text search if embeddings fail. Everything still works, just without semantic search.
"MCP not responding"
Restart Claude Code CLI to reload the MCP server.
π License
MIT License - See LICENSE file for details.
π Acknowledgments
Inspired by code-graph-rag-mcp.
Made with β€οΈ for the Claude Code CLI community
Available Tools
34 toolsadd_style_decisionC
Record a style decision for consistency
Inputs: category (required), canonical_choice (required), project_path, rationale, +1 more.
analyze_link_graphC
Visualize connections between documents
Inputs: project_path, scope, format.
check_before_editB
Check context before editing a file - get warnings about past mistakes, decisions, and requirements to maintain consistency
Inputs: file_path (required), project_path.
check_readabilityC
Analyze readability metrics
Inputs: project_path, file_path, metrics.
check_terminologyC
Find inconsistent term usage
Inputs: project_path, scope, auto_detect, terms, +2 more.
extract_themesC
Cluster content into main themes/topics
Inputs: project_path, scope, num_themes.
find_broken_linksC
Detect broken internal and external links
Inputs: project_path, check_external, scope, limit.
find_concept_contradictionsC
Detect contradictions in concept definitions across versions
Inputs: concept_name (required), project_path.
find_duplicatesC
Find near-duplicate content
Inputs: project_path, scope, similarity_threshold, min_length, +1 more.
find_gapsC
Find terms mentioned but not explained
Inputs: project_path, scope, limit.
find_orphaned_sectionsC
Find sections with no incoming links
Inputs: project_path, scope.
find_todosC
Extract all TODO/FIXME/DRAFT markers
Inputs: project_path, scope, markers, group_by, +1 more.
generate_outlineC
Create hierarchical outline from content
Inputs: project_path, scope, depth, include_word_counts.
generate_progress_reportC
Create progress dashboard
Inputs: project_path, target_word_count, scope, include_todos.
get_file_contextC
Get all context for a file (sessions, decisions, mistakes, commits)
Inputs: file_path (required), project_path.
get_requirementsC
Get all requirements or filter by type
Inputs: project_path, requirement_type, enforced_only.
get_session_contextC
Get detailed context for a specific file or concept from past sessions
Inputs: project_path, file_path, limit.
get_writing_statsC
Overall project statistics
Inputs: project_path, scope, breakdown_by.
holistic_searchC
Unified search across all memory layers (content, decisions, mistakes, concepts, sessions, commits)
Inputs: query (required), project_path, layers, start_date, +3 more.
link_commits_to_sessionsC
Link git commits to writing sessions for context
Inputs: project_path, since, limit.
list_writing_decisionsC
List writing decisions by file, type, or date range
Inputs: project_path, file_path, decision_type, limit.
mark_mistakeC
Record a writing mistake to avoid repeating it
Inputs: file_path (required), mistake_type (required), description (required), project_path, +2 more.
recall_writing_sessionC
Search writing session history by date range or query
Inputs: project_path, start_date, end_date, file_path, +1 more.
search_contentC
Semantic search across all manuscript content
Inputs: query (required), project_path, scope, limit.
search_similar_mistakesC
Search for similar mistakes to avoid repeating them
Inputs: description (required), project_path, limit.
set_requirementC
Store a publisher or style requirement
Inputs: requirement_type (required), description (required), project_path, value, +1 more.
suggest_cross_referencesC
Suggest where to add links between sections
Inputs: project_path, min_similarity, exclude_existing_links.
suggest_reorganizationC
Suggest better content organization
Inputs: project_path, current_structure, optimization.
trace_reference_chainC
Follow concept through linked documents
Inputs: start_file (required), end_file (required), project_path, concept.
track_changesC
Show what changed since timestamp
Inputs: project_path, since, scope, summary_level.
track_concept_evolutionC
Track how a concept's definition evolved over time
Inputs: concept_name (required), project_path.
track_file_evolutionC
Show how a file evolved through git commits with rationale
Inputs: file_path (required), project_path, limit.
validate_structureC
Check heading hierarchy and section balance
Inputs: project_path, file_path, checks.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 34 tools
Most tools have distinct purposes focused on different aspects of writing analysis and project management, such as link analysis (analyze_link_graph), consistency checking (check_terminology), and evolution tracking (track_concept_evolution). However, some tools like 'search_content' and 'holistic_search' could potentially overlap in function, and 'get_file_context' and 'get_session_context' might be confused for similar context retrieval tasks, though their descriptions help differentiate them.
Tool names follow a highly consistent verb_noun pattern throughout, using snake_case uniformly. Examples include 'add_style_decision', 'check_readability', 'find_duplicates', 'generate_outline', and 'track_changes'. This predictability makes it easy for agents to understand and select tools based on their naming conventions.
With 34 tools, the count feels excessive for a writing aid server, leading to potential overwhelm and redundancy. While the domain is broad (covering analysis, tracking, and management), many tools could be consolidated (e.g., multiple search and tracking functions), making the set feel heavy and less scoped than ideal for efficient agent use.
The tool set provides comprehensive coverage for writing and project management, including CRUD-like operations (e.g., 'set_requirement', 'mark_mistake'), analysis (e.g., 'check_readability', 'extract_themes'), tracking (e.g., 'track_changes', 'track_concept_evolution'), and search functionalities. There are no obvious gaps; agents can perform end-to-end workflows from planning to validation without dead ends.
Related MCP Connectors
Check if references exist or were retracted, look up journal AI policies, and preview manuscripts.
Writing studio for novels and screenplays: read your projects and run cited fact-checks.
Personal context for every AI: search, read, and write back to your private Markdown library.
Scan manuscript text for AI-slop prose patterns before publishing to Amazon KDP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with the ability to lint, validate, and auto-fix Markdown files to ensure compliance with established Markdown standards and best practices.6MIT
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive content management through Markdown processing, HTML rendering, intelligent fuzzy search, and document analysis. Supports frontmatter parsing, tag-based filtering, table of contents generation, and directory statistics for efficient content organization and discovery.4MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables intelligent Markdown document analysis including extracting table of contents with hierarchy, detecting numbering issues like duplicates and discontinuities, and generating formatted TOC content in multiple output formats.1Apache 2.0
- AlicenseCqualityNot gradedmaintenanceProvides semantic editing tools for Markdown files, allowing structured manipulation of document elements through hierarchical paths rather than raw text operations. Supports navigation, search, content replacement, element insertion/deletion, undo functionality, and YAML frontmatter management.152MIT