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

@cantax-fyi/tax-mcp

v0.1.15

Published

MCP (Model Context Protocol) server for Can Tax (https://cantax.fyi)

Downloads

1,916

Readme

@cantax-fyi/tax-mcp

MCP (Model Context Protocol) server for Can Tax. Lets Claude Code and other MCP-compatible AI assistants read and write your Canadian tax data directly via natural language.

Tools (26 total)

Tax Years

| Tool | Description | |------|-------------| | list_tax_years | List all tax years, newest first | | create_tax_year | Create a new tax year (2000–2100) | | delete_tax_year | Delete a tax year and all its data (income, expenses, investments, receipts, rentals) |

Business Income

| Tool | Description | |------|-------------| | list_income | List income entries, optionally filter by sourceType (RENTAL, INTERNET_BUSINESS, STRIPE) | | create_income | Add a single income entry | | delete_income | Delete a single income entry by ID | | bulk_import_income | Batch-import multiple income entries |

Business Expenses

| Tool | Description | |------|-------------| | list_expenses | List expense entries, optionally filter by category | | create_expense | Add a single expense entry | | delete_expense | Delete a single expense entry by ID | | bulk_import_expenses | Batch-import multiple expense entries |

Investments

| Tool | Description | |------|-------------| | list_investments | List RRSP/TFSA contributions, optionally filter by accountType | | create_investment | Record a new RRSP or TFSA contribution | | delete_investment | Delete a single investment contribution by ID |

Rental Properties

| Tool | Description | |------|-------------| | list_rental_properties | List all rental properties for a tax year | | create_rental_property | Add a new rental property | | delete_rental_property | Delete a rental property and all its income/expenses | | list_rental_income | List income entries for a property | | add_rental_income | Record rental income for a property | | delete_rental_income | Delete a single rental income entry | | list_rental_expenses | List expenses for a property, optionally filter by category | | add_rental_expense | Record a rental expense for a property | | delete_rental_expense | Delete a single rental expense entry |

Receipts

| Tool | Description | |------|-------------| | list_receipts | List receipts, optionally filter by status (PENDING, EXTRACTED, VERIFIED, etc.) | | get_receipt | Get a single receipt by ID |

Reports

| Tool | Description | |------|-------------| | get_tax_summary | Full tax summary: income, expenses, rental, investments, estimated federal tax |

Prerequisites

Setup

1. Generate an API key

Log in → Settings → MCP API Keys → Generate key. Copy the key — it's shown only once.

2. Configure your MCP client

Option A — Streamable HTTP (recommended)

Supported by Claude Code and any client with native streamable-http support. No local install required.

{
  "mcpServers": {
    "cantax-fyi": {
      "type": "streamable-http",
      "url": "https://tax-mcp-371544889573.us-central1.run.app/mcp",
      "headers": {
        "x-api-key": "<YOUR_MCP_API_KEY>"
      }
    }
  }
}

Option B — stdio proxy via npx (fallback)

For clients that only support command-based (stdio) MCP servers. Requires Node.js 22+. The @cantax-fyi/tax-mcp package acts as a local stdio↔HTTP proxy that forwards requests to the same Cloud Run server.

Pass the key via --apiKey flag or CANTAX_API_KEY environment variable (recommended — keeps the key out of config files):

{
  "mcpServers": {
    "cantax-fyi": {
      "command": "npx",
      "args": ["@cantax-fyi/tax-mcp"],
      "env": {
        "CANTAX_API_KEY": "<YOUR_MCP_API_KEY>"
      }
    }
  }
}

Or with the flag directly:

{
  "mcpServers": {
    "cantax-fyi": {
      "command": "npx",
      "args": ["@cantax-fyi/tax-mcp", "--apiKey", "<YOUR_MCP_API_KEY>"]
    }
  }
}

Note: If Claude Desktop picks up an older Node.js version, use "command": "/bin/bash" with "args": ["-lc", "npx @cantax-fyi/tax-mcp"] so your shell profile (and nvm) loads the correct version.

3. Restart your MCP client

Run /mcp in Claude Code — you should see cantax-fyi listed with 26 tools.

Revoking a key

Settings → MCP API Keys → Revoke next to the key. The server immediately rejects that key.

Usage Examples

Once connected, talk to Claude naturally:

Add a $1,200 USD Stripe income entry for 2024-03-15, exchange rate 1.36

Import these expenses for tax year <id>:
- GCP hosting, $45.00 CAD, 2024-01-01
- Phone, $80.00 CAD, 2024-01-05

Show me a tax summary for 2024

List all PENDING receipts for tax year <id>

Supported Enums

Income source types: RENTAL INTERNET_BUSINESS STRIPE

Expense categories: EMAIL GCP NAMECHEAP PHONE INTERNET ADS HOSTING SOFTWARE OTHER

Rental expense categories: WATER PROPERTY_TAX INSURANCE MORTGAGE LAWYER RENOVATION HYDRO OTHER

Investment account types: RRSP TFSA

Receipt statuses: PENDING PROCESSING EXTRACTED VERIFIED FAILED

Currencies: CAD USD