Back to Home
bobmatnyc icon

md-book

by bobmatnyc

Overview

Manages markdown books (read, write, structure) and exposes these operations as tools for AI assistants, enabling AI-driven book content generation and analysis.

Installation

Run Command
mdbook serve-mcp

Security Notes

The MCP server and underlying services accept file system paths (e.g., `path` argument) directly from tool calls without explicit validation or sandboxing to restrict operations to a specific book's root directory. This creates a path traversal vulnerability where a malicious AI agent could potentially read, write, or modify arbitrary files on the host system that the `mdbook` process has permissions for. For example, by providing paths like `../../../etc/passwd` or `../../../.ssh/id_rsa`, an AI could exfiltrate sensitive system files or inject malicious content. The `release.py` script also uses `subprocess.run` with `shell=True`, which is generally discouraged, though this is for internal build processes, not core application functionality.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2026-01-19

Tags

MarkdownBook ManagementAI ToolsCLIDependency Injection