About
MCP Server To Markdown is a file conversion service that transforms documents, images, web pages, and spreadsheets into structured Markdown descriptions using Cloudflare AI. Key capabilities: - Converts PDFs, images (JPEG, PNG, WebP, SVG), HTML, XML, CSV, and spreadsheet files (Excel, Numbers, ODS, XLSX, XLS) into Markdown format - Leverages Cloudflare's native tomarkdown API for AI-powered document understanding and content extraction - Extracts readable, structured text from various file types for use in LLM context windows - Supports batch processing of multiple file paths in a single operation
README
MCP Server To Markdown
[](https://twitter.com/FradSer) [](https://smithery.ai/server/@FradSer/mcp-server-to-markdown)
English | 简体中文
A powerful Model Context Protocol (MCP) server that leverages Cloudflare AI services to convert various file formats into Markdown descriptions. This server provides a standardized interface for seamless file conversion and description generation.
Key Features
Supported File Formats
| Category | File Extensions | |----------|----------------| | Documents | .pdf | | Images | .jpeg, .jpg, .png, .webp, .svg | | Web Content | .html | | Data | .xml, .csv | | Spreadsheets | .xlsx, .xlsm, .xlsb, .xls, .et, .ods, .numbers |
System Requirements
Installation
Installing via Smithery
To install Markdown转换服务器 for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @FradSer/mcp-server-to-markdown --client claude
Manual Installation
Install globally using npm:npm install -g mcp-server-to-markdown
MCP Client Configuration
Cursor Integration
1. Navigate to Cursor settings 2. Select "MCP" from the sidebar 3. Choose "Add new global MCP server" 4. Apply the following configuration:
{
"mcpServers": {
"to-markdown": {
"command": "mcp-server-to-markdown",
"args": [
"CLOUDFLARE_API_TOKEN": "your_api_token"
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
]
}
}
}
Claude Desktop Setup
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"to-markdown": {
"command": "mcp-server-to-markdown",
"args": [
"CLOUDFLARE_API_TOKEN": "your_api_token"
"CLOUDFLARE_ACCOUNT_ID": "your_account_id"
]
}
}
}
ChatWise Configuration
1. Launch ChatWise
2. Access Settings
3. Select Tools section
4. Click "+" to add new tool
5. Configure with these parameters:
- Type: stdio
- ID: to-markdown
- Command: mcp-server-to-markdown
- Args:
CLOUDFLARE_API_TOKEN=your_api_token
CLOUDFLARE_ACCOUNT_ID=your_account_id
API Reference
to-markdown Tool
Converts various file formats to Markdown descriptions.
Input Parameters:
filePaths: Array (required) - List of file paths to processResponse Structure:
[
{
"filename": "example.pdf",
"mimeType": "application/pdf",
"description": "Generated Markdown description",
"tokens": 123
}
]
Development Guide
Getting Started
1. Clone and setup environment:
git clone
cd mcp-server-to-markdown
cp .env.example .env
2. Configure Cloudflare credentials:
CLOUDFLARE_API_TOKEN=your_api_token
CLOUDFLARE_ACCOUNT_ID=your_account_id
3. Install dependencies and build:
npm install
npm run build
Project Structure
.
├── src/ # Source code
├── dist/ # Compiled output
├── types.ts # Type definitions
└── .env # Environment configuration
Available Scripts
npm run build - Build TypeScript codenpm run inspect - Run with MCP inspectorUsage Example
const result = await toMarkdown({
filePaths: [
"/path/to/document.pdf",
"/path/to/image.jpg"
]
});
License
MIT License
This project is maintained by Frad LEE
Related MCP Servers
AI Research Assistant
hamid-vakilzadeh
AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar
Linkup
LinkupPlatform
Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages
Math-MCP
EthanHenrickson
Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support