Doc MCP Server

Doc MCP Server

Enables AI agents to generate PDFs from Markdown or URLs, extract text, merge documents, and perform text conversions via the Model Context Protocol.

Category
Visit Server

README

Doc MCP Server šŸ“„

Python License Stars MCP GitHub

A Model Context Protocol (MCP) server for document processing — PDF generation with Markdown rendering, text extraction, merging, and web-to-PDF conversion.

Built for AI agents. Works with Hermes Agent, Claude Code, Cursor, and any MCP-compatible client.

✨ Features

Tool Description
markdown_to_pdf Render Markdown → PDF with headings, lists, code blocks, HR
generate_pdf Simple plain text → PDF with custom font size
url_to_pdf Fetch a URL via Jina Reader and save as PDF
extract_pdf_text Extract text from any PDF (file, URL, or base64)
pdf_metadata Read PDF metadata (title, author, pages, size)
merge_pdfs Merge multiple PDFs into a single document
convert_text Text format conversion & cleanup (case, whitespace)
count_words Word, character, line, paragraph & reading time stats

šŸš€ Quick Start

Install

# From PyPI (coming soon)
pip install doc-mcp-server

# Or directly from GitHub
pip install git+https://github.com/ceeyang-ai/doc-mcp-server.git

Run

# Start as MCP server (stdio mode)
doc-mcp-server

šŸ”Œ Usage with AI Agents

Hermes Agent

Add to ~/.hermes/config.yaml:

mcp_servers:
  doc:
    command: "doc-mcp-server"

Restart → use mcp_doc_markdown_to_pdf, mcp_doc_extract_pdf_text, etc.

Claude Code / Cursor / Any MCP Client

Add to your MCP config:

{
  "mcpServers": {
    "doc": {
      "command": "doc-mcp-server"
    }
  }
}

šŸ“– Examples

Markdown → PDF

# Via MCP tool call
result = markdown_to_pdf(
    markdown="# My Report\n\n- Item 1\n- Item 2\n\n```python\nprint('hello')\n```",
    title="Report",
    filename="report.pdf"
)

Merge PDFs

result = merge_pdfs(
    sources=[
        "https://example.com/doc1.pdf",
        "/path/to/local/file.pdf",
    ]
)

URL → PDF

result = url_to_pdf(
    url="https://en.wikipedia.org/wiki/Markdown",
    filename="wiki-md.pdf"
)

šŸ›  Requirements

  • Python 3.10+
  • fpdf2 ≄ 2.8
  • PyMuPDF ≄ 1.24
  • mcp ≄ 1.0

šŸ“¦ Project Structure

doc-mcp-server/
ā”œā”€ā”€ doc_mcp_server/
│   └── __init__.py       # All tools + MarkdownPDF engine
ā”œā”€ā”€ pyproject.toml         # Build config (setuptools)
ā”œā”€ā”€ README.md
└── LICENSE (MIT)

šŸ‘Øā€šŸ’» Development

git clone https://github.com/ceeyang-ai/doc-mcp-server.git
cd doc-mcp-server
pip install -e .
python3 -c "from doc_mcp_server import markdown_to_pdf; print(markdown_to_pdf('# Hello', 'Test'))"

šŸ“„ License

MIT — free for personal and commercial use.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured