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

@imenam/xls-reader

v2.0.0

Published

MCP server that lets AI agents read Excel files: list sheets and render any sheet as a Markdown table.

Readme

@imenam/xls-reader

An MCP (Model Context Protocol) server that lets AI agents read Excel files. It can list the sheets of a workbook and render any sheet as a Markdown table, with smart handling of empty rows, empty cells, and in-cell line breaks, plus a configurable size limit to keep responses LLM-friendly.

Supports .xlsx, .xls, .ods and .csv (anything SheetJS can read).

Tools

list_sheets

Lists all sheet names (tabs) in a workbook.

| Parameter | Type | Required | Description | |---|---|---|---| | file_path | string | ✅ | Absolute or relative path to the Excel file |

Returns the sheet names, one per line.

get_sheet

Reads a sheet and returns its content as a Markdown table.

| Parameter | Type | Required | Description | |---|---|---|---| | file_path | string | ✅ | Absolute or relative path to the Excel file | | sheet_name | string | ✅ | Name of the sheet to read | | cell_budget | number | ❌ | Maximum number of cells to return (cols × rows). Default: 2000 | | max_cols | number | ❌ | Override the maximum number of columns | | max_rows | number | ❌ | Override the maximum number of rows | | header_row | boolean | ❌ | Treat the first row as a column header (default: true) |

Smart content handling

  • Empty rows are section separators. A fully empty row closes the current table and starts a new one; when header_row is enabled, the header is repeated on each section.
  • Empty cells are kept as blanks so columns stay aligned.
  • In-cell line breaks are converted to a literal \n so they don't break the Markdown table row.
  • Dates and booleans are rendered as readable text rather than Excel serial numbers.

Size limit

By default the response is capped at cell_budget = 2000 cells (cols × rows). With 10 columns you get ~200 rows; with 20 columns, ~100 rows. When data is truncated, a warning is appended telling you how much was omitted. Override with cell_budget, max_cols, or max_rows to read more (or less).

Installation

npm install -g @imenam/xls-reader

Or use it directly with npx:

{
  "xls-reader": {
    "command": "npx",
    "args": ["-y", "@imenam/xls-reader"]
  }
}

Or point to a local build:

{
  "xls-reader": {
    "command": "node",
    "args": ["/absolute/path/to/xls-reader/dist/index.js"]
  }
}

Configuration

No environment variables are required. Optionally, set MCP_LOG_DIR to change where logs are written (default: C:\var\log\xls-reader on Windows, /var/log/xls-reader otherwise).

# .env
MCP_LOG_DIR=/absolute/path/to/logs

Development

npm install
npm run build      # compile TypeScript to dist/
npm run dev        # run from source with tsx

License

MIT