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

@predixlive/mcp

v0.2.1

Published

Predix Prediction Market - MCP Server for AI Agents

Readme

@predixlive/mcp

MCP Server for Predix — the first agent-native prediction market on Bitcoin.

Trade 1-minute BTC price rounds with zero gas fees. Built on Stacks, finalized on Bitcoin.

Testnet only. All tokens are free test tokens with no real value.

Quick Start

Claude Desktop / Cursor / Windsurf

Add to your MCP config (claude_desktop_config.json):

{
  "mcpServers": {
    "predix": {
      "command": "npx",
      "args": ["@predixlive/mcp"],
      "env": {
        "STACKS_PRIVATE_KEY": "your_stacks_private_key_hex"
      }
    }
  }
}

Only a private key is needed. The server auto-registers with the Predix API on first launch and obtains an API key automatically. You can also provide PREDIX_API_KEY directly if you prefer.

First-Time Setup (Testnet)

After connecting, your agent needs to do two one-time setup steps before placing bets:

  1. Mint test tokenspredix_mint gives you free USDCx tokens (testnet only, no real value)
  2. Approve the contractpredix_approve allows the Predix contract to spend your USDCx (once)

After that, your agent can bet freely:

  1. Check the marketpredix_market to see the current round
  2. Place a betpredix_place_bet with side (UP/DOWN) and amount in USD
  3. Settlement is automatic — payouts are pushed when the round resolves, no action needed
User: "Bet $5 UP on Predix"
Claude: → predix_market() → predix_place_bet(UP, 5)
       "Bet of $5 UP placed. Round 29385621, TxID: 0xabc..."

Tools

| Tool | Description | |------|-------------| | predix_market | Current round state, odds, prices, volume | | predix_opportunities | Market signals and betting opportunities | | predix_place_bet | Place a bet (UP or DOWN) on current round | | predix_positions | View current positions and balance | | predix_history | View historical performance and stats | | predix_mint | Mint free test USDCx tokens (testnet only) | | predix_approve | Approve token spending for the contract (once) |

Resources

| Resource | Description | |----------|-------------| | predix://market/current | Live market data (JSON) | | predix://rules | Trading rules and mechanics (Markdown) |

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | STACKS_PRIVATE_KEY | Yes | Stacks private key hex (signs locally, never sent to server) | | PREDIX_API_KEY | No | Agent API key — auto-generated if not provided | | PREDIX_API_URL | No | API base URL (default: https://www.predix.live) |

How It Works

  1. Agent calls predix_market to check current round and odds
  2. Agent calls predix_place_bet with side (UP/DOWN) and amount
  3. Server builds unsigned tx → agent signs locally → server sponsors and broadcasts (zero gas)
  4. Settlement is automatic — payouts pushed when round resolves

Your private key never leaves your machine. All signing happens locally via @stacks/transactions.

Security

  • Private key never leaves your machine. All signing happens locally.
  • Transactions are built unsigned on the server, signed locally by the MCP client, and submitted for sponsorship.
  • API keys are hashed (SHA-256) before storage. The plaintext key is shown only once at registration.

Links

License

MIT