Aspose.PDF Cloud CLI + MCP Tools
Aspose.PDF Cloud CLI exposes Aspose PDF Cloud storage and PDF operations through both a command-line interface and an MCP server.
How to Get Your Aspose.PDF Cloud Credentials
- Go to the Dashboard.
- After logging in, navigate to the Applications section in the main menu.
- Select the first (default) application or create a new one.
- Copy the Client ID and Client Secret for later use.
Installation
Install from PyPI:
python -m pip install aspose-pdf-cloud-mcp
Check that the CLI is available:
aspose-pdf-cloud-cli --help
apdf --help
For local development from a checkout:
python -m pip install -e ".[dev]"
Configuration
Set credentials before running CLI commands or the MCP server. The easiest local setup path is:
apdf auth login
apdf auth status
apdf auth test
You can also set credentials directly in your shell:
$env:ASPOSE_CLIENT_ID = "your-client-id"
$env:ASPOSE_CLIENT_SECRET = "your-client-secret"
Optional environment variables:
ASPOSE_STORAGE_NAME: default Aspose storage name.ASPOSE_BASE_URL: alternate Aspose PDF Cloud base URL.ASPOSE_SELF_HOST: set to1,true,yes, oronfor self-hosted use.
You can also create a local .env file. See
.env.example for a template. Environment variables take
precedence over .env values.
CLI Usage
The canonical executable is aspose-pdf-cloud-cli. A shorter apdf alias is
also installed for convenience.
aspose-pdf-cloud-cli storage list /
aspose-pdf-cloud-cli auth status
aspose-pdf-cloud-cli auth test
aspose-pdf-cloud-cli storage upload .\sample.pdf /sample.pdf
aspose-pdf-cloud-cli storage download /sample.pdf .\sample.pdf
aspose-pdf-cloud-cli storage download /sample.pdf .\sample.pdf --overwrite
aspose-pdf-cloud-cli pdf merge merged.pdf /a.pdf /b.pdf /c.pdf
aspose-pdf-cloud-cli pdf merge merged.pdf --from-folder /contracts
aspose-pdf-cloud-cli pdf split sample.pdf
aspose-pdf-cloud-cli pdf split sample.pdf --ranges 1-3,4,5-8
aspose-pdf-cloud-cli pdf pdfa-versions
aspose-pdf-cloud-cli pdf convert-pdfa sample.pdf /archive/sample-pdfa.pdf --pdfa-version PDF/A-1B
aspose-pdf-cloud-cli pdf convert-pdfa sample.pdf /archive/sample-pdfa.pdf --type PDFA3B
aspose-pdf-cloud-cli pdf extract-text sample.pdf --output sample.txt
aspose-pdf-cloud-cli pdf extract-text sample.pdf --output sample.txt --overwrite
aspose-pdf-cloud-cli pdf extract-tables sample.pdf --output tables.json
aspose-pdf-cloud-cli pdf extract-tables sample.pdf --pages 1,3,4-7,10 --output tables.json
aspose-pdf-cloud-cli pdf list-images sample.pdf
aspose-pdf-cloud-cli pdf extract-images sample.pdf /extracted-images
aspose-pdf-cloud-cli pdf extract-images sample.pdf /extracted-images --pages 1,3,7-10
aspose-pdf-cloud-cli pdf extract-image sample.pdf 1 1 /extracted-images
aspose-pdf-cloud-cli mcp serve
MCP Usage
After installing the package, configure your MCP client to launch:
aspose-pdf-cloud-cli mcp serve
Codex MCP configuration examples are available in docs/mcp-config.md, with a copy-pasteable helper at examples/codex-mcp-config.toml.
Codex Prompts
Sample prompts for using this MCP server with Codex are in docs/codex-prompts.md.
Install as an Agent Skill
The package includes an aspose-pdf-cloud-mcp skill for Codex and Claude Code.
Install the package first, then install the bundled skill:
python -m pip install aspose-pdf-cloud-mcp
aspose-pdf-cloud-cli skill install codex
aspose-pdf-cloud-cli skill install claude-code
For Claude Code project-local installation:
aspose-pdf-cloud-cli skill install claude-code --project
Use --force to replace an existing installed copy. More details are in
docs/agent-skill.md.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aspose_pdf_cloud_mcp-1.0.0.tar.gz.
File metadata
- Download URL: aspose_pdf_cloud_mcp-1.0.0.tar.gz
- Upload date:
- Size: 147.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e58b88369751e7914fae171b67498fda2a577f0bf5766169e0c207d6de233fb
|
|
| MD5 |
c2e610f4dc8cbad76646b16072affcef
|
|
| BLAKE2b-256 |
77a072c1a73a0429e508c3f15d2db9e81407b923e02adbc846458a59c046269e
|
File details
Details for the file aspose_pdf_cloud_mcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: aspose_pdf_cloud_mcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a685dea7470cefb04a0ddd5e05d4a08f97a67cd0c2f5286e8ac7b77f8f8d800
|
|
| MD5 |
15d944a36f8bc41187a4ad80f3246016
|
|
| BLAKE2b-256 |
f6066a957123d95c0a28962917ede0a30932d8a991a50fc0a5bed69f228e8e10
|