# doc2json

> doc2json is a paid MCP server for files and documents. Pay-per-call MCP tool that turns PDF and DOCX text into JSON, Markdown, and tables. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Website:** https://paidtoolindex.com
- **MCP Registry name:** io.github.pufferfishllc3548-cmd/doc2json
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-27

## About

doc2json reads the embedded text layer of a PDF or Word file and returns it as structured JSON, Markdown, and tables. Its output is aimed at pipelines and AI agents that need document content in a predictable shape rather than raw bytes.

The service is exposed both as an MCP tool and as a plain HTTP endpoint. Each successful convert_document call costs 0.02 USDC on Base, settled through the x402 payment protocol, so a client pays per conversion without creating an account or handling an API key. A free price_info tool reports the current price and limits before any payment is made.

The v1 scope is deliberately narrow: it handles digital text in PDF text objects and DOCX paragraphs and tables. Scanned PDFs and images are rejected, and documents are capped at 2 MiB.

## Features

- **Structured JSON output:** Returns document text organized as JSON for downstream parsing.
- **Markdown conversion:** Produces Markdown versions of the extracted content.
- **Table extraction:** Pulls DOCX tables and PDF table text into tabular form.
- **Pay-per-call billing:** Charges 0.02 USDC per successful conversion via x402 on Base with no account.
- **Free price check:** A price_info tool reports current pricing and limits without charging.

## Good for

- Feeding contract or report text from PDFs into an LLM pipeline as clean Markdown
- Extracting tables from Word documents into JSON for data processing
- Letting an AI agent read a supplied document without managing API keys
- Batch-converting digital PDFs in an automated workflow with per-call payment

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http doc2json https://mcp.paidtoolindex.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "type": "http",
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.paidtoolindex.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "type": "http",
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.paidtoolindex.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add doc2json --url https://mcp.paidtoolindex.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.doc2json]
url = "https://mcp.paidtoolindex.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "httpUrl": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http doc2json https://mcp.paidtoolindex.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "serverUrl": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "type": "streamableHttp",
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "doc2json": {
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.paidtoolindex.com/mcp
```

Enter a Name (for example "doc2json"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "doc2json": {
      "type": "http",
      "url": "https://mcp.paidtoolindex.com/mcp"
    }
  }
}
```

## Tools

Going by the server's labels and the tool names, 1 of 2 tools reads data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `convert_document` (says read-only): Convert a user-supplied PDF or DOCX into structured JSON, Markdown, and tables. v1 reads a digital text layer only; scanned PDFs and images are rejected until OCR is added. Price is 0.02 USDC per successful call on Base.
- `price_info`: Free tool: current price, network, payTo, and v1 limits. Does not convert a document.

## FAQ

### Does doc2json work on scanned PDFs?

No. Scanned PDFs, photos and other images are rejected because OCR is not included in v1.

### What is the maximum file size?

Documents up to 2 MiB are accepted.

### How is doc2json paid for?

Each successful convert_document call costs 0.02 USDC on Base mainnet, using the x402 protocol. No account or API key is required.

### Can I check the price before paying?

Yes. The price_info MCP tool returns the current price and limits and does not charge.

### How do I add doc2json to Claude Code?

Run this command in your terminal: claude mcp add --transport http doc2json https://mcp.paidtoolindex.com/mcp

### What are the best alternatives to doc2json?

The closest alternatives to doc2json are Doc_Conv — Document to Markdown, doc-convert-mcp, Docforge, FMF Tools Doc Tools and JSON Canon.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 28 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Doc_Conv — Document to Markdown](https://ai-powered.com/mcp/doc-conv-document-to-markdown): Doc_Conv — Document to Markdown is a paid MCP server for files and documents.
- [doc-convert-mcp](https://ai-powered.com/mcp/doc-convert-mcp): doc-convert-mcp is a freemium MCP server for files and documents.
- [Docforge](https://ai-powered.com/mcp/docforge): Docforge is a paid MCP server for files and documents.
- [FMF Tools Doc Tools](https://ai-powered.com/mcp/fmf-tools-doc-tools): FMF Tools Doc Tools is a freemium MCP server for files and documents.
- [JSON Canon](https://ai-powered.com/mcp/json-canon): JSON Canon is a paid MCP server for files and documents.
- [Convert](https://ai-powered.com/mcp/convert): Convert is a paid MCP server for files and documents.
- [Doc Extract Api](https://ai-powered.com/mcp/doc-extract-api): Doc Extract Api is a paid MCP server for files and documents.
- [Markdown to HTML API](https://ai-powered.com/mcp/markdown-to-html-api): Markdown to HTML API is a paid MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/doc2json-2
