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

@ferdhika31/moneylover-mcp

v0.0.3

Published

MCP server wrapping the Money Lover REST API

Readme

Money Lover MCP Server

Node.js implementation of a Model Context Protocol (MCP) server that wraps the unofficial Money Lover REST API. The server exposes authentication and wallet management capabilities as MCP tools, enabling AI assistants or compatible MCP clients to login, inspect wallets, query transactions, and create new transactions.

Features

  • Login tool returns Money Lover JWT tokens via the public OAuth flow.
  • Tools for retrieving user info, wallets, categories, and transactions.
  • Tool for adding new transactions, mirroring the behaviour of the Go reference client.
  • Stdio-based server entrypoint that can be consumed by MCP-aware clients.
  • Node-friendly REST wrapper for direct programmatic usage.

Prerequisites

  • Node.js 22 or newer.
  • Money Lover account credentials for authentic API access.

Installation

npm install

Usage

Launch the MCP server over stdio (suitable for tools such as Claude Code, Cursor, or other MCP hosts):

npm start

MCP Client Configuration

Configure an MCP-compliant client (for example, Claude desktop or Cursor) to invoke the published package via npx and supply credentials through environment variables:

{
  "mcpServers": {
    "mcp-moneylover": {
      "command": "npx",
      "args": ["@ferdhika31/moneylover-mcp@latest"],
      "env": {
        "EMAIL": "[email protected]",
        "PASSWORD": "kata-sandi-anda"
      }
    }
  }
}

The server automatically logs in with the provided credentials and refreshes the session token when required. Supplying a token argument to tools overrides the environment-based authentication.

Tokens resolved through the login tool or environment credentials are cached per-email under ~/.moneylover-mcp/. Cached tokens are reused on subsequent runs and refreshed automatically when the API reports they have expired.

The server registers the following tools:

| Tool | Description | Required Arguments | | --- | --- | --- | | login | Retrieves a JWT token using email & password. | email, password | | get_user_info | Returns profile information tied to the token. | token | | get_wallets | Lists wallets available to the authenticated user. | token | | get_categories | Lists categories for a wallet. | token, walletId | | get_transactions | Retrieves transactions in a date range. | token, walletId, startDate, endDate | | add_transaction | Creates a new transaction. | token, walletId, categoryId, amount, date (YYYY-MM-DD); optional note, with |

Tokens are not persisted; provide them explicitly when invoking tools other than login.

Library Usage

The underlying REST wrapper is available for reuse:

import { MoneyloverClient } from '@ferdhika31/moneylover-mcp';

const token = await MoneyloverClient.getToken(email, password);
const client = new MoneyloverClient(token);
const wallets = await client.getWallets();

Testing

Run the automated test suite:

npm test

Tests rely on mocked fetch responses and do not hit the live Money Lover service.

Security Notes

  • Never commit real credentials or tokens.
  • The project intentionally avoids persisting tokens; MCP clients should store secrets securely on their side.
  • Cached tokens are stored locally with file permissions restricted to the current user. Delete the ~/.moneylover-mcp/ directory if you need to revoke stored sessions.