CLI and MCP server tools for Aspose PDF Cloud
Project description
APDF Cloud CLI + MCP Tools
APDF Cloud CLI exposes Aspose PDF Cloud storage and PDF operations through both a command-line interface and an MCP server.
Installation
Install from PyPI:
python -m pip install apdf-cloud-cli
Check that the CLI is available:
apdf-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 apdf-cloud-cli. A shorter apdf alias is
also installed for convenience.
apdf-cloud-cli storage list /
apdf-cloud-cli auth status
apdf-cloud-cli auth test
apdf-cloud-cli storage upload .\sample.pdf /sample.pdf
apdf-cloud-cli storage download /sample.pdf .\sample.pdf
apdf-cloud-cli pdf merge merged.pdf /a.pdf /b.pdf /c.pdf
apdf-cloud-cli pdf merge merged.pdf --from-folder /contracts
apdf-cloud-cli pdf split sample.pdf
apdf-cloud-cli pdf split sample.pdf --ranges 1-3,4,5-8
apdf-cloud-cli pdf convert-pdfa sample.pdf /archive/sample-pdfa.pdf --pdfa-version PDF/A-1B
apdf-cloud-cli pdf extract-text sample.pdf --output sample.txt
apdf-cloud-cli pdf extract-tables sample.pdf --output tables.json
apdf-cloud-cli pdf extract-tables sample.pdf --pages 1,3,4-7,10 --output tables.json
apdf-cloud-cli pdf list-images sample.pdf
apdf-cloud-cli pdf extract-images sample.pdf /extracted-images
apdf-cloud-cli pdf extract-images sample.pdf /extracted-images --pages 1,3,7-10
apdf-cloud-cli pdf extract-image sample.pdf 1 1 /extracted-images
apdf-cloud-cli mcp serve
MCP Usage
After installing the package, configure your MCP client to launch:
apdf-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 apdf-cloud-mcp skill for Codex and Claude Code.
Install the package first, then install the bundled skill:
python -m pip install apdf-cloud-cli
apdf-cloud-cli skill install codex
apdf-cloud-cli skill install claude-code
For Claude Code project-local installation:
apdf-cloud-cli skill install claude-code --project
Use --force to replace an existing installed copy. More details are in
docs/agent-skill.md.
Project details
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 apdf_cloud_cli-0.7.0.tar.gz.
File metadata
- Download URL: apdf_cloud_cli-0.7.0.tar.gz
- Upload date:
- Size: 18.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d197d4f4f652aef5c25d16ae2b888d9d503fcac097a3fe1d388469e6bd66c7d7
|
|
| MD5 |
678b44f771a772cd73136b0dc124313f
|
|
| BLAKE2b-256 |
7b0fc366df946b498b5a456b3489c9569e5b96c34c7aa498979ad4b07add5390
|
Provenance
The following attestation bundles were made for apdf_cloud_cli-0.7.0.tar.gz:
Publisher:
publish.yml on andruhovski/apdf-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apdf_cloud_cli-0.7.0.tar.gz -
Subject digest:
d197d4f4f652aef5c25d16ae2b888d9d503fcac097a3fe1d388469e6bd66c7d7 - Sigstore transparency entry: 1898314586
- Sigstore integration time:
-
Permalink:
andruhovski/apdf-tools@c2261fc08e4aaa7dd4f6043b802dae09ff188f54 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/andruhovski
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c2261fc08e4aaa7dd4f6043b802dae09ff188f54 -
Trigger Event:
push
-
Statement type:
File details
Details for the file apdf_cloud_cli-0.7.0-py3-none-any.whl.
File metadata
- Download URL: apdf_cloud_cli-0.7.0-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b48b0a44dc5a7bcd6d396ef64ce239456ce47c59ba06b423e014c5375697091b
|
|
| MD5 |
81bb32ef054dcb337cd136d643678e46
|
|
| BLAKE2b-256 |
e1203e0a05bb43d7518e36d5b4d101256d99e0c223841d91d646ae09060b89fe
|
Provenance
The following attestation bundles were made for apdf_cloud_cli-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on andruhovski/apdf-tools
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
apdf_cloud_cli-0.7.0-py3-none-any.whl -
Subject digest:
b48b0a44dc5a7bcd6d396ef64ce239456ce47c59ba06b423e014c5375697091b - Sigstore transparency entry: 1898314690
- Sigstore integration time:
-
Permalink:
andruhovski/apdf-tools@c2261fc08e4aaa7dd4f6043b802dae09ff188f54 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/andruhovski
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c2261fc08e4aaa7dd4f6043b802dae09ff188f54 -
Trigger Event:
push
-
Statement type: