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

@humanagencyp/crm-mcp

v1.0.2

Published

CRM MCP server for the Human Agency Protocol — contacts, activities, deals, tasks

Readme

HAP CRM MCP Server

A simple CRM for AI agents, built as an MCP server and gated through the Human Agency Protocol.

@humanagencyp/crm-mcpnpm


What It Does

Four entities. Thirteen tools. One database file.

  • Contacts — people you interact with (customers, leads, partners, vendors)
  • Activities — what happened (emails, calls, meetings, notes, purchases)
  • Deals — what's in play (pipeline stages, values, expected close)
  • Tasks — what's next (follow-ups linked to contacts or deals)

Every write operation is gated through the HAP customers profile — your agent can only create contacts, log activities, or manage deals within the bounds you authorize.


Quick Start

With HAP Gateway

The CRM is available as a built-in integration. Go to Integrations in the gateway UI, activate CRM, and you're done. No configuration needed.

Standalone

npx @humanagencyp/crm-mcp@latest

This starts the MCP server with a SQLite database at ~/.hap/crm.db.

For Postgres:

DATABASE_URL=postgres://user:pass@host:5432/mydb npx @humanagencyp/crm-mcp@latest

Tools

Contacts

| Tool | Description | |------|-------------| | create_contact | Create a new contact (name, email, phone, company, role, type, stage, tags) | | find_contacts | Search by name, email, company, type, or stage | | update_contact | Update any contact field | | delete_contact | Delete a contact and all related activities, deals, tasks |

Activities

| Tool | Description | |------|-------------| | log_activity | Log an interaction (email, call, meeting, note, purchase) | | get_timeline | Get activity history for a contact |

Deals

| Tool | Description | |------|-------------| | create_deal | Create a deal (title, value, currency, stage, expected close) | | update_deal | Update deal stage, value, or other fields | | get_pipeline | View deals by stage |

Tasks

| Tool | Description | |------|-------------| | create_task | Create a task linked to a contact or deal | | list_tasks | List tasks by status, contact, deal, or assignee | | complete_task | Mark a task as done |

Export

| Tool | Description | |------|-------------| | export_crm | Full JSON export of all contacts, activities, deals, tasks |


Database

SQLite (default) — zero config. Data stored at ~/.hap/crm.db. Auto-backup to crm.backup.db daily.

Postgres — set DATABASE_URL to a connection string. For teams where multiple gateways need shared access.

Schema is created automatically on first start.


HAP Profile

This server is gated through the customers profile:

  • Boundscontact_create_daily_max, contact_modify_daily_max, activity_create_daily_max, deal_create_daily_max
  • Contextcontact_type (customer, lead, partner, vendor), access_level (read, write)
  • Pathscustomers-read (24h), customers-write (8h), customers-delete (2h)

License

MIT

See humanagencyprotocol.org for the full protocol specification.