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.0Check MCP
Open the MCP list and confirm the doc2x server is available (you can expand it to see the tool list).

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
doc2xMCP 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.



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.0works in your terminal first.