Back to Home
LLMTooling icon

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

Run Command
node dist/index.js

Environment 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

Stats

Interest Score0
Security Score6
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-09

Tags

MDXLLM ToolFile ProcessingMarkdown ConversionModel Context Protocol