npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@noedgeai-org/doc2x-mcp

v0.1.2

Published

Doc2x MCP server (stdio, MCP SDK).

Readme

Doc2x MCP Server

简体中文 | English

本项目提供一个基于 stdio 的 MCP Server,把 Doc2x v2 的 PDF/图片接口封装成语义化 tools。

1) 运行环境

  • Node.js >= 18

2) 配置

通过环境变量配置:

  • DOC2X_API_KEY:必填(形如 sk-xxx
  • DOC2X_BASE_URL:可选,默认 https://v2.doc2x.noedgeai.com
  • DOC2X_HTTP_TIMEOUT_MS:可选,默认 60000
  • DOC2X_POLL_INTERVAL_MS:可选,默认 2000
  • DOC2X_MAX_WAIT_MS:可选,默认 600000
  • DOC2X_PARSE_PDF_MAX_OUTPUT_CHARS:可选,默认 5000;限制 doc2x_parse_pdf_wait_text 返回文本的最大字符数,避免大模型上下文超限(设为 0 表示不限制)
  • DOC2X_PARSE_PDF_MAX_OUTPUT_PAGES:可选,默认 10;限制 doc2x_parse_pdf_wait_text 合并的最大页数(设为 0 表示不限制)
  • DOC2X_DOWNLOAD_URL_ALLOWLIST:可选,默认 ".amazonaws.com.cn,.aliyuncs.com,.noedgeai.com";设为 * 可允许任意 host(不推荐)

3) 启动

方式 A:通过 npx

{
  "command": "npx",
  "args": ["-y", "@noedgeai-org/doc2x-mcp"],
  "env": {
    "DOC2X_API_KEY": "sk-xxx",
    "DOC2X_BASE_URL": "https://v2.doc2x.noedgeai.com"
  }
}

方式 B:本地源码运行

cd doc2x-mcp
npm install
npm run build
DOC2X_API_KEY=sk-xxx npm start
{
  "command": "node",
  "args": ["<ABS_PATH>/doc2x-mcp/dist/index.js"],
  "env": {
    "DOC2X_API_KEY": "sk-xxx",
    "DOC2X_BASE_URL": "https://v2.doc2x.noedgeai.com"
  }
}

4) Tools

  • doc2x_parse_pdf_submit
  • doc2x_parse_pdf_status
  • doc2x_parse_pdf_wait_text
  • doc2x_convert_export_submit
  • doc2x_convert_export_result
  • doc2x_convert_export_wait
  • doc2x_download_url_to_file
  • doc2x_parse_image_layout_sync
  • doc2x_parse_image_layout_submit
  • doc2x_parse_image_layout_status
  • doc2x_parse_image_layout_wait_text
  • doc2x_materialize_convert_zip
  • doc2x_debug_config

5) 协议

MIT License,详见 LICENSE