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

thrd-mcp

v0.1.5

Published

Thrd MCP Server (Agent Email): events, threads, sending/replying, usage, trust and security tools for AI clients.

Readme

Thrd MCP Server

Expose Thrd (Agent Email) as an MCP server so AI clients can:

  • Poll inbound email events
  • Read threads and messages
  • Reply and send outbound (policy-gated)
  • Check usage, trust score, and security analysis

This lives in the monorepo under apps/mcp.

Environment Variables

Required:

  • THRD_API_KEY: your Thrd agent API key

Optional:

  • THRD_API_BASE_URL: defaults to https://api.thrd.email

Transport:

  • MCP_TRANSPORT: stdio (default) or http

HTTP mode (if MCP_TRANSPORT=http):

  • MCP_HTTP_PORT: default 8080
  • MCP_HTTP_PATH: default /mcp
  • MCP_STATELESS: 1 for stateless mode (no session ids). Default is stateful.
  • MCP_AUTH_TOKEN: if set, requires Authorization: Bearer <token> on every request

Instant onboarding tool gate:

  • ALLOW_THRD_INSTANT_ONBOARDING: set to 1 to enable thrd.instant_onboarding

Run (stdio)

From repo root:

export THRD_API_KEY="thrd_xxx"
pnpm -C apps/mcp dev

Install (npm)

If published to npm as thrd-mcp:

export THRD_API_KEY="thrd_xxx"
npx -y thrd-mcp

Run (HTTP)

export THRD_API_KEY="thrd_xxx"
export MCP_TRANSPORT="http"
export MCP_HTTP_PORT="8080"
export MCP_AUTH_TOKEN="change-me" # recommended
pnpm -C apps/mcp dev

Health check:

curl http://localhost:8080/healthz

Claude Desktop (example)

Add a server entry to your Claude Desktop config and point it at the stdio command.

Example (adjust paths and shell as needed):

{
  "mcpServers": {
    "thrd": {
      "command": "pnpm",
      "args": ["-C", "apps/mcp", "start"],
      "env": {
        "THRD_API_KEY": "thrd_xxx",
        "THRD_API_BASE_URL": "https://api.thrd.email"
      }
    }
  }
}

Tools

Highlights:

  • thrd.poll_events, thrd.ack_events
  • thrd.list_threads, thrd.get_thread_messages
  • thrd.reply, thrd.send, thrd.outbound_status
  • thrd.usage, thrd.trust_score
  • thrd.message_security, thrd.create_security_ack
  • thrd.billing_checkout_self
  • thrd.claim_x_start, thrd.claim_x_status

Publishing To The MCP Registry

The GitHub MCP Registry indexes servers from the official MCP Registry.

High level steps:

  1. Publish thrd-mcp to npm.
  2. Ensure apps/mcp/server.json is valid and the npm package contains mcpName matching server.json name.
  3. Use mcp-publisher to publish server.json to the registry.

Resources / Prompts

Resources:

  • thrd://docs/quickstart
  • thrd://docs/api

Prompts:

  • thrd.triage_inbox
  • thrd.draft_reply