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

@robotbird/excel-json-converter-mcp

v1.0.0

Published

MCP server for converting Excel files to JSON format

Downloads

6

Readme

Excel to JSON MCP Server

一个用于将Excel文件转换为JSON格式的MCP (Model Context Protocol) 服务器。

功能特性

  • Excel转JSON: 将Excel文件转换为JSON格式
  • 工作表信息获取: 获取Excel文件的工作表信息
  • 自定义列提取: 支持指定需要提取的列
  • 空行过滤: 可选择是否过滤空行
  • MCP标准: 完全兼容Model Context Protocol标准

安装

通过 npm 安装

npm install -g excel-to-json

本地开发

git clone <repository-url>
cd excel-to-json-mcp
npm install
npm run build

使用方法

作为 MCP 服务器使用

在Claude Desktop或其他MCP客户端中配置:

{
  "mcpServers": {
    "excel2json": {
      "command": "npx",
      "args": [
        "-y",
        "excel-to-json"
      ]
    }
  }
}

本地测试

# 开发模式
npm run dev

# 生产模式
npm start

可用工具

1. excel_to_json

将Excel文件转换为JSON格式。

参数:

  • inputFile (必需): Excel文件路径
  • outputFile (可选): 输出JSON文件路径,默认为 "output.json"
  • sheetName (可选): 工作表名称,默认为 "Final assembly"
  • columns (可选): 要提取的列配置数组,默认提取F列和G列
  • filterEmptyRows (可选): 是否过滤空行,默认为 true

示例:

{
  "inputFile": "./data/example.xlsx",
  "outputFile": "./output/result.json",
  "sheetName": "Sheet1",
  "columns": [
    {"index": 0, "name": "ID"},
    {"index": 1, "name": "Name"},
    {"index": 2, "name": "Value"}
  ],
  "filterEmptyRows": true
}

2. get_sheet_info

获取Excel文件的工作表信息。

参数:

  • inputFile (必需): Excel文件路径

示例:

{
  "inputFile": "./data/example.xlsx"
}

配置示例

Claude Desktop 配置

将以下配置添加到您的 claude_desktop_config.json 文件中:

{
  "mcpServers": {
    "excel2json": {
      "command": "npx",
      "args": [
        "-y",
        "excel-to-json"
      ]
    }
  }
}

VSCode 配置

如果使用 VSCode MCP 扩展:

{
  "mcp": {
    "servers": {
      "excel2json": {
        "command": "npx",
        "args": ["-y", "excel-to-json"]
      }
    }
  }
}

项目结构

excel-to-json-mcp/
├── src/
│   ├── server.js      # MCP服务器实现
│   └── index.js       # 入口文件
├── build/             # 构建输出目录
├── package.json       # 项目配置
└── README.md         # 说明文档

开发

构建项目

npm run build

开发模式

npm run dev

发布

npm publish

系统要求

  • Node.js >= 18.0.0
  • 支持ES模块

许可证

MIT License

贡献

欢迎提交Issue和Pull Request。

更新日志

v1.0.0

  • 初始版本
  • 支持Excel转JSON功能
  • 支持工作表信息获取
  • 完整的MCP协议支持