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

@ktmcp-cli/pocketsmith

v1.0.0

Published

Production-ready CLI for PocketSmith personal finance forecasting API

Downloads

86

Readme

"Six months ago, everyone was talking about MCPs. And I was like, screw MCPs. Every MCP would be better as a CLI."

Peter Steinberger, Founder of OpenClaw Watch on YouTube (~2:39:00) | Lex Fridman Podcast #491

PocketSmith CLI

A production-ready command-line interface for the PocketSmith personal finance forecasting API. Manage accounts, transactions, budgets, categories, and financial forecasts directly from your terminal.

Disclaimer: This is an unofficial CLI tool and is not affiliated with, endorsed by, or supported by PocketSmith Limited.

Features

  • User — Get current user info and profile
  • Accounts — List and inspect all financial accounts
  • Transactions — List, get, and create transactions with filtering
  • Categories — Browse expense/income categories
  • Budgets — View budget analysis and tracking
  • Savings — View savings goals and balances
  • Forecast — Access financial forecast data
  • JSON output — All commands support --json for scripting and piping
  • Colorized output — Clean, readable terminal output with chalk

Why CLI > MCP

MCP servers are complex, stateful, and require a running server process. A CLI is:

  • Simpler — Just a binary you call directly
  • Composable — Pipe output to jq, grep, awk, and other tools
  • Scriptable — Use in shell scripts, CI/CD pipelines, cron jobs
  • Debuggable — See exactly what's happening with --json flag
  • AI-friendly — AI agents can call CLIs just as easily as MCPs, with less overhead

Installation

npm install -g @ktmcp-cli/pocketsmith

Authentication Setup

PocketSmith uses API key authentication. Get your key from your PocketSmith account settings.

1. Get your API key

  1. Log in to pocketsmith.com
  2. Go to Account Settings > Manage API Keys
  3. Create a new Developer Key

2. Configure the CLI

pocketsmith config set --api-key YOUR_API_KEY

3. Verify

pocketsmith user me

Commands

Configuration

# Set API key
pocketsmith config set --api-key <key>

# Show current config
pocketsmith config show

User

# Get current user info
pocketsmith user me
pocketsmith user me --json

Accounts

# List all accounts
pocketsmith accounts list

# Get account details
pocketsmith accounts get <account-id>

Transactions

# List transactions for an account
pocketsmith transactions list <account-id>

# Filter by date
pocketsmith transactions list <account-id> --start-date 2024-01-01 --end-date 2024-01-31

# Search transactions
pocketsmith transactions list <account-id> --search "grocery"

# Get a specific transaction
pocketsmith transactions get <transaction-id>

# Create a transaction
pocketsmith transactions create <account-id> \
  --date 2024-01-15 \
  --amount -42.50 \
  --payee "Whole Foods"

Categories

# List all categories
pocketsmith categories list

Budgets

# View budget analysis
pocketsmith budgets list

Savings

# View savings goals
pocketsmith savings list

Forecast

# Show financial forecast
pocketsmith forecast show

JSON Output

All commands support --json for machine-readable output:

# Get all accounts as JSON
pocketsmith accounts list --json

# Pipe to jq for filtering
pocketsmith accounts list --json | jq '.[] | select(.type == "bank") | {id: .id, name: .title, balance: .current_balance}'

# Get transactions as JSON
pocketsmith transactions list <account-id> --json | jq '.[] | select(.amount < 0) | {date: .date, payee: .payee, amount: .amount}'

Contributing

Issues and pull requests are welcome at github.com/ktmcp-cli/pocketsmith.

License

MIT — see LICENSE for details.


Part of the KTMCP CLI project — replacing MCPs with simple, composable CLIs.