markdown-editor-mcp-server
Verified Safeby Kcao3034
Overview
The MCP server enables programmatic, structural, and semantic editing of Markdown documents, including file system operations and YAML frontmatter management, primarily for use by AI agents.
Installation
python -m markdown_editor.serverEnvironment Variables
- DOCUMENT_TOOL_LLM_PROVIDER
- DOCUMENT_TOOL_LLM_MODEL
- DOCUMENT_TOOL_LLM_BASE_URL
- DOCUMENT_TOOL_LLM_TIMEOUT
- DOCUMENT_TOOL_LLM_TEMPERATURE
- DOCUMENT_TOOL_LLM_MAX_TOKENS
- DOCUMENT_TOOL_LLM_API_KEY
- DOCUMENT_TOOL_DOCUMENT_JOURNAL_ENABLED
- DOCUMENT_TOOL_DOCUMENT_JOURNAL_PERSIST
- DOCUMENT_TOOL_DOCUMENT_JOURNAL_STORAGE
- DOCUMENT_TOOL_DOCUMENT_JOURNAL_PATH
- DOCUMENT_TOOL_DOCUMENT_JOURNAL_MAX_ENTRIES
- DOCUMENT_TOOL_DOCUMENT_PARSER
- DOCUMENT_TOOL_DOCUMENT_STRICT_VALIDATION
- DOCUMENT_TOOL_DOCUMENT_PRESERVE_FORMATTING
- DOCUMENT_TOOL_DOCUMENT_TRANSACTIONS_ENABLED
- DOCUMENT_TOOL_DOCUMENT_AUTO_ROLLBACK_ON_ERROR
- DOCUMENT_TOOL_AGENT_MAX_ITERATIONS
- DOCUMENT_TOOL_AGENT_PROMPTS_PATH
- DOCUMENT_TOOL_AGENT_LOG_OPERATIONS
- DOCUMENT_TOOL_AGENT_LOG_LEVEL
Security Notes
The codebase demonstrates good security practices for file system operations, particularly with the `PathResolver`'s `is_safe_path` function to prevent directory traversal attacks. File writes use an atomic temporary file approach. No 'eval' or obvious malicious patterns were found. Network connections for LLM are outbound and configurable.
Similar Servers
mcp-obsidian
Provides a secure, universal AI bridge for Obsidian vaults, enabling MCP-compatible AI assistants to read, write, and manage notes.
ai-skills-hub
Provides AI assistants with access to a team's coding standards, best practices, and knowledge base by dynamically loading Markdown skill files via an MCP server.
AI-Prompt-Guide-MCP
Orchestrates AI agents for project management and development workflows by linking structured markdown specifications and tasks.
md-server
Converts various documents, webpages, and media files into markdown format, serving as an HTTP API or an MCP server for AI assistants to read and process content.