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

portfoliq-mcp

v0.4.0

Published

Model Context Protocol server for PortfolIQ — lets ChatGPT, Claude Desktop, and other MCP-compatible AI clients access a user's portfolio through their personal API key.

Downloads

503

Readme

portfoliq-mcp

Model Context Protocol server that lets any MCP-compatible AI client (Claude Desktop, ChatGPT with MCP, Codex, etc.) access a PortfolIQ account through a personal API key.

Setup

  1. Sign in to https://portfoliq.app, open Account → API access, and click New key. Give it a name (e.g. Claude Desktop), pick the scopes you want (read is always included; check write:transactions, write:plans, or write:portfolios only if you want the agent to make those changes for you), and copy the token. It is shown only once.

  2. Install the server (from the repo root):

    cd packages/portfoliq-mcp
    npm install
  3. Add it to your MCP client config.

    Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

    {
      "mcpServers": {
        "portfoliq": {
          "command": "node",
          "args": ["/absolute/path/to/dashboard/packages/portfoliq-mcp/src/index.js"],
          "env": {
            "PORTFOLIQ_API_KEY": "piq_live_your_token_here",
            "PORTFOLIQ_API_URL": "https://portfoliq.app"
          }
        }
      }
    }

Tools exposed

| Tool | Scope | Description | | --- | --- | --- | | get_summary | read | Portfolio totals + day change | | get_holdings | read | Per-ticker holdings + market values | | list_portfolios | read | Portfolios (id, name, currency) | | create_portfolio | write:portfolios | Create a USD or ILS portfolio | | update_portfolio | write:portfolios | Update portfolio settings | | reorder_portfolios | write:portfolios | Set the complete portfolio order | | delete_portfolio | write:portfolios | Delete a portfolio and its transactions | | list_transactions | read | Paginated transaction history | | get_analytics | read | Realised-P/L analytics with date range | | get_portfolio_metrics | read | YTD, annual-return, and beta metrics | | get_trading_calendar | read | Monthly realised P/L and trading activity | | get_pl_history | read | Daily P/L series for the graph | | list_strategies | read | List owned strategies and metrics | | get_strategy_trades | read | Transactions assigned to an owned strategy | | list_marketplace_strategies | read | List public marketplace strategies | | list_position_plans | read | Position plans | | get_position_plan_insights | read | Review attention, final-review tasks, and historical lessons | | list_position_plan_reviews | read | Immutable review history for a plan | | add_transaction | write:transactions | Record a buy or sell | | update_transaction | write:transactions | Correct a transaction | | delete_transaction | write:transactions | Delete a transaction | | create_strategy | write:plans | Create an owned strategy | | update_strategy | write:plans | Update an owned strategy | | delete_strategy | write:plans | Delete and unlink an owned strategy | | import_marketplace_strategy | write:plans | Import a public strategy as a private copy | | create_position_plan | write:plans | Create a plan for a portfolio position | | update_position_plan | write:plans | Update current plan fields without creating a review | | assign_strategy_to_position | write:plans | Assign or unassign a strategy on a plan | | review_position_plan | write:plans | Append an immutable deliberate review | | delete_position_plan | write:plans | Delete a plan and its review history |

Environment

| Variable | Required | Default | Purpose | | --- | --- | --- | --- | | PORTFOLIQ_API_KEY | yes | — | Personal API key from Account → API access | | PORTFOLIQ_API_URL | no | https://portfoliq.app | For self-hosted or local instances |

Rate limit

Personal keys are limited to 120 requests per minute on the server side. A 429 response includes Retry-After in seconds.

Security

  • The token is stored only in your MCP client config — never send it to anyone else.
  • Revoke a key from Account → API access at any time; it stops working within ~30 seconds.
  • Keys never grant access to account settings, admin routes, sign-in methods, or notifications.