Aspose Cloud API

Aspose.PDF Cloud MCP Server

Cloud APIPDF รุ่น v1.1.4

Merge PDF documents, convert PDF to Word and read document properties through Aspose.PDF Cloud's REST API, from any MCP-compatible AI client.

การตั้งค่า

ติดตั้ง Aspose.PDF Cloud

คุณต้องใช้ Python 3.11 หรือใหม่กว่า ติดตั้งเซิร์ฟเวอร์ใน virtual environment; แพ็กเกจแรกคือไลบรารี file-tool ที่ใช้ร่วมกันซึ่งทุก MCP server ของ Aspose Cloud พึ่งพา.

python -m venv .venv
source .venv/bin/activate    # Windows: .venv\Scripts\activate

pip install \
  git+https://github.com/aspose-cloud/aspose-storage-cloud-python-mcp.git@v1.0.5 \
  git+https://github.com/aspose-cloud/aspose-pdf-cloud-python-mcp.git@v1.1.4

นี่จะใส่คำสั่ง aspose-pdf-mcp เข้าไปใน virtual environment.

กำหนดค่า Aspose.PDF Cloud ในไคลเอนต์ AI ของคุณ

สร้างแอปพลิเคชันบนแผงควบคุม Aspose Cloud ของคุณเพื่อรับ Client ID และ Client Secret (มีระดับการประเมินฟรี). เซิร์ฟเวอร์จะอ่านค่าจาก environment ของมันเมื่อเริ่ม; ค่าต่าง ๆ จะไม่ถูกส่งเป็นอาร์กิวเมนต์ของเครื่องมือ. ASPOSE_FILES_PATH คือโฟลเดอร์บนคอมพิวเตอร์ของคุณที่เซิร์ฟเวอร์สามารถอ่านไฟล์และเขียนผลลัพธ์ได้.

{
  "mcpServers": {
    "pdf": {
      "command": "C:\\path\\to\\.venv\\Scripts\\aspose-pdf-mcp.exe",
      "env": {
        "ASPOSE_CLIENT_ID": "your-client-id",
        "ASPOSE_CLIENT_SECRET": "your-client-secret",
        "ASPOSE_FILES_PATH": "C:\\Users\\you\\Documents\\aspose-files"
      }
    }
  }
}

// macOS / Linux: "command": "/path/to/.venv/bin/aspose-pdf-mcp"
ลองใช้

ตัวอย่างพรอมต์

  • Upload report.pdf, tell me its title and author, then convert it to Word and download it.
  • Merge 4pages.pdf and 5pages.pdf and tell me how many pages the result has.
เอกสารอ้างอิง

เครื่องมือที่พร้อมใช้ (3)

ทุกเครื่องมือที่เซิร์ฟเวอร์นี้เปิดเผย มาจากไฟล์ manifest ของเครื่องมือนั้นโดยตรง.

เครื่องมือรายละเอียดพารามิเตอร์
pdf_convert_to_doc Converts a PDF file stored in Aspose Cloud storage to a Word document (DOC or DOCX) and returns the converted file content. อ่านได้เท่านั้น filename: str (จำเป็น), folder_name: str | None, storage_name: str | None, output_filename: str | None, return_base64: bool
พรอมต์: convert invoice.pdf to a Word document using aspose pdf cloud mcp
พรอมต์: convert scan.pdf to docx and save as scan-editable.docx using aspose pdf cloud mcp
พรอมต์: convert invoice.pdf from the invoices folder of my MyStorage storage to Word and return it as base64 text using aspose pdf cloud mcp
pdf_merge_documents This tool merges a list of PDF documents into a single PDF file with a specified result name. รันแบบจำลอง filename: str (จำเป็น), merge_request: dict[str, Any] (จำเป็น), storage_name: str | None, folder_name: str | None, dry_run: bool
พรอมต์: merge part1.pdf, part2.pdf and part3.pdf into full-report.pdf using aspose pdf cloud mcp
พรอมต์: merge jan.pdf and feb.pdf from the reports folder of my MyStorage storage into q1.pdf using aspose pdf cloud mcp
พรอมต์: do a dry run of merging cover.pdf and body.pdf into book.pdf using aspose pdf cloud mcp
pdf_get_document_properties Retrieves the metadata properties of a specified PDF document from Aspose Cloud storage. อ่านได้เท่านั้น filename: str (จำเป็น), folder_name: str | None, storage_name: str | None
พรอมต์: show the author, title and creation date of brochure.pdf using aspose pdf cloud mcp
พรอมต์: show the properties of brochure.pdf from the marketing folder of my MyStorage storage using aspose pdf cloud mcp

ทุกเซิร์ฟเวอร์ยังรวมเครื่องมือไฟล์ร่วมสี่อย่าง (อัปโหลด, ดาวน์โหลด, รายการและลบ) ดังนั้นเซิร์ฟเวอร์เดียวเพียงพอสำหรับกระบวนการอัปโหลด, ประมวลผล, ดาวน์โหลดอย่างครบถ้วน.

สำรวจเพิ่มเติม

เซิร์ฟเวอร์ Aspose Cloud MCP อื่น ๆ