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

@puul/mcp-server

v1.1.0

Published

MCP server for the Puul Partner API — let AI agents interact with prediction markets and lottery pools

Readme

@puul/mcp-server

MCP (Model Context Protocol) server for the Puul Partner API. Enables AI agents to interact with prediction markets and lottery pools.

Quick Start

Claude Desktop / Cursor (Standalone)

Add to your MCP config (claude_desktop_config.json or Cursor settings):

{
  "mcpServers": {
    "puul": {
      "command": "npx",
      "args": ["@puul/mcp-server"],
      "env": {
        "PUUL_CLIENT_ID": "pk_live_...",
        "PUUL_CLIENT_SECRET": "sk_live_..."
      }
    }
  }
}

Hosted (SSE) — Zero Install

Connect any MCP-compatible client to our hosted endpoint:

{
  "mcpServers": {
    "puul": {
      "url": "https://mcp.joinpuul.com/sse"
    }
  }
}

Note: The hosted endpoint uses Puul's demo credentials. For production use, run the standalone server with your own partner keys.

Self-Hosted (SSE)

PUUL_CLIENT_ID=pk_live_... PUUL_CLIENT_SECRET=sk_live_... npm run start:sse

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | PUUL_CLIENT_ID | ✅ | Partner API client ID | | PUUL_CLIENT_SECRET | ✅ | Partner API client secret | | PUUL_BASE_URL | ❌ | API base URL (defaults to production) | | PORT | ❌ | SSE server port (default: 3001) |

Available Tools

Authentication

| Tool | Description | |------|-------------| | puul_get_access_token | Verify authentication is working |

Markets

| Tool | Description | |------|-------------| | puul_list_markets | Browse live prediction markets (filter by country) |

User Linking

| Tool | Description | |------|-------------| | puul_link_user | Link an external user to Puul (required before predictions/lottery) |

Predictions

| Tool | Description | |------|-------------| | puul_get_quote | Get binding quote with slippage protection (10s expiry) | | puul_place_prediction | Place a prediction on a market outcome | | puul_get_prediction | Check prediction status and returns | | puul_list_predictions | List prediction history (filter by status) |

Lottery

| Tool | Description | |------|-------------| | puul_list_lottery_pools | Browse lottery pools (filter by status/frequency) | | puul_get_lottery_pool | Get pool details and winning numbers | | puul_buy_lottery_ticket | Purchase lottery tickets for a linked user | | puul_list_lottery_entries | List ticket purchases | | puul_get_draw_results | Get draw results and winnings |

Wallet

| Tool | Description | |------|-------------| | puul_get_balance | Check omnibus wallet balance | | puul_get_deposit_account | Get deposit bank account details | | puul_get_withdrawal_fees | Preview withdrawal fees and receive amount |

Resources

| URI | Description | |-----|-------------| | puul://markets/live | Live snapshot of all open markets | | puul://lottery/pools/open | Currently open lottery pools |

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally (stdio)
PUUL_CLIENT_ID=... PUUL_CLIENT_SECRET=... npm start

# Run locally (SSE)
PUUL_CLIENT_ID=... PUUL_CLIENT_SECRET=... npm run start:sse

Programmatic Usage

import { createPuulMcpServer } from '@puul/mcp-server';
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';

const server = createPuulMcpServer({
    clientId: 'pk_live_...',
    clientSecret: 'sk_live_...',
});

await server.connect(new StdioServerTransport());

License

MIT — Ivorychain Technologies Inc.