pdf-agent-kit
pdf-agent-kit is a local adapter package for the pdf-agent-kit cloud API.
- MCP entrypoint:
pdf-agent-kit(stdio, one tool:extract_pdf_to_json) - CLI entrypoint:
pdf-edit - Python import:
from pdf_agent_kit import extract
The package is thin by design: it reads a local PDF file and forwards it to the cloud API.
If PDF_EDITOR_API_KEY is present, it uses your paid account. If not, it auto-creates a guest session with free credits.
Quickstart For Agents
from pdf_agent_kit import extract
result = extract("/absolute/path/to/file.pdf", pages="1-3")
Install
pip install pdf-agent-kit
or:
uvx pdf-agent-kit
Python Compatibility
- CLI (
pdf-edit) works on Python3.9+. - MCP server (
pdf-agent-kit) requires Python3.10+becausefastmcpis only installed on 3.10+. - If your agent is pinned to older Python, use
pdf-editdirectly or useuvx pdf-agent-kitfor MCP runtime.
Auth Modes
export PDF_EDITOR_API_KEY="sk_live_..."
If no key is set, pdf-agent-kit uses guest mode automatically.
You can also persist your API key locally (avoids exporting every session):
pdf-edit setup --save-api-key
When guest credits run out, the CLI/MCP response points users to pdfagentkit.com/dashboard to register and continue.
MCP Tool
Tool name: extract_pdf_to_json
Parameters:
file_path(required)pages(optional, defaultall)filename(optional override)
Returns API JSON: metadata + per-page text + usage stats.
CLI
pdf-edit extract /path/to/file.pdf
pdf-edit extract /path/to/file.pdf --pages "1-5"
pdf-edit extract /path/to/file.pdf -o /path/to/output.json
pdf-edit status
pdf-edit setup --save-api-key
CLI contract:
- success JSON goes to stdout
- errors go to stderr
- exit code
0success,1user error,2server/network error extractprints a concise usage summary to stderr (pages + remaining credits)
Setup
pdf-edit setup:
- Reads
PDF_EDITOR_API_KEY(or prompts once if missing) - Verifies key with
/v1/account/status - Patches MCP config for:
- Claude Desktop
- Cursor
- VS Code
- Tries to add Claude Code integration via
claude mcp add-json - Optionally saves API key to
~/.pdf-agent-kit/config.jsonwith--save-api-key
Injected server entry:
{
"mcpServers": {
"pdf-agent-kit": {
"command": "uvx",
"args": ["pdf-agent-kit"],
"env": {
"PDF_EDITOR_API_KEY": "sk_live_..."
}
}
}
}
Development
pip install -e .[dev]
pytest -q
Metadata
Release files for pdf-agent-kit 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdf_agent_kit-0.1.3.tar.gz | 12.2 kB | Without provenance | Details for pdf_agent_kit-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdf_agent_kit-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pdf_agent_kit-0.1.3-py3-none-any.whl |
Total release size: 24.7 kB
Release files / pdf_agent_kit-0.1.3.tar.gz
| Download URL | pdf_agent_kit-0.1.3.tar.gz |
|---|---|
| Size | 12.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a900307767f845b9389effbe748cfb97b0aa4208d11a9b65088a2eee2f99663
|
|
BLAKE2b-256 checksum How to use checksums |
99a686c5787fa18c4ce9663d5c3a34f8f98ae0bec783c8062055848774363cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / pdf_agent_kit-0.1.3-py3-none-any.whl
| Download URL | pdf_agent_kit-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f6a43d47b5293ee42279129c3e8bd8d0fceac7494481ed7ffb5de5e8b93518c
|
|
BLAKE2b-256 checksum How to use checksums |
8bf998dede6a879bae494dccb63966272df41a44ab64e17a58c9ce359d96e4cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for pdf-agent-kit 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.