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

@hackspaces/hubspot-connect-mcp

v0.3.2

Published

Read-only, PII-redacting MCP server for the HubSpot CRM API

Readme

hubspot-connect-mcp

A read-only MCP server for the HubSpot CRM API that redacts personal data by default. Unlike a raw API passthrough, it:

  • Redacts PII (names, emails, phones, addresses, engagement bodies, ticket subjects) before anything reaches the model, with an explicit opt-out.
  • Trims HubSpot's verbose envelope (drops duplicate ids/timestamps, nulls, archived:false, paging URLs; dedupes associations), cutting response size ~30-50%.
  • Covers the whole CRM with a handful of generic tools instead of one per object, keeping the tool surface small.

Install

Install from npm (Node ≥ 18.18):

npm install -g @hackspaces/hubspot-connect-mcp

This server is installed and run with node, not npx. Installing once and pointing node at the entrypoint is reproducible and offline-friendly; that's also how the MCP gateway consumes it.

Configure

Set your HubSpot private-app token and run the installed entrypoint over stdio:

HUBSPOT_ACCESS_TOKEN=pat-... \
  node "$(npm root -g)/@hackspaces/hubspot-connect-mcp/dist/index.js"

Register it with any MCP client by pointing at the installed file (resolve <entrypoint> once with the npm root -g path above):

{
  "mcpServers": {
    "hubspot": {
      "command": "node",
      "args": ["<entrypoint>/@hackspaces/hubspot-connect-mcp/dist/index.js"],
      "env": { "HUBSPOT_ACCESS_TOKEN": "pat-..." }
    }
  }
}

To run from source instead (development), see the Development section below.

Tools (read-only)

All generic over an objectType (contacts, companies, deals, tickets, notes, emails, and more, or a custom object type id):

| Tool | Purpose | |------|---------| | hubspot_list_objects | List records of a type (paginated) | | hubspot_get_object | Get one record by id | | hubspot_batch_read_objects | Read many records by id in one call | | hubspot_search_objects | Filter/search by property criteria plus full-text | | hubspot_count_objects | Count records matching a filter (returns the total) | | hubspot_get_associations | Records of another type linked to a record | | hubspot_list_association_types | Valid association labels between two types | | hubspot_list_properties | Available properties for a type (field discovery) | | hubspot_get_property | One field's definition and allowed values (resolves pipeline stages) | | hubspot_list_schemas | Custom object schemas (resolve custom type ids) |

Pass an explicit properties array on reads to keep responses small. Paginate with limit + the after cursor returned as next.

PII protection

Every tool response passes through a redaction layer before it reaches the model. Personal-data property keys (email, firstname, lastname, phone, address fields, ip_address, ticket subject, and engagement bodies such as hs_note_body / hs_email_text) are replaced with "[REDACTED]". Record ids and dashboard URLs are preserved so you can still pivot and open records.

Add extra property keys to redact (e.g. custom fields) in config/pii-redaction.json:

{ "additional_redact_keys": ["custom_ssn_field"] }

Opt-out: set HUBSPOT_MCP_ALLOW_PII=true to disable redaction entirely. A warning is printed to stderr at startup. Use only in trusted contexts.

Development

npm run dev        # run from source (stdio)
npm test           # run the unit tests
npm run typecheck  # type-check without emitting
npm run compare    # dev harness: measure the token win vs raw passthrough

Versioning

Single-sourced from the root VERSION file; scripts/sync-version.sh propagates it into package.json. See CHANGELOG.md.