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

@tdcompanion/mcp-server

v1.4.0

Published

MCP server for the True Dungeon Companion API — exposes token, bonus, and rulebook data as tools for Claude and other MCP clients.

Readme

TDC MCP Server

An MCP server that exposes True Dungeon Companion game data — tokens, set/group bonuses, and rulebook pages — as tools for Claude and other MCP clients.

Tools

| Tool | Description | |------|-------------| | search_tokens | Search tokens by name, slot, rarity, or class | | advanced_search_tokens | Build arbitrary AND/OR filter trees across 29 fields (abilities, stats, damage, etc.) | | get_token | Get full detail for a single token (effects, slots, damage wheel, etc.) | | list_set_bonuses | List all set bonuses with tier effects | | get_set_bonus | Get a single set bonus by id | | list_group_bonuses | List all group bonuses with tier effects | | get_group_bonus | Get a single group bonus by id | | list_rulebook_pages | List all rulebook pages (title + path) | | get_rulebook_page | Get the full text content of a rulebook page | | get_api_version | Get the running TDC API build version and start time |

Quick start (npx)

No install or build needed. Add to your .claude/settings.json:

{
  "mcpServers": {
    "tdc": {
      "command": "npx",
      "args": ["@tdcompanion/mcp-server"],
      "env": {
        "TDC_API_KEY": "tdc_live_<your-key>"
      }
    }
  }
}

Environment variables

| Variable | Default | Description | |----------|---------|-------------| | TDC_API_BASE_URL | https://api.tdcompanion.app | API base URL (must point at the API host, not the web app) | | TDC_API_KEY | (none) | Optional bearer key for higher rate limits (600 req/min vs 60) |

The server works without an API key (anonymous access), but authenticated keys get 10x the rate limit. Generate one from your profile's Developer tab at https://tdcompanion.app/profile.

Development

cd src/MCP/@tdcompanion/mcp-server
npm install
npm run build     # compile TypeScript → dist/
npm start         # run locally via stdio

Publishing

npm run build
npm publish

The prepublishOnly script runs the build automatically. The files field in package.json ensures only dist/ is included in the published package.

Changelog

1.1.0

  • Added get_set_bonus, get_group_bonus, and get_api_version tools.
  • Stricter input validation: pagination is clamped (skip >= 0, take 1–200), and slot / rarity / class reject unknown values up front.
  • advanced_search_tokens validates the filter JSON is a FilterExpression object before sending.
  • All tools return a clean { isError: true } result on failure instead of throwing.
  • Rulebook HTML stripping now handles numeric entities (&#x…;, &#…;) and preserves list structure.
  • List-style tools truncate output over ~20k chars with a clear "…N more truncated" footer.