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

@tplvane/mcp

v1.0.0

Published

MCP server for filling Word, PowerPoint and Excel templates with tplvane, limited to the directories given at start.

Readme

@tplvane/mcp

An MCP server for tplvane: tools to inspect Word, PowerPoint and Excel templates, validate data, render and read the result as text. It is read-only by default and limited to the directories given at start.

Status: 1.0.0, released together with tplvane in the same version.

npx @tplvane/mcp --root ./templates                 # read-only
npx @tplvane/mcp --root ./templates --allow-write   # also the render tool

The tplvane-mcp command serves the tools over stdio with the official MCP SDK. Options: --root <dir> (required, repeatable; an empty value is refused), --allow-write, --max-file-size <bytes> (default 50 MiB), --max-response-chars <n> (default 100 000; it limits the text of a result and its structured content, which is replaced by a note when it is longer). One message may be as large as a file of --max-file-size written as a base64 data URL; a larger one is reported on stderr and the server ends with exit code 1. Exit codes: 0 when the client closes the connection, 1 for a message that is too large, 2 for wrong arguments, 3 for a root that cannot be used. A client configuration usually runs npx with the arguments ["@tplvane/mcp", "--root", "/path/to/templates"].

Tools

| Tool | Writes | What it does | |---|---|---| | inspect_template | no | The JSON Schema of the data a template needs, its tags with their places, warnings | | validate_data | no | Checks data (inline, or a JSON file) against a template: every problem with the path of the field in the data, the place in the template and a hint | | preview_text | no | The text of a document, presentation or workbook, part by part | | render | yes, only with --allow-write | Fills a template and writes the result; replaces a file only with overwrite: true |

Files are read and written only inside the root directories (--root, repeatable); relative paths start at the first one. Links that point out of the roots, files with more than one name (hard links), folders, devices and pipes are refused; on Linux the opened file is checked again, so a folder swapped for a link between the check and the opening is refused too. render writes only files with the extension of the template (.docx, .docm, .dotx, .dotm, .pptx or .xlsx, after . and .. are resolved), and replaces a file by renaming a new one over it, never by changing it in place, keeping its permissions. Whether a folder outside the roots exists is never told. The roots should not be writable by programs you do not trust. Images in the data must be data URLs: the server downloads nothing and reads no file on behalf of the data.

In code, createServer(options) returns an McpServer of the SDK to connect to any transport, and createTools(sandbox) the tools without the SDK:

import { createTools, Sandbox } from '@tplvane/mcp';

const tools = createTools(new Sandbox({ roots: ['./templates'] }));
const inspectTool = tools.find((tool) => tool.name === 'inspect_template');
console.log(inspectTool?.handler({ path: 'offer.docx' }).content[0]?.text);

License

MIT