
Quantalogic Markdown Editor
Provides safe editing of Markdown documents through section-based operations like inserting, updating, and moving content. Includes validation, transaction safety, and rollback capabilities to maintain document integrity.
Provides safe, structured editing capabilities for Markdown documents through section-based operations like inserting, updating, deleting, and moving content while maintaining document integrity with validation and rollback support.
What it does
- Load and analyze Markdown documents from file paths
- Insert sections at specific positions
- Update existing section content
- Delete sections by ID or heading
- Move sections to reorder document structure
- Validate document structure with configurable strictness
Best for
About Quantalogic Markdown Editor
Quantalogic Markdown Editor is a community-built MCP server published by quantalogic that provides AI assistants with tools and capabilities via the Model Context Protocol. Quantalogic Markdown Editor offers safe, structured editing for markdown files with powerful section-based features and It is categorized under productivity. This server exposes 10 tools that AI clients can invoke during conversations and coding sessions.
How to install
You can install Quantalogic Markdown Editor in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
Quantalogic Markdown Editor is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
Tools (10)
Load and analyze a Markdown document from a file path. Args: document_path: Path to the Markdown file (supports absolute, relative, and ~ expansion) validation_level: Validation strictness - "STRICT", "NORMAL", or "PERMISSIVE"
Insert a new section at a specified location. The document will be saved after the operation if successful and auto_save is True.
Delete a section by ID or heading. The document will be saved after the operation if successful and auto_save is True.
Update the content of an existing section. The document will be saved after the operation if successful and auto_save is True.
Get a specific section by ID. Args: document_path: Path to the Markdown file section_id: The section ID to retrieve validation_level: Validation strictness - "STRICT", "NORMAL", or "PERMISSIVE"
SafeMarkdownEditor MCP Server
A Model Context Protocol (MCP) server that provides powerful Markdown document editing capabilities with thread-safe operations, atomic transactions, and comprehensive validation.
📦 Available on PyPI: quantalogic-markdown-mcp
🚀 Quick Start: Install with uv add quantalogic-markdown-mcp or pip install quantalogic-markdown-mcp
Current version: 0.1.2
Features
✨ Comprehensive Markdown Editing
- Insert, update, delete, and move sections
- Thread-safe operations with atomic transactions
- Immutable section references that remain stable across edits
- Comprehensive validation with configurable strictness levels
🔧 MCP Tools Available
File Operations:
load_document- Load a Markdown document from a file path (supports absolute, relative, and ~ expansion)save_document- Save the current document to a file pathget_file_info- Get information about the currently loaded filetest_path_resolution- Test and verify path resolution for different path formats
Document Editing:
insert_section- Insert new sections at specified positionsdelete_section- Remove sections by ID or headingupdate_section- Modify section content while preserving structuremove_section- Reorder sections within the documentget_section- Retrieve individual section content and metadatalist_sections- Get an overview of all document sectionsget_document- Export the complete Markdown documentundo- Rollback the last operation
📊 MCP Resources
document://current- Real-time access to the current documentdocument://history- Transaction history for undo/redo operationsdocument://metadata- Document metadata (title, author, timestamps)
🎯 MCP Prompts
summarize_section- Generate section summariesrewrite_section- Improve section clarity and concisenessgenerate_outline- Create document outlines
Installation
Prerequisites
- Python 3.11 or higher
- uv (recommended) or pip
Quick Install from PyPI (Recommended)
The package is available on PyPI! Install the latest version (0.1.2) directly:
# Install with uv (recommended)
uv add [email protected]
# Or install with pip
pip install quantalogic-markdown-mcp==0.1.2
Run Directly with uvx (No Installation Required)
You can run the MCP server directly without installing it locally:
# Run directly with uvx
uvx --from quantalogic-markdown-mcp python -m quantalogic_markdown_mcp.mcp_server
Development Installation
For development or to contribute to the project:
# Clone the repository
git clone https://github.com/raphaelmansuy/quantalogic-markdown-edit-mcp.git
cd quantalogic-markdown-edit-mcp
# Install with development dependencies
uv sync --group dev
# Install in development mode
uv pip install -e .
Quick Start
Running the Server
Method 1: Direct Execution (PyPI Installation)
If you installed from PyPI:
# Run the MCP server directly (ensure version 0.1.2 is installed)
python -m quantalogic_markdown_mcp.mcp_server
# Or with uvx (no installation required)
uvx --from quantalogic-markdown-mcp python -m quantalogic_markdown_mcp.mcp_server
Method 2: Development Installation
If you cloned the repository:
# Using uv
uv run python -m quantalogic_markdown_mcp.mcp_server
# Or with regular Python
python -m quantalogic_markdown_mcp.mcp_server
Method 3: Using the Development Script
For development from source:
# Run the development server (dev mode)
python dev-scripts/run_mcp_server.py
Connecting to Claude Desktop
To use this MCP server with Claude Desktop, add the following configuration to your claude_desktop_config.json:
Option 1: Using PyPI Installation (Recommended)
macOS/Linux:
{
"mcpServers": {
"markdown-editor": {
"command": "python",
"args": [
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Windows:
{
"mcpServers": {
"markdown-editor": {
"command": "python.exe",
"args": [
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Option 2: Using uvx (No Installation Required)
macOS/Linux:
{
"mcpServers": {
"markdown-editor": {
"command": "uvx",
"args": [
"--from",
"quantalogic-markdown-mcp",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Windows:
{
"mcpServers": {
"markdown-editor": {
"command": "uvx.exe",
"args": [
"--from",
"quantalogic-markdown-mcp",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Option 3: Development Installation
For development from source:
macOS/Linux:
{
"mcpServers": {
"markdown-editor": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/quantalogic-markdown-edit-mcp",
"run",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Windows:
{
"mcpServers": {
"markdown-editor": {
"command": "uv.exe",
"args": [
"--directory",
"C:\\ABSOLUTE\\PATH\\TO\\quantalogic-markdown-edit-mcp",
"run",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
After adding the configuration, restart Claude Desktop.
Connecting to VSCode
To use this MCP server with VSCode and GitHub Copilot, you have several configuration options depending on your needs.
Prerequisites:
- VSCode 1.102 or later
- GitHub Copilot extension installed and configured
- MCP support enabled in your organization (if applicable)
Workspace Configuration (Recommended for Projects)
Create a .vscode/mcp.json file in your workspace root to share the configuration with your team:
Option 1: Development Installation (Recommended)
For this project, use the development setup since you're working with the source code:
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"${workspaceFolder}",
"run",
"python",
"-c",
"import sys; sys.path.insert(0, 'src'); from quantalogic_markdown_mcp.mcp_server import mcp; mcp.run()"
],
"cwd": "${workspaceFolder}"
}
}
}
Option 2: Alternative Development Approach
Using environment variables for Python path:
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"${workspaceFolder}",
"run",
"--",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
],
"cwd": "${workspaceFolder}",
"env": {
"PYTHONPATH": "${workspaceFolder}/src"
}
}
}
}
Option 3: Using PyPI Installation (If Installed Globally)
Only use this if you have installed the package globally:
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "python3",
"args": [
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
For Windows (adjust command names):
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "python.exe",
"args": [
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
User Configuration (Global Settings)
For system-wide access across all workspaces:
- Open Command Palette (
Ctrl+Shift+P/Cmd+Shift+P) - Run
MCP: Open User Configuration - Add the server configuration:
Option 1: Using PyPI Installation
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "python",
"args": [
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Option 2: Using uvx
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"quantalogic-markdown-mcp",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Option 3: Development Installation
{
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/quantalogic-markdown-edit-mcp",
"run",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
Development Container Support
For containerized development environments, add to your devcontainer.json:
{
"image": "mcr.microsoft.com/devcontainers/python:latest",
"customizations": {
"vscode": {
"mcp": {
"servers": {
"markdown-editor": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"${containerWorkspaceFolder}",
"run",
"python",
"-m",
"quantalogic_markdown_mcp.mcp_server"
]
}
}
}
}
}
}
Alternative Installation Methods
Command Line Installation:
code --add-mcp '{"name":"markdown-editor","command":"uv","args":["--directory","/ABSOLUTE/PATH/TO/quantalogic-markdown-edit-mcp","run","python","-m","quantalogic_markdown_mcp.mcp_server"]}'
URL Installation: You can create installation links using the VSCode
README truncated. View full README on GitHub.
Alternatives
Related Skills
Browse all skillsPublish Markdown articles to X (Twitter) Articles editor with proper formatting. Use when user wants to publish a Markdown file/URL to X Articles, or mentions "publish to X", "post article to Twitter", "X article", or wants help with X Premium article publishing. Handles cover image upload and converts Markdown to rich text automatically.
Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions "load the whole PDF", "bring the PDF into context", "read the entire PDF", or when partial extraction/grepping would miss important context. This is the preferred method for PDF text extraction over page-by-page or grep approaches.
Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).
Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.
Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing. Use when converting documents to markdown, extracting text from PDFs/Office files, transcribing audio, performing OCR on images, extracting YouTube transcripts, or processing batches of files. Supports 20+ formats including DOCX, XLSX, PPTX, PDF, HTML, EPUB, CSV, JSON, images with OCR, and audio with transcription.
Syncs daily health and fitness data from Garmin Connect into markdown files. Provides sleep, activity, heart rate, stress, body battery, HRV, SpO2, and weight data.