Back to Home
Kcao3034 icon

markdown-editor-mcp-server

Verified Safe

by 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

Run Command
python -m markdown_editor.server

Environment 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

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

markdowneditormcpaidocument-editing