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

headless-oracle-mcp

v1.0.3

Published

Local MCP server for Headless Oracle — Ed25519-signed market-state receipts for 28 global exchanges

Downloads

222

Readme

headless-oracle-mcp

npm License: MIT

Local stdio MCP server for Headless Oracle — Ed25519-signed market-state receipts for 28 global exchanges.


What is this?

Headless Oracle is a cryptographically signed market-state oracle for AI agents. It tells you whether a stock exchange is OPEN, CLOSED, HALTED, or UNKNOWN — and proves it with an Ed25519 signature.

This package lets any MCP-compatible AI client (Claude Desktop, Cursor, Cline, Windsurf, Continue.dev) call Headless Oracle tools directly. It runs as a local stdio MCP server that proxies tool calls to the Headless Oracle remote endpoint.

Coverage: NYSE, NASDAQ, London, Tokyo, Paris, Hong Kong, Singapore, Sydney, Mumbai (BSE + NSE), Shanghai, Shenzhen, Seoul, Johannesburg, São Paulo, Zurich, Milan, Istanbul, Riyadh, Dubai, Auckland, Helsinki, Stockholm — plus CME, NYMEX, Cboe, Coinbase, and Binance (28 total).

Critical safety rule for agents: treat UNKNOWN and HALTED as CLOSED — halt all execution.


Install

npx headless-oracle-mcp

No install required. Requires Node.js 18+.


Client setup

Claude Desktop

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"]
    }
  }
}

With API key:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"],
      "env": {
        "HEADLESS_ORACLE_API_KEY": "your-key-here"
      }
    }
  }
}

Cursor

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"]
    }
  }
}

With API key:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"],
      "env": {
        "HEADLESS_ORACLE_API_KEY": "your-key-here"
      }
    }
  }
}

Cline

Edit cline_mcp_settings.json (Cline settings → MCP Servers):

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"]
    }
  }
}

With API key:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"],
      "env": {
        "HEADLESS_ORACLE_API_KEY": "your-key-here"
      }
    }
  }
}

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"]
    }
  }
}

With API key:

{
  "mcpServers": {
    "headless-oracle": {
      "command": "npx",
      "args": ["-y", "headless-oracle-mcp"],
      "env": {
        "HEADLESS_ORACLE_API_KEY": "your-key-here"
      }
    }
  }
}

Continue.dev

Edit ~/.continue/config.json:

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "headless-oracle-mcp"]
        }
      }
    ]
  }
}

With API key:

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "npx",
          "args": ["-y", "headless-oracle-mcp"],
          "env": {
            "HEADLESS_ORACLE_API_KEY": "your-key-here"
          }
        }
      }
    ]
  }
}

Tools

| Tool | Description | |------|-------------| | get_market_status | Returns an Ed25519-signed receipt: OPEN, CLOSED, HALTED, or UNKNOWN. Always treat UNKNOWN/HALTED as CLOSED. | | get_market_schedule | Returns next open/close times in UTC, including lunch break windows for XJPX, XHKG, XSHG, XSHE. | | list_exchanges | Lists all 28 supported exchanges with MIC codes, names, and timezones. | | verify_receipt | Verifies an Ed25519-signed receipt locally — checks signature, TTL expiry, and required fields. | | get_payment_options | Returns the upgrade ladder: sandbox → x402 per-request → credits → Builder subscription. |

Supported MIC codes (28 total)

XNYS XNAS XBSP XLON XPAR XSWX XMIL XHEL XSTO XIST XSAU XDFM XJSE XSHG XSHE XHKG XJPX XKRX XBOM XNSE XSES XASX XNZE XCBT XNYM XCBO XCOI XBIN


Example receipt

{
  "mic": "XNYS",
  "status": "OPEN",
  "receipt_mode": "live",
  "issued_at": "2026-04-04T14:30:00.000Z",
  "expires_at": "2026-04-04T14:31:00.000Z",
  "issuer": "headlessoracle.com",
  "schema_version": "v5.0",
  "source": "SCHEDULE",
  "key_id": "ed25519-v1",
  "receipt_id": "...",
  "signature": "..."
}

Receipts expire after 60 seconds (expires_at). Verify with @headlessoracle/verify.


How it works

Your MCP client communicates with this process over stdin/stdout (JSON-RPC 2.0). initialize and ping are handled locally; tools/list and tools/call are forwarded to https://headlessoracle.com/mcp.

  • Zero npm dependencies — uses Node.js built-ins only (readline, https)
  • Requires Node.js 18+
  • Errors are written to stderr only; stdout is reserved for the MCP transport
  • Set HEADLESS_ORACLE_API_KEY for authenticated access and higher rate limits

Links


License

MIT