# Doc_Conv — Document to Markdown [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/nicklee002e/docconv-mcp  
**GitHub Stars:** 0  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/doc-conv-document-to-markdown

## Description
Convert PDF/Word/Excel/PowerPoint documents to Markdown, paid in USDC via x402.

## Tools
Capabilities this server exposes over MCP:

- **pages**
- **credits**
- **priceUsdc**
- **jobId**
- **jobToken**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "doc-conv-document-to-markdown": {
    "command": "uvx",
    "args": ["docconv-mcp"],
    "env": {
      "DOC_CONV_AGENT_PK": ""
    }
  }
}
```

**Requires environment variables:** `DOC_CONV_AGENT_PK` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Doc_Conv — Document to Markdown does

Doc_Conv — Document to Markdown exposes document conversion through the Model Context Protocol. It connects an MCP client to the Doc_Conv service at converter.crepe.fund and accepts local file paths for PDF, Word, Excel, and PowerPoint documents. The service produces Markdown rather than preserving the original office or PDF layout.

Payment is handled per conversion with USDC on Base using the x402 protocol. The agent signs the payment with a Base wallet; no account or separate API key is required. The wallet must hold enough USDC for the quoted conversion. The service facilitator covers gas, so the agent does not need ETH on Base.

## How it works

The agent should call `estimate_conversion(file_path)` before paying. This free operation reports the document’s page count, credit amount, USDC price, job ID, and job token. It does not create a payment or otherwise change state.

After reviewing the quote, the agent can call `convert_document(file_path, max_usdc=1.0, poll_seconds=300)`. The tool refuses to proceed when the quote is above `max_usdc`, which provides a per-call spending limit. It then uses x402 to authorize payment and submits the document for conversion.

For documents containing only text, the result includes Markdown directly. If images are present, the response provides a download URL for a ZIP archive instead.

## Setup and configuration

Doc_Conv — Document to Markdown is published as the `docconv-mcp` package on PyPI. Run it without a separate installation through `uvx docconv-mcp`, or install the package with pip. The server uses stdio, so an MCP client can launch it as a command.

Set `DOC_CONV_AGENT_PK` to the private key for the agent’s Base wallet. This secret signs x402 payments and must not be committed or shared. The wallet needs USDC on Base. `DOC_CONV_BASE_URL` is optional and defaults to `https://converter.crepe.fund`; change it only when connecting to another deployment, such as a self-hosted service.

Claude Desktop and Claude Code can launch the server with `uvx`, passing the private key through the environment. The same command structure can be used wherever an MCP client supports stdio server configuration.

## Tools and capabilities

- `estimate_conversion(file_path)`: obtains a free quote containing pages, credits, USDC price, job ID, and job token.
- `convert_document(file_path, max_usdc=1.0, poll_seconds=300)`: checks the spending ceiling, pays through x402, and converts the file.
- Supports PDF, Word, Excel, and PowerPoint input.
- Returns inline Markdown for text documents and a ZIP download URL when images are included.
- Uses USDC on Base for per-conversion payment.

## Limitations and notes

Conversion costs depend on document size, so callers should estimate before invoking the paid tool. The README gives an example rate of 50 pages equaling one credit and 0.2 USDC, while directing callers to `estimate_conversion` for the exact amount. `convert_document` spends real USDC, making `max_usdc` important for cost control.

The server requires access to a Base wallet private key and sufficient USDC. Image-containing output is not returned as inline Markdown; it is supplied as a ZIP download URL.

_Full upstream README: https://allmcps.com/mcp/doc-conv-document-to-markdown/readme_

