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

@liyongning/ai-office-mcp

v1.0.8

Published

A Model Context Protocol server for pdf to office

Downloads

12

Readme

office-mcp-server

通过 MCP Server 将办公能力输出给大模型

Features

Tools

  • pdf_to_office —— pdf 转 office
    • 以文件路径(pdf_file_path) 和输出格式(output_format)作为必要参数
    • 如果是本地文件,则上传到 S3,如果是在线文件,则直接进入下一步
    • 创建转换任务,将在线文件转换为目标格式的文件
    • 输出下载链接

开发

安装依赖

pnpm install

启动开发环境

pnpm dev

设置文件的可执行权限

pnpm build

两种调试方法

inspector

执行 pnpm run inspector 启动调试器,在浏览器中访问调试页面,进行调试

另外每次修改代码后需要在页面中执行一下 restart,如果还不生效,则刷新页面重新连接

端内调试

以 Cursor 为例,设置 -> MCP -> Add New Global MCP Server 增加如下配置

{
  "mcpServers": {
    "pdf_to_office": {
      "command": "node",
      "args": ["/Users/liyongning/workspace/office/office-mcp-server/build/index.js"],
      "env": {
        "Q": "Q",
        "T": "T"
      },
      "alwaysAllow": ["pdf_to_office"]
    }
  }
}

生产环境安装

以 Cursor 为例,设置 -> MCP -> Add New Global MCP Server 增加如下配置

{
  "mcpServers": {
    "pdf_to_office": {
      "command": "npx",
      "args": ["@liyongning/ai-office-mcp"],
      "env": {
        "Q": "Q",
        "T": "T"
      },
      "alwaysAllow": ["pdf_to_office"]
    }
  }
}

发布 npm 市场

  • 更新版本号
  • pnpm build:prod
  • pnpm login 登录 pnpm 帐号
  • pnpm publish