# packforai-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/zymsj8j9z9-ship-it/packforai-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 573  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/packforai-mcp

## Description
Convert PDF, DOCX, XLSX, CSV, JSON into clean, AI-ready Markdown via the PackForAI API.

## Tools
Capabilities this server exposes over MCP:

- **convert_document** — Convert a document (PDF, DOCX, PPTX, XLSX, CSV, JSON) into clean, compact, AI-ready Markdown using PackForAI. Provide either a local file `path` or a public `url`. Returns the compact Markdown plus token-savings, ready to read or paste into a prompt. Use `ocr: true` for scanned / image-only PDFs.

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

```json
"mcpServers": {
  "packforai-mcp": {
    "command": "npx",
    "args": ["-y","packforai-mcp"],
    "env": {
      "PACKFORAI_API_KEY": ""
    }
  }
}
```

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

## Documentation

## What packforai-mcp does

packforai-mcp connects an MCP-compatible client to the PackForAI API for document-to-Markdown conversion. Its main operation, `convert_document`, handles PDF, DOCX, PPTX, XLSX, CSV, and JSON inputs. The result is formatted as clean, compact Markdown intended for use in AI prompts or downstream agent processing.

The conversion response includes a token comparison, allowing the client to see how the generated Markdown compares with the source in token usage. For scanned or image-only PDFs, the tool can invoke OCR when requested.

## How it works

The tool accepts either an absolute local file path or a public HTTPS URL. Provide one of these inputs along with the optional conversion settings. The server sends the document to PackForAI and returns the converted Markdown to the MCP client.

By default, the response uses the compact representation. Set `full` to `true` when the complete `document.md` output is needed, such as for retaining full spreadsheet tables. Set `ocr` to `true` for scanned or image-only PDF files; this option is intended for the Pro plan.

## Setup and configuration

Node.js 18 or newer is required. The server runs through `npx`, so it does not require a global installation. Add the server to the MCP client's configuration with the `packforai-mcp` package and provide a PackForAI API key through the environment.

```json
{
  "mcpServers": {
    "packforai": {
      "command": "npx",
      "args": ["-y", "packforai-mcp"],
      "env": { "PACKFORAI_API_KEY": "your_key_here" }
    }
  }
}
```

`PACKFORAI_API_KEY` is required. `PACKFORAI_BASE_URL` is optional and can replace the default API endpoint, `https://packforai.com/api/v1`. PackForAI provides API access on its free plan, which allows three conversions per day and files up to 10 MB.

## Tools and capabilities

### `convert_document`

- Converts PDF, DOCX, PPTX, XLSX, CSV, or JSON files to Markdown.
- Reads from an absolute local `path` or a public HTTPS `url`.
- Enables OCR for scanned PDFs with `ocr: true`.
- Returns compact Markdown by default.
- Returns the full document Markdown with `full: true`.
- Includes a token comparison with the conversion result.

The client can invoke the tool through a natural-language request such as converting a local report, fetching a document from a public URL, or processing a scanned PDF with OCR.

## Limitations and notes

A PackForAI API key is needed for operation, and API usage is subject to the selected PackForAI plan. The free plan permits three conversions per day and limits files to 10 MB. URL inputs must be publicly accessible HTTPS URLs. Local inputs should be supplied as absolute paths. OCR is available for scanned or image-only PDFs through the Pro plan.

_Full upstream README: https://allmcps.com/mcp/packforai-mcp/readme_

