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

@pipeworx/mcp-bonhams

v0.2.0

Published

Bonhams MCP — realized auction prices from Bonhams.com.

Readme

@pipeworx/bonhams

Realized auction prices from Bonhams — search past ("sold") lots by artist or maker and get the hammer price, the hammer price including buyer's premium (the actual realized/sold price), estimate range, sale date and department; pull full lot detail (description, condition, images) for one lot.

Part of Pipeworx — an MCP gateway connecting AI agents to 1856+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

Tools

  • bonhams_results_search(query, category?, page?, limit?) — search Bonhams' sold-lot archive by artist/maker/keyword. category is a free-text filter matched against the department name (e.g. "jewellery", "prints", "books").
  • bonhams_lot_details(auction_id, lot_no, slug?) — full detail for one lot, keyed by the auction_id/lot_no a bonhams_results_search result carries.

Auth

Keyless. Public pages, no login required.

Data sources

  • https://www.bonhams.com/search/?chronology=past&query=<q>&page=<n> — the site's own past-lots search page. It's a Next.js app that server-renders the FULL result set into a __NEXT_DATA__ JSON blob (pageProps.lotData.auctionLots[]) — a plain fetch() gets real data, no separate XHR/API call needed. Each entry carries price.hammerPrice (before premium) and price.hammerPremium (the realized price a buyer actually paid, matching the "Sold for $X inc. premium" text shown on the page) plus estimateLow/estimateHigh, department.name, hammerTime.datetime, auctionId, and lotNo (which is {full, letter, number} — full is sometimes absent, fall back to number).
  • https://www.bonhams.com/auction/<auctionId>/lot/<lotNo>/<slug>/ — the lot detail page, same SSR pattern, one "lot":{...} object with richer fields: sDesc/sCatalogDesc (HTML description), dHammerPrice, dHammerPremium, dEstimateLow/dEstimateHigh, images[]. The slug in the URL is not validated — any string works as long as auctionId/lotNo match, so a caller doesn't need Bonhams' exact descriptive slug.
  • robots.txt (checked 2026-09-05) disallows only /ldc/, /vms-assets/, *aggregate$, *head_image* — none of which this pack touches. No crawl-delay declared for User-agent: *.

Survey notes for the other two houses (Sotheby's, Phillips)

Bonhams was shipped first because its realized prices are plain SSR HTML with no gate — the easiest shape found. Quick probe notes on the other two, recorded for whoever builds their packs next:

  • Sotheby's — robots.txt sets Crawl-delay: 15 for User-agent: * and disallows /bsp-api/* (their actual API path) plus all PDF exports. Results pages are likely a genuine client-side API call behind /bsp-api/, which robots explicitly blocks — worth checking whether a different, non-disallowed endpoint serves the same data before assuming it's blocked outright.
  • Phillips — robots.txt disallows /Search, /search, /SEARCH, /bin/, /phillips/otis, /*/filter/. The obvious keyword-search path is blocked case-insensitively; a lot-detail page reached some other way (e.g. from a sitemap or a department listing) may still be fair game — not probed in this session.
  • Christie's — out of scope per the build plan (closed, internal API).

Bonhams proved the per-house-pack shape works, so follow-on fleet tasks were filed for the other two: #1280 (Sotheby's) and #1281 (Phillips), each carrying the probe notes above.

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "bonhams": {
      "url": "https://gateway.pipeworx.io/bonhams/mcp"
    }
  }
}

What this endpoint actually serves

tools/list at https://gateway.pipeworx.io/bonhams/mcp returns the tools in the table above plus the shared Pipeworx meta-tools — ask_pipeworx, discover_tools, search_within, remember/recall and the rest of the gateway-wide set. So the tool count you see is larger than this table: a single-pack endpoint currently lists roughly 30 shared tools alongside the pack's own. The connection's initialize response states its exact scope, and is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a scoped connection answer a question this pack does not cover — via ask_pipeworx, which routes across the whole catalog — without you adding a second MCP server. There is currently no way to mount a pack endpoint without them; if the extra schemas cost you more context than the routing is worth, connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Both URLs reach the same gateway and the same 1856+ data sources. The only difference is which pack's tools are listed directly; ask_pipeworx reaches all of them from either one.

No MCP client? Call it over HTTP

curl -X POST https://gateway.pipeworx.io/v1/tools/bonhams_results_search \
  -H 'Content-Type: application/json' \
  -d '{"query":"Picasso"}'

No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/bonhams_results_search. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.

Run it from npm

@pipeworx/mcp-bonhams is a local stdio bridge to the Pipeworx gateway: your MCP client starts it with npx, and it forwards every call to the same https://gateway.pipeworx.io/bonhams/mcp endpoint shown above. It needs network access; there is no offline mode.

{
  "mcpServers": {
    "bonhams": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-bonhams"]
    }
  }
}

Without a key it calls anonymously, capped at 50 calls a day. A free account raises that to 200 a day: get a key at https://pipeworx.io/signup and add "env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry. The key is sent as a Bearer token, the same way a hosted connection sends it, so calls are metered and billed exactly as they are there.

It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to also list ask_pipeworx and the other gateway-wide tools.

Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check your Node version's documentation.

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:

ask_pipeworx({ question: "your question about Bonhams data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT