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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mcp-money

v0.2.2

Published

MCP tool for NDK money operations with mint info caching

Readme

MCP Money

MCP Money

An MCP (Model Context Protocol) money implementation for Nostr using NDK (Nostr Development Kit) with Cashu ecash functionality.

Features

  • Cashu Wallet Integration: Full support for Cashu ecash mints and tokens
  • Lightning Network: Deposit via Lightning invoices and pay Lightning invoices
  • Nostr Zaps: Send zaps to users using npub or NIP-05 identifiers
  • Multi-mint Support: Manage multiple Cashu mints simultaneously
  • Persistent Storage: Wallet state saved to local file with mint info caching
  • MCP Server: Expose wallet functionality through Model Context Protocol
  • CLI Interface: Direct command-line usage for all wallet operations

Installation

npm install mcp-money

Usage

MCP Server Mode (Default)

Run without arguments to start the MCP server:

npx mcp-money

CLI Mode

Use specific commands for direct wallet operations:

# Get total balance
npx mcp-money get_balance

# Get balance per mint
npx mcp-money get_mint_balances

# Create deposit invoice
npx mcp-money deposit 1000 https://testnut.cashu.space

# Pay lightning invoice
npx mcp-money pay lnbc1...

# Send a zap
npx mcp-money zap npub1... 100 "Great post!"

# Add a new mint
npx mcp-money add_mint https://mint.example.com

Authentication

The wallet supports multiple ways to provide your Nostr private key:

  1. Command line: --nsec nsec1...
  2. Environment variable: NSEC=nsec1...
  3. Config file: Automatically saved to .wallet.json
  4. Auto-generate: Creates new key if none provided

MCP Tools

When running as an MCP server, the following tools are available:

  • get_balance: Get the total wallet balance
  • get_mint_balances: Get balance breakdown per mint
  • deposit: Create a deposit invoice for specified amount and mint
  • pay: Pay a Lightning invoice
  • zap: Send a zap to a user
  • add_mint: Add a mint to the wallet

Configuration

The wallet automatically creates a .wallet.json file to store:

  • Private key (nsec)
  • Public key (npub)
  • Configured relays
  • Configured mints
  • Cached mint information

Default Relays

  • wss://relay.damus.io
  • wss://nos.lol
  • wss://relay.nostr.band
  • wss://nostr.mutinywallet.com

Default Mints

  • https://mint.coinos.io
  • https://mint.lnvoltz.com
  • https://mint.chorus.community

Development

# Install dependencies
npm install

# Run in development mode
npm run dev

# Start wallet
npm start

Architecture

Built on top of:

  • NDK: Nostr Development Kit for Nostr protocol interactions
  • NDK Wallet: Cashu wallet implementation
  • Nostr Tools: Low-level Nostr utilities
  • Bun: Fast JavaScript runtime and package manager

Security

  • Private keys are stored locally in .wallet.json
  • Mint information is cached for performance
  • All Nostr communications use standard NIP protocols
  • Lightning payments require explicit confirmation

License

MIT

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions, please open an issue on the GitHub repository.