Aspose Cloud API

Aspose.Slides Cloud MCP Server

Cloud APIPresentations PPTXPPTODP 发行版 v1.0.3

Create, convert and split presentations, read slides, text and images, and replace text, through Aspose.Slides Cloud's REST API, from any MCP-compatible AI client.

设置

安装 Aspose.Slides Cloud

您需要 Python 3.11 及以上版本。将服务器安装到虚拟环境中;第一个包是所有 Aspose Cloud MCP 服务器依赖的共享文件工具库。

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-slides-cloud-python-mcp.git@v1.0.3

这会将 aspose-slides-mcp 命令放入虚拟环境中。

在您的 AI 客户端中配置 Aspose.Slides Cloud

在 Aspose Cloud 仪表板上创建应用以获取客户端 ID 和客户端密钥(提供免费试用层)。服务器启动时会从其环境读取这些信息;它们永不作为工具参数传递。ASPOSE_FILES_PATH 是服务器可以读取文件并写入结果的本地文件夹。

{
  "mcpServers": {
    "slides": {
      "command": "C:\\path\\to\\.venv\\Scripts\\aspose-slides-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-slides-mcp"
试用

示例提示

  • List the slides in deck.pptx and extract all of their text.
  • In deck.pptx replace "Q3" with "Q4" everywhere.
  • Split deck.pptx into one image per slide.
参考

可用工具 (8)

此服务器公开的每个工具,都直接源自其工具清单。

工具描述参数
slides_create_presentation Creates a new presentation in Aspose Slides, optionally using an uploaded source file as a template and optionally applying a password to the new file. 演练模式 filename: str(必需), folder_name: str | None, storage_name: str | None, dry_run: bool
提示:create a new presentation called quarterly-review.pptx using aspose slides cloud mcp
提示:create a new presentation called kickoff.pptx in the decks folder of my MyStorage storage using aspose slides cloud mcp
提示:do a dry run of creating a presentation called demo.pptx using aspose slides cloud mcp
slides_download_presentation The tool retrieves a presentation from Aspose Slides Cloud, converts it to a specified export format, and returns the resulting file as binary data. 只读 filename: str(必需), target_format: str(必需), folder_name: str | None, storage_name: str | None, fonts_folder_name: str | None, slide_indices: str | None, output_filename: str | None, return_base64: bool
提示:download deck.pptx as a pdf using aspose slides cloud mcp
提示:export only slides 1 and 3 of deck.pptx as pdf and save it as deck-excerpt.pdf using aspose slides cloud mcp
提示:export deck.pptx from the decks folder as pdf using the fonts in the my-fonts folder, and return it as base64 text, using aspose slides cloud mcp
slides_split_presentation This tool splits a PowerPoint presentation into separate image files, creating one image for each selected slide and uploading the images to cloud storage. 演练模式 filename: str(必需), target_format: str | None, width: str | None, height: str | None, from_slide: str | None, to_slide: str | None, destination_folder_name: str | None, storage_name: str | None, folder_name: str | None, fonts_folder_name: str | None, dry_run: bool
提示:split deck.pptx into one png image per slide using aspose slides cloud mcp
提示:export slides 2 to 5 of deck.pptx as 1280 by 720 jpeg images into the slide-images folder using aspose slides cloud mcp
提示:do a dry run of splitting deck.pptx from the decks folder of my MyStorage storage into images using the fonts in the my-fonts folder, using aspose slides cloud mcp
slides_list_images Retrieves metadata for every image that is embedded in a specified PowerPoint presentation stored in Aspose Cloud. 只读 filename: str(必需), folder_name: str | None, storage_name: str | None
提示:list the images embedded in brand-guidelines.pptx using aspose slides cloud mcp
提示:list the images embedded in brand-guidelines.pptx from the brand folder of my MyStorage storage using aspose slides cloud mcp
slides_get_presentation_properties Retrieves the metadata properties of a PowerPoint presentation file stored in Aspose Slides Cloud. 只读 filename: str(必需), folder_name: str | None, storage_name: str | None
提示:show the properties of deck.pptx using aspose slides cloud mcp
提示:show the properties of deck.pptx from the decks folder of my MyStorage storage using aspose slides cloud mcp
slides_list_slides Retrieves information about all slides in a specified PowerPoint presentation stored in Aspose Cloud. 只读 filename: str(必需), folder_name: str | None, storage_name: str | None
提示:list all slides in roadmap.pptx using aspose slides cloud mcp
提示:list all slides in roadmap.pptx from the planning folder of my MyStorage storage using aspose slides cloud mcp
slides_get_text_items Extracts all text items from a specified PowerPoint presentation file. 只读 filename: str(必需), with_empty: bool | None, folder_name: str | None, storage_name: str | None
提示:extract all the text from pitch.pptx using aspose slides cloud mcp
提示:extract all the text from pitch.pptx, including empty text items, using aspose slides cloud mcp
提示:extract all the text from pitch.pptx in the sales folder of my MyStorage storage using aspose slides cloud mcp
slides_replace_text Replaces every occurrence of a specified text string in a Slides presentation with a new string. 演练模式 filename: str(必需), old_value: str(必需), new_value: str(必需), ignore_case: bool | None, whole_words_only: bool | None, folder_name: str | None, storage_name: str | None, dry_run: bool
提示:replace 'Q3' with 'Q4' in deck.pptx using aspose slides cloud mcp
提示:replace the whole word 'cost' with 'spend' in deck.pptx, ignoring case, using aspose slides cloud mcp
提示:do a dry run of replacing 'Acme' with 'Globex' in pitch.pptx from the sales folder of my MyStorage storage using aspose slides cloud mcp

每个服务器还内置四个共享文件工具(上传、下载、列出和删除),因此单个服务器即可完成完整的上传、处理、下载工作流。