SM

steveclarke/mcp-printer

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

13 stars 8 forks 品質 70 トレンド 20MIT

CUPSによるmacOS/Linuxで文書を印刷するためのMCPサーバー

概要

MacOS/Linux でドキュメントを印刷するための MCP サーバー。 CUPSの印刷システムによってファイルを印刷し、印刷物の列を管理し、プリンターを制御する機能のAIの助手を提供して下さい。 AIを軸とした開発の時代では、これまで以上にドキュメント、スペック、ガイド、コードを生成しています。 複雑なプロジェクトでAIと連携すると、生成されたアーティファクトをオフラインでレビューする価値がよくあります。 このツールは、AIアシスタントに「作成したすべてのマークダウンファイルを印刷」や「READMEとすべてのTypeScriptファイルをこのディレクトリに印刷する」など、AI世代からオフラインレビューまでのワークフローを合理化します.

概要(AI 翻訳)

MacOS/Linux でドキュメントを印刷するための MCP サーバー。 CUPSの印刷システムによってファイルを印刷し、印刷物の列を管理し、プリンターを制御する機能のAIの助手を提供して下さい。

なぜ?

AIを軸とした開発の時代では、これまで以上にドキュメント、スペック、ガイド、コードを生成しています。 複雑なプロジェクトでAIと連携すると、生成されたアーティファクトをオフラインでレビューする価値がよくあります。 このツールは、AIアシスタントを尋ねるのを楽にします。「作成したすべてのマークダウンファイルを印刷」 または 「このディレクトリのREADMEとすべてのTypeScriptファイルを印刷」 — AI生成からオフラインレビューまでのワークフローを合理化します。

  • 特徴
  • インストール
  • 構成
  • 利用可能なツール
  • 利用可能なプロンプト
  • 使用例
  • CUPSの選択
  • サポートされているファイルタイプ
  • コードレンダリング
  • トラブルシューティング
  • セキュリティ
  • 開発
  • 条件
  • 貢献

##特徴

  • 印刷ファイル** - PDF、テキスト、およびその他のフォーマット
  • リリースレンダーマークダウン - マークダウンを美しくフォーマットされたPDFに変換
  • クライアントマイド図** - フローチャート、シーケンス図、およびマークダウンのビジュアルグラフィックとしてより多くのレンダリング

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Printer Server 🖨️

An MCP server for printing documents on macOS/Linux. Provides AI assistants with the ability to print files, manage print queues, and control printers via the CUPS printing system.

Why?

In the era of AI-assisted development, we’re generating more documentation, specs, guides, and code than ever before. When working with AI on complex projects, it’s often valuable to review generated artifacts offline on paper. This tool makes it effortless to ask your AI assistant: “Print all the markdown files you just created” or “Print the README and all TypeScript files in this directory” — streamlining the workflow from AI generation to offline review.

Features

  • 📄 Print files - PDF, text, and other formats
  • 📝 Render markdown - Convert markdown to beautifully formatted PDFs
  • 📊 Mermaid diagrams - Flowcharts, sequence diagrams, and more render as visual graphics in markdown
  • 💻 Syntax-highlighted code - Automatically render code files with syntax highlighting, line numbers, and proper formatting
  • 🔍 Page count preview - Check how many pages a document will print before sending to printer (prevents accidental 200-page printouts!)
  • 🖨️ List printers - See all available printers and their status
  • 📋 Manage queue - View and cancel print jobs
  • ⚙️ Configure - Set default printers
  • 🎯 Smart - Supports multiple copies, landscape, duplex, and more

Installation

Add to your MCP configuration file (e.g., ~/.cursor/mcp.json for Cursor):

{
  "mcpServers": {
    "Printer": {
      "command": "npx",
      "args": ["-y", "mcp-printer"]
    }
  }
}

That’s it! The package will be automatically downloaded from npm on first use.

🖥️ Platform Support: This server currently supports macOS and Linux only. Windows is not currently supported (contributions welcome!).

📋 Requirements: Google Chrome or Chromium is required for rendering markdown and code files to PDF. The server will auto-detect Chrome/Chromium installations on macOS/Linux. See Requirements for details.

⚠️ Security: This server allows AI assistants to print files from allowed directories (~/Documents, ~/Downloads, ~/Desktop by default, customizable via MCP_PRINTER_ALLOWED_PATHS). Dotfiles and hidden directories are always blocked. Only use with trusted AI assistants on your local machine. See Security for configuration options.

Configuration

GitHub で README 全文を見る

インストール

npx -y mcp-printer
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Printer": { "command": "npx", "args": ["-y", "mcp-printer"] } } }