Skip to content

Doc2X MCP: Gemini CLI

Back: Doc2X MCP Guide

What You Need

  • Node.js (LTS recommended) and npx
  • DOC2X_API_KEY
  • (Optional) proxy env (HTTPS_PROXY / HTTP_PROXY)

Add MCP Configuration

Run in your terminal:

shell
gemini mcp add --transport stdio -e DOC2X_API_KEY=sk-xxx doc2x npx -y @noedgeai-org/doc2x-mcp@0.1.0

Check MCP

Open the MCP list and confirm the doc2x server is available (you can expand it to see the tool list).

Check MCP

Use doc2x-mcp

Try a small file first:

  • Prepare ./paper.pdf (or replace with your file path)
  • In chat, explicitly ask to parse and export using the doc2x MCP server

Example prompts:

  • Use doc2x-mcp to parse ./paper.pdf and export the result to the current directory.
  • Use doc2x-mcp to parse ./paper.pdf and tell me the exported file name/path.

Parse Document

Parsing

View Exported Result

Troubleshooting

  • If the server doesn’t show up, ensure gemini mcp add ... succeeded and restart/refresh the session.
  • If startup hangs/fails, verify npx -y @noedgeai-org/doc2x-mcp@0.1.0 works in your terminal first.