New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@honkio/mcp

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@honkio/mcp

HonkIO MCP server — lets AI coding agents send SMS, manage Canadian phone numbers, and handle CASL/DNCL compliance

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
648
1196%
Maintainers
1
Weekly downloads
 
Created
Source

HonkIO MCP Server

Model Context Protocol (MCP) server for HonkIO, the Canadian SMS API. It lets an AI agent send SMS, run phone verification, manage Canadian numbers, and handle CASL compliance through natural language.

37 tools, 4 resources, and 5 guided prompts, all backed by the live HonkIO REST API.

Requirements

  • Node.js 20 or newer
  • A HonkIO account and API key

1. Get an API key

Sign in at https://honkio.ca/dashboard/keys and copy a key:

PrefixModeBehaviour
mk_test_…TestMessages are simulated as delivered. No SMS is sent and nothing is charged.
mk_live_…LiveReal SMS, real Canadian numbers, real charges against your balance.

Start with a test key. Every tool works in test mode, so an agent can exercise the whole surface for free. Switch to a live key only when you want real delivery.

Live sending also requires that the account owner has completed phone verification, and that you have provisioned at least one number to send from.

2. Install

The package is not on npm yet, so npx @honkio/mcp will not work. Until it is published, install from source. It takes about thirty seconds.

git clone https://github.com/jeffcaldwellca/honkio
cd honkio/mcp
npm install
npm run build

That produces dist/index.js, which is the server entry point. Note its absolute path — you will need it in the next step:

pwd    # e.g. /Users/you/code/honkio/mcp

3. Connect your AI tool

In every example below, replace /ABSOLUTE/PATH/TO/honkio/mcp with the path from pwd, and put your own key in HONKIO_API_KEY.

Claude Code

From inside your project:

claude mcp add honkio \
  --env HONKIO_API_KEY=mk_test_YOUR_KEY_HERE \
  -- node /ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js

Or commit a .mcp.json at the project root to share it with your team (keep the real key out of git — see Keeping your key out of git):

{
  "mcpServers": {
    "honkio": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
      "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "honkio": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
      "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
    }
  }
}

Restart Claude Desktop afterwards.

Cursor

Edit .cursor/mcp.json in your project, or ~/.cursor/mcp.json globally:

{
  "mcpServers": {
    "honkio": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
      "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
    }
  }
}

VS Code (GitHub Copilot)

Edit .vscode/mcp.json in your workspace:

{
  "servers": {
    "honkio": {
      "type": "stdio",
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/honkio/mcp/dist/index.js"],
      "env": { "HONKIO_API_KEY": "mk_test_YOUR_KEY_HERE" }
    }
  }
}

4. Confirm it works

Ask your agent:

List my HonkIO phone numbers.
  • A list (or an empty list) means you are connected.
  • Error [UNAUTHORIZED]: Invalid or missing API key. means the key is wrong, missing, or has been revoked.

To check the server outside any AI tool:

HONKIO_API_KEY=mk_test_YOUR_KEY node dist/index.js

It should start and wait silently on stdin — an MCP server speaks JSON-RPC over stdio, so no output is the healthy state. Press Ctrl-C to exit. If it exits immediately with an error, the message tells you what is wrong.

Environment variables

VariableRequiredDescription
HONKIO_API_KEYYesYour API key (mk_live_… or mk_test_…). The server refuses to start without it.
HONKIO_API_URLNoOverride the API base URL. Defaults to https://api.honkio.ca. Only needed for self-hosting or local development.

Keeping your key out of git

.mcp.json and .vscode/mcp.json are usually committed. An API key pasted into one is a live credential in your repository history. Either keep those files untracked, or reference an environment variable your shell already exports and add the file to .gitignore.

If a key does leak, revoke it immediately at https://honkio.ca/dashboard/keys — a revoked key stops working at once.

Tools

Messages

ToolDescription
send_smsSend an SMS from one of your numbers. Enforces CASL consent unless overridden.
list_messagesList messages, filterable by number, status, direction and date.
get_messageFull detail for one message, including delivery status and cost.

Phone verification (OTP)

ToolDescription
start_verificationSend a one-time code to a phone number.
check_verificationSubmit a code to verify it.
get_verificationStatus of a single verification attempt.
list_verificationsList verification attempts.

Verification is billed per message plus a per-verification surcharge. In test mode the code is always 000000, padded to the requested length.

Phone numbers

ToolDescription
search_phone_numbersSearch available Canadian numbers by area code.
provision_phone_numberPurchase a number. Charges an upfront fee plus monthly rent.
list_phone_numbersList the numbers on your account.
get_phone_numberDetail for one number.
release_phone_numberRelease a number and stop its recurring rent.

CASL compliance

