Local MCP + CLI thin adapter for pdf_editor_api.
Project description
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, attaches PDF_EDITOR_API_KEY, and forwards to the cloud API.
Install
pip install pdf-agent-kit
or:
uvx pdf-agent-kit
Environment
export PDF_EDITOR_API_KEY="sk_live_..."
If missing, commands fail with:
PDF_EDITOR_API_KEY not set. Get your key at https://pdfagentkit.com/dashboard
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 status
pdf-edit setup
CLI contract:
- success JSON goes to stdout
- errors go to stderr
- exit code
0success,1user error,2server/network error
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
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
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 pdf_agent_kit-0.1.0.tar.gz.
File metadata
- Download URL: pdf_agent_kit-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a24940eaecb2b24e5846f3a060445eb6667ef9bb48acd63158dfc2855661f89d
|
|
| MD5 |
f110fb9496ff1a9781f6c41f5f9c6342
|
|
| BLAKE2b-256 |
92285e958d38dca7ec7f1c253215fb789480c6aede430ed9dde683dadf414860
|
File details
Details for the file pdf_agent_kit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pdf_agent_kit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b2376f695faf6b1bdcd5d0317681e445b40758d7501e2abb59e7738bfc4569d
|
|
| MD5 |
b8534fb42dbee2ba68499339bc4bd77c
|
|
| BLAKE2b-256 |
46f658937c30335543e9839e7a2b3037635f291c62c5ce6c3bad20d0754b6297
|