docconv-mcp
MCP server for Doc_Conv — convert PDF / Word / Excel / PowerPoint documents to Markdown, paid per conversion with USDC on Base via the x402 protocol (gasless, EIP-3009). No account, no API key: the agent signs a USDC payment and the service returns Markdown.
Why? Feeding formatted files (PDF/PPT/DOCX) straight into an LLM can cost 5–50× more tokens than the same content as Markdown. This lets an agent cheaply pre-convert documents before use.
Tools
estimate_conversion(file_path)— free price quote (pages,credits,priceUsdc,jobId,jobToken). No payment, no side effects.convert_document(file_path, max_usdc=1.0, poll_seconds=300)— pays via x402 (rejects if the quote exceedsmax_usdc) and converts. Returns inlinemarkdownfor text documents, or adownloadUrl(zip) when the document contains images.
Try it without a wallet
Pricing is free and needs no key, no account, no wallet — install it and ask for a quote:
claude mcp add doc-conv -- uvx docconv-mcp
Then: "How much would it cost to convert ~/papers/report.pdf?" — the agent calls
estimate_conversion and answers. Add a wallet only when you want an actual conversion.
Install
Published to PyPI as docconv-mcp. Run with
uvx (no install) or pip install docconv-mcp.
Configuration (env)
| Variable | Description | Default |
|---|---|---|
DOC_CONV_AGENT_PK |
Private key of the agent's Base wallet (must hold USDC). Signs x402 payments. Needed only by convert_document — estimate_conversion works without it. Secret — never commit or share. |
(unset: pricing only) |
DOC_CONV_BASE_URL |
Doc_Conv service base URL. Override only if self-hosting. | https://converter.crepe.fund |
The wallet needs USDC on Base; gas is paid by the service's x402 facilitator (the agent needs
no ETH). Pricing is by document size: 50 pages = 1 credit = 0.2 USDC (call estimate_conversion
for the exact amount).
Claude Desktop / Claude Code (claude_desktop_config.json or .mcp.json)
{
"mcpServers": {
"doc-conv": {
"command": "uvx",
"args": ["docconv-mcp"],
"env": { "DOC_CONV_AGENT_PK": "0x<your-agent-wallet-private-key>" }
}
}
}
Claude Code one-liner:
claude mcp add doc-conv -- env DOC_CONV_AGENT_PK=0x<key> uvx docconv-mcp
Example
"Convert
~/papers/report.pdfto Markdown."
The agent calls estimate_conversion to see the price (e.g. 0.3 USDC), then convert_document to
pay via x402 and return the Markdown. If conversion fails, the paid credit is retained on the payer
wallet for reuse.
⚠️
convert_documentspends real USDC. Usemax_usdcto cap per-call cost.
Links
- Service: https://converter.crepe.fund
- Agent API (OpenAPI): https://converter.crepe.fund/openapi.json
- x402 discovery: https://converter.crepe.fund/.well-known/x402.json
- Operator: CREPE Foundation
License
MIT © CREPE Foundation
Metadata
Release files for docconv-mcp 1.0.2
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 | |
|---|---|---|---|---|
| docconv_mcp-1.0.2.tar.gz | 7.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| docconv_mcp-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.8 kB
Release files / docconv_mcp-1.0.2.tar.gz
| Download URL | docconv_mcp-1.0.2.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
277d041e563e11104856638df89c56338c47a4dbee2b46d70c37acbadc3d367a
|
|
BLAKE2b-256 checksum How to use checksums |
a8a06f92eb1f6de46f684568d37a0aa948b3dd60350732b423a34fbc31640800
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / docconv_mcp-1.0.2-py3-none-any.whl
| Download URL | docconv_mcp-1.0.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ab95cce08273a3bd14fc9226c618195a04236230291a677a34571791f8d330a
|
|
BLAKE2b-256 checksum How to use checksums |
5b2d279ebc3bee957e4ae031ef2de27539f911df65756bb6e543afdc432fde8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for docconv-mcp 1.0.2
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.