FileToPDF MCP server
Enables conversion of files, HTML, and Markdown to PDF through natural language, using the FileToPDF API.
README
FileToPDF MCP server
A Model Context Protocol server for FileToPDF. It lets any MCP client — Claude Desktop, Cursor, Cline, VS Code, or your own agent — convert files, HTML, and Markdown to PDF through natural language. Bring your own API key (free trial key on the home page).
Tools
| Tool | What it does |
|---|---|
get_account |
Check the API key and show plan + remaining credits. Free, no credits used. |
convert_file |
Convert a file from a public URL (DOCX, XLSX, PPTX, images, HTML, MD, PDF…) to PDF. |
convert_html |
Render a raw HTML string (with optional CSS + layout options) to PDF. |
convert_markdown |
Render a raw Markdown string (with optional CSS + layout options) to PDF. |
Each convert tool returns a metadata summary and the PDF as an embedded
application/pdf resource (base64), so capable clients can save the file. Set the
FILETOPDF_OUTPUT_DIR env var, or pass save_path, to also write the PDF to disk.
Conversion options (landscape, paperWidth/Height, margins, scale, pdfa,
passwords, …) are available on Pro, Scale, and the free trial; on Starter/Basic
they return an upgrade error. Each successful conversion costs 1 credit; errors
are free.
Quick start (local / stdio)
npx filetopdf-mcp
Add to Claude Desktop (claude_desktop_config.json) or Cursor:
{
"mcpServers": {
"filetopdf": {
"command": "npx",
"args": ["-y", "filetopdf-mcp"],
"env": { "FILETOPDF_API_KEY": "sk_live_YOUR_API_KEY" }
}
}
}
Get a key free at https://filetopdf.dev (instant trial key on the home page, 10 free conversions) or from the dashboard.
Hosted / remote (Streamable HTTP)
npm run build && npm run start:http # listens on $PORT (default 8080) at /mcp
The key is read from the x-api-key header, an Authorization: Bearer header, or an
?apiKey= query parameter — so one endpoint serves every user with their own key.
A Dockerfile is included for container hosting (Smithery, Fly, Render, Cloud Run).
Develop & test
npm install
npm run build # tsc -> dist/
npm test # spawns the built stdio server, runs a live conversion
npm test reads FILETOPDF_API_KEY, or API_KEY= from a gitignored .env.
Publishing & listing
This server is built to be publicly discoverable on MCP marketplaces:
- npm —
npm publishmakesnpx filetopdf-mcpwork (prerequisite for most directories). - GitHub — push a public repo (
filetopdf/filetopdf-mcp); Glama and others auto-index it. - Smithery — connect the repo at https://smithery.ai/new; it builds the
Dockerfileand hosts the HTTP server usingsmithery.yaml. - Official MCP Registry — publish
server.jsonwith themcp-publisherCLI (namespacedev.filetopdf/*is verified via a DNS TXT record on filetopdf.dev).
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。