mdx-mcp-server
by LLMTooling
Overview
Enables LLMs to process and analyze MDX files within a defined workspace, offering tools for reading, searching, converting, and extracting metadata.
Installation
node dist/index.jsEnvironment Variables
- WORKSPACE_ROOT
Security Notes
The server implements strong path safety (`PathResolver`) to prevent directory traversal attacks, confining all file operations (`read_mdx`, `search_mdx`, `convert_mdx_to_md`, `get_mdx_frontmatter`) to a designated `WORKSPACE_ROOT`. The `convert_mdx_to_md` tool also prevents overwriting existing files. However, a critical risk exists due to the use of `mdx-bundler` and React's `renderToString` for processing MDX content. If untrusted or malicious MDX files are processed, embedded JavaScript/JSX code within them will be executed in the server's Node.js environment, potentially leading to code execution vulnerabilities.
Similar Servers
mcp-omnisearch
Provides a unified interface for various search, AI response, content processing, and enhancement tools via Model Context Protocol (MCP).
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
tenets
Provides intelligent, token-optimized code context and automatically injects guiding principles to AI coding assistants for enhanced understanding and consistent interactions.
lyra-tool-discovery
This MCP server is designed to fetch, parse, and organize documentation from websites implementing the llms.txt standard. It transforms raw documentation into structured, agent-ready formats, exposing tools for AI agents, LLMs, and automation workflows to consume documentation programmatically.