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

@insiderfinance/totalfinance-mcp

v0.1.9

Published

TotalFinance MCP server for AI agents. Read-only by default; explicit capabilities for paper-trading workflows.

Readme

@insiderfinance/totalfinance-mcp

TotalFinance MCP server: exposes the TotalFinance engine to AI agents via the Model Context Protocol. Read-only by default.

The TotalFinance calculations as tools for AI agents: option pricing and Greeks, strategies, volatility, technical indicators, portfolio P&L, risk, bonds and backtests. The server runs on your machine over stdio and is read-only by default. Your agent supplies the market inputs; every result carries its assumptions and diagnostics, and any warning (such as a volatility of 22 that was probably meant as 0.22) is repeated in the text the model reads.

Install

Requires Node 22.13 or later. There is nothing to install globally; check that it runs:

npx -y @insiderfinance/[email protected] doctor

Connect your agent

The agents page has the same setups, plus one-click installs where a client supports them.

Claude Code

Run in your terminal:

claude mcp add totalfinance -- npx -y @insiderfinance/[email protected]

Claude Desktop

Add to Settings → Developer → Edit Config (claude_desktop_config.json):

{
  "mcpServers": {
    "totalfinance": {
      "command": "npx",
      "args": [
        "-y",
        "@insiderfinance/[email protected]"
      ]
    }
  }
}

Restart Claude Desktop to load the server.

Cursor

Add to your Cursor MCP settings (~/.cursor/mcp.json):

{
  "mcpServers": {
    "totalfinance": {
      "command": "npx",
      "args": [
        "-y",
        "@insiderfinance/[email protected]"
      ]
    }
  }
}

VS Code

Add to your workspace root (.mcp.json):

{
  "mcpServers": {
    "totalfinance": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@insiderfinance/[email protected]"
      ],
      "tools": [
        "*"
      ]
    }
  }
}

To use it in every workspace, put the same entry in ~/.copilot/mcp-config.json.

Codex

Run in your terminal:

codex mcp add totalfinance -- npx -y @insiderfinance/[email protected]

Or add to your Codex config (~/.codex/config.toml):

[mcp_servers.totalfinance]
command = "npx"
args = ["-y", "@insiderfinance/[email protected]"]

Choose the tools

Without options the server lists the 23 default tools. A profile picks a focused set; profiles never grant permissions:

| Profile | Tools | | ------- | ----: | | default | 23 | | options | 9 | | research | 4 | | strategies | 11 | | portfolio | 10 | | valuation | 1 | | backtesting | 8 | | scenarios | 3 | | full | 42 |

npx -y @insiderfinance/[email protected] --profile options
npx -y @insiderfinance/[email protected] doctor --profile full

Some clients limit how many tools they load at once, so prefer a focused profile to full. doctor reports the Node version check, the tools a configuration exposes and why any are excluded, the attached store and the input budgets. Tool lists and resource lists are paged: follow nextCursor.

Saved reports, background jobs and paper trading

These are off unless you turn them on:

  • --store /absolute/path/to/folder saves large results as reports the agent can read back as resources. --store-read-only only reads an existing folder.
  • --jobs (with a writable --store) runs long calculations such as backtests in a background worker. The agent starts one with totalfinance_job_submit, then checks totalfinance_job_status, reads totalfinance_job_result or stops it with totalfinance_job_cancel.
  • --capability <name> (repeatable) allows write tools. --capability trade:paper adds paper-trading tools, which simulate orders locally and never reach a broker. The capabilities you pass replace the defaults (portfolio:read, analytics:run, trade:propose), so list every one you need.
npx -y @insiderfinance/[email protected] --profile backtesting --store /absolute/path/to/folder --jobs
npx -y @insiderfinance/[email protected] --profile full --store /absolute/path/to/folder --capability portfolio:read --capability analytics:run --capability trade:propose --capability trade:paper

The MCP guide is the full reference: every tool, resource and prompt, the result envelope, errors, budgets and the job lifecycle.

Use it as a library

Embed the server or its tool definitions in your own host:

import { defaultTools } from '@insiderfinance/totalfinance-mcp';
const toolNames = defaultTools().map((t) => t.name); // the read-only compute tools

This example runs in CI (docs/examples/readme-snippets.test.ts) — it cannot rot.

API

@insiderfinance/totalfinance-mcp exposes 24 runtime exports (28 including types). See the generated etc/mcp.api.md for the full surface.

License

Apache-2.0. Part of the TotalFinance monorepo. Analytics only — not investment advice.