Skip to main content
Glama
abhishektangudu

pdf-agent-toolkit-mcp

PDF Agent Toolkit & MCP Server (inspired by ihatepdf.cv)

AIエージェント(Claude Desktop、Cursor、Windsurf、LangChain、Claude Code)向けの、包括的でプライバシー優先のPDF操作スイートおよびModel Context Protocol(MCP)サーバーです。

基本理念

  1. クラウドアップロードゼロ: すべてのPDF処理(圧縮、ページ並べ替え、回転、墨消し、テキスト抽出)は、純粋なTypeScriptとWebAssemblyで100%ローカルに実行されます。

  2. エージェントトークン最適化: プロンプトへの生のPDF base64ダンプを避けることでコンテキストの肥大化を排除し、必要に応じて構造化されたアウトラインとページスニペットを返します。

  3. ユニバーサル互換性: stdio JSON-RPC 2.0でそのまま動作します。


Related MCP server: filewash

🛠️ 利用可能なMCPツール

ツール名

カテゴリ

説明

エージェント最適化

compress_pdf

最適化

ストリームのデフラグとDPIプリセット(screenebookprinter)によるファイルサイズの削減。

後続のOCR/ビジョントークン重量を最大70%削減。

extract_pdf_content

インテリジェンス

ドキュメントの目次、アウトライン、単語数、クリーンなMarkdownテキストを抽出。

生のストリームダンプと比較して約90%のコンテキストトークンを節約。

scan_and_redact_pii

セキュリティ

SSN、メール、クレジットカード、Aadhaar番号、カスタムキーワードを検出し、黒い墨消しボックスをスタンプ。

外部LLMにドキュメントを送信する前にGDPR/HIPAA準拠を保証。

organize_pdf

構造

複合ツール: 並べ替え、削除、回転(90/180/270°)、ページ番号の追加を1回のアトミックパスで実行。

マルチターンの往復を防止。

split_pdf

構造

特定のページ範囲(例: "1-3, 5, 8-12")を抽出。

エージェントが特定の章を検査可能に。

merge_pdfs

構造

複数の入力PDFを1つのドキュメントに結合。

複数ファイルのドキュメントを高速に編集。

stamp_watermark

セキュリティ

カスタム回転と不透明度で視覚的なテキスト透かし(例: "DRAFT""CONFIDENTIAL")をスタンプ。

視覚的なステータススタンプ。

create_pdf_from_text

作成

クリーンなMarkdown/テキストを、スタイライズされたヘッダーバナー付きのA4 PDFに整形。

ヘッドレスブラウザの肥大化なしの軽量ドキュメント生成。

inspect_and_fill_form

フォーム

AcroFormフィールドを検査し、フォームデータを入力。

請求書、税務、契約処理を自動化。


🚀 エージェント向けクイックスタート設定

1. Cursor IDE (.cursor/mcp.json)

{
  "mcpServers": {
    "pdf-agent-toolkit": {
      "command": "npx",
      "args": ["-y", "pdf-agent-toolkit-mcp@latest"]
    }
  }
}

2. Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "pdf-tools": {
      "command": "npx",
      "args": ["-y", "pdf-agent-toolkit-mcp"]
    }
  }
}

3. LangChain & LangGraph (Python)

from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_google_genai import ChatGoogleGenerativeAI

async def main():
    async with MultiServerMCPClient({
        "pdf_tools": {
            "command": "npx",
            "args": ["-y", "pdf-agent-toolkit-mcp"],
            "transport": "stdio",
        }
    }) as client:
        tools = client.get_tools()
        model = ChatGoogleGenerativeAI(model="gemini-2.5-flash")
        agent = create_react_agent(model, tools)
        
        response = await agent.ainvoke({
            "messages": [("user", "Compress ./financials.pdf and blackout sensitive SSNs")]
        })
        print(response)

💻 サーバーをローカルで実行

# Run MCP server on stdio
npm run mcp

# Start the interactive visual testing studio and playground
npm run dev
F
license - not found
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Privacy-first file tools for AI agents, enabling operations like PDF merge/split, image compression/convert, metadata stripping, and background removal without storing files.
    46
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    A local PDF manipulation server for AI agents that provides tools for merging, splitting, extracting info, and converting images to PDF, all without uploading files.
  • A
    license
    A
    quality
    A
    maintenance
    Enterprise-grade PDF engine for AI agents. Pure TypeScript, zero-dependency, and local-first. Allows agents to generate ISO-compliant PDF/A documents, handle digital signatures (PKCS#7), and process high-performance layouts (800+ pages in seconds).
    28
    834
    2
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhishektangudu/pdf-toolkit-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server