التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@mcp-z/mcp-pdfclaude mcp add mcp-pdf -- npx -y @mcp-z/mcp-pdf@1.0.3
{
"mcpServers": {
"mcp-pdf": {
"command": "npx",
"args": [
"-y",
"@mcp-z/mcp-pdf@1.0.3"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
المحتويات
@mcp-z/mcp-pdf
Create PDF documents and layouts, render pages to PNG, and measure text through MCP. The server runs locally and requires no API key.
Requires Node.js >=22.13. The examples use npx, included with npm, to run this server and @mcp-z/cli.
Transports
MCP supports stdio and HTTP.
Both transports support the 2025 and 2026-07-28 protocol revisions. The 2026 revision is stateless, so clients using it send no initialize handshake or session ID.
Save one of these configurations as .mcp.json in the directory where you will run the commands.
Stdio
{
"mcpServers": {
"pdf": {
"command": "npx",
"args": ["-y", "@mcp-z/mcp-pdf"]
}
}
}
HTTP
{
"mcpServers": {
"pdf": {
"type": "http",
"url": "http://localhost:9010/mcp",
"start": {
"command": "npx",
"args": ["-y", "@mcp-z/mcp-pdf", "--port=9010"]
}
}
}
}
start is an extension used by npx @mcp-z/cli up to launch HTTP servers for you. The MCP endpoint is /mcp.
First use
# List tools
npx -y @mcp-z/cli inspect --servers pdf --tools
# Create a simple PDF
npx -y @mcp-z/cli call-tool pdf pdf-document '{"content":[{"type":"text","text":"Hello from MCP"}]}'
The tool returns a file URI and metadata for the generated PDF. See the complete tool reference for parameters and examples.
Tool summary
| Tool | Use |
|---|---|
pdf-document | Flowing documents with automatic pagination |
pdf-layout | Precisely positioned layouts such as slides and flyers |
pdf-resume | JSON Resume documents |
pdf-image | Render PDF pages to PNG |
text-measure | Measure text before layout |
External resources
None.
Prompts
- resource-fetching
Resources
- PDFKit Documentation
- JSON Resume Schema
- JSON Resume Editor
Documentation
الأسئلة الشائعة
ما هو io.github.kmalakoff/mcp-pdf؟
MCP server for PDF generation using PDFKit
كيف أثبّت io.github.kmalakoff/mcp-pdf؟
يعمل على جهازك. في Claude Code: claude mcp add mcp-pdf -- npx -y @mcp-z/mcp-pdf@1.0.3. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج io.github.kmalakoff/mcp-pdf إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل io.github.kmalakoff/mcp-pdf مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون io.github.kmalakoff/mcp-pdf؟
ينشره mcp-z. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.