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

@liveauth-labs/mcp-server

v0.1.0

Published

MCP server for LiveAuth - PoW and Lightning authentication for AI agents

Downloads

109

Readme

LiveAuth MCP Server

Model Context Protocol (MCP) server for LiveAuth authentication. Enables AI agents to authenticate using proof-of-work or Lightning Network payments.

What is This?

This MCP server allows AI agents (Claude, GPT, AutoGPT, etc.) to:

  • Request proof-of-work challenges
  • Solve challenges to prove computational work
  • Fallback to Lightning Network payments when needed
  • Receive JWT tokens for authenticated API access

Installation

npm install -g @liveauth/mcp-server

Or use directly with npx:

npx @liveauth/mcp-server

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "liveauth": {
      "command": "npx",
      "args": ["-y", "@liveauth/mcp-server"],
      "env": {
        "LIVEAUTH_API_BASE": "https://api.liveauth.app"
      }
    }
  }
}

Other MCP Clients

The server communicates over stdio. Start it with:

liveauth-mcp

Available Tools

liveauth_get_challenge

Get a proof-of-work challenge for authentication.

Parameters:

  • projectPublicKey (string): Your LiveAuth project public key (starts with la_pk_)

Returns: Challenge object with difficulty, target, expiration, and signature

Example:

{
  projectPublicKey: "la_pk_abc123...",
  challengeHex: "a1b2c3...",
  targetHex: "0000ffff...",
  difficultyBits: 18,
  expiresAtUnix: 1234567890,
  sig: "signature..."
}

liveauth_verify_pow

Verify a solved proof-of-work challenge and receive JWT token.

Parameters:

  • projectPublicKey (string): Your project public key
  • challengeHex (string): Challenge from get_challenge
  • nonce (number): Solution nonce
  • hashHex (string): Resulting hash
  • expiresAtUnix (number): Expiration from challenge
  • difficultyBits (number): Difficulty from challenge
  • sig (string): Signature from challenge

Returns: JWT authentication token or fallback instruction

liveauth_start_lightning

Start Lightning Network payment authentication as fallback.

Parameters:

  • projectPublicKey (string): Your project public key

Returns: Lightning invoice and session details

Usage Example

An AI agent authenticating to a LiveAuth-protected API would:

  1. Call liveauth_get_challenge with the project's public key
  2. Solve the PoW challenge (compute nonce that produces hash below target)
  3. Call liveauth_verify_pow with the solution
  4. Receive JWT token
  5. Use token in Authorization: Bearer <token> header for API requests

If PoW fails or isn't feasible, the agent can:

  1. Call liveauth_start_lightning to get a payment invoice
  2. Pay the Lightning invoice
  3. Poll for payment confirmation
  4. Receive JWT token

Why LiveAuth?

For API Providers:

  • Protect endpoints from abuse without CAPTCHA
  • Monetize AI agent access with micropayments
  • No user friction (agents handle authentication)

For AI Agents:

  • Permissionless access (no account signup)
  • Cryptographically proven authentication
  • Choose between compute (PoW) or payment (Lightning)

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally
node dist/index.js

Resources

License

MIT