ToolDescription
record_consentRecord express or implied consent.
list_consentsList consent records.
check_consentCheck whether a number has valid consent.
revoke_consentRevoke consent for a number.
record_opt_outRecord an opt-out manually.
list_opt_outsList opt-out records.

DNCL — not available yet

ToolDescription
check_dnclReturns 501 DNCL_COMING_SOON.
batch_check_dnclReturns 501 DNCL_COMING_SOON.

CRTC Do Not Call List checking is not live. dncl_exemptions on send_sms is accepted but not yet acted upon.

Webhooks

ToolDescription
create_webhookRegister an endpoint for delivery receipts and inbound messages.
list_webhooksList registered webhooks.
update_webhookChange a webhook's URL or subscribed events.
delete_webhookRemove a webhook.
list_webhook_deliveriesDelivery attempts for a webhook, for debugging.
list_webhook_dead_lettersDeliveries that exhausted their retries.
replay_webhook_dead_letterRetry a dead-lettered delivery.
discard_webhook_dead_letterDrop a dead-lettered delivery.
reactivate_webhookRe-enable a webhook disabled by repeated failures.

Account and keys

ToolDescription
whoamiIdentify the account the API key belongs to — id, name, balance, status.
get_accountAccount detail and credit balance.
update_accountUpdate the account name.
get_usageUsage for a billing period.
create_api_keyIssue a new live or test key.
rotate_api_keyReplace a key, invalidating the old value.
revoke_api_keyRevoke a key immediately.

account_id is optional on all of these. Omit it and the server resolves your account from the API key, so "show my usage for this month" just works. Pass one explicitly only if you are deliberately targeting a different account. Use whoami if you want to see the id itself.

PIPEDA

ToolDescription
request_erasureExecute a right-to-erasure request for a phone number.

Resources

Readable by MCP clients that support resources:

URIContents
honkio://messages20 most recent messages
honkio://phone-numbersYour provisioned numbers
honkio://consentsActive CASL consent records
honkio://webhooksRegistered webhook endpoints

Prompts

Guided multi-step workflows:

PromptWhat it walks through
send_compliant_smsCheck consent, then send
provision_canadian_numberSearch, then purchase
setup_webhooksRegister event notifications
compliance_auditFull compliance check on a number
handle_erasure_requestProcess a PIPEDA erasure request

Things to try

Find me an available Toronto (416) number and tell me what it costs before buying anything.

Check whether +15145559876 has valid CASL consent, and if it does, text them that
their appointment is confirmed for 2pm tomorrow.

Start a phone verification for +16045551111, then check the code 123456 against it.

Set up a webhook at https://myapp.ca/webhooks/honkio for delivery receipts and
inbound messages.

Show me any webhook deliveries that failed and ended up in the dead-letter queue.

Spending money by accident

Two tools move real money on a live key:

  • provision_phone_number charges an upfront fee and starts monthly rent. Rent keeps accruing until you call release_phone_number.
  • send_sms and start_verification charge per segment against your balance.

Agents act on instructions that can be vaguer than you intended. If you are exploring, use a test key — the tools behave the same and charge nothing.

Canadian compliance

  • CASL — commercial messages need consent on record. Use record_consent before sending; send_sms enforces it unless you pass skip_consent_check. Express consent does not expire; implied consent expires two years after the last transaction.
  • DNCL — CRTC Do Not Call List checking is not available yet and is not enforced.
  • PIPEDA — customer data is stored in Canada (ca-central-1). Request processing currently runs on infrastructure outside Canada, so data crosses the border in transit; see the privacy policy for the full disclosure. Use request_erasure for right-to-erasure requests.

Troubleshooting

SymptomCause and fix
Error [UNAUTHORIZED]Key is wrong, revoked, or HONKIO_API_KEY never reached the server. Check the env block in your config.
Tools do not appear in the agentThe client did not start the server. Confirm the path in args is absolute and that dist/index.js exists — run npm run build if it does not. Restart the client.
Cannot find module …/dist/index.jsYou skipped npm run build, or the path is wrong.
Error [PAYMENT_REQUIRED]The account needs an initial top-up before live use.
Error [ACCOUNT_NOT_VERIFIED]Live sending needs the account owner's phone verified. Do it in the dashboard.
501 DNCL_COMING_SOONExpected. DNCL checking is not live yet.
Server starts then exits silentlyThat is normal when nothing is attached to stdin. It only means something is wrong if it prints an error.

Development

npm run dev        # run from source with tsx, no build step
npm run typecheck  # types only
npm run build      # compile to dist/

Point the server at a local API with HONKIO_API_URL=http://localhost:3000.

License

MIT

FAQs

Package last updated on 15 Aug 2026

Related posts