cannons-auctions-mcp

cannons-auctions-mcp

MCP server for Cannons Auctions API, enabling natural language access to auction data including item search, auction listings, and detailed item information.

Category
Visit Server

README

Cannons Auctions API

A REST API integration for Cannons Auctions that provides structured access to auction data including item search, auction listings, and detailed item information.

Overview

The Cannons Auctions API provides programmatic access to auction inventory, enabling:

  • Full-text search across auction items
  • Browsing current, past, and upcoming auctions
  • Retrieving detailed item information including descriptions and images
  • Integration with existing applications and workflows

Quick Start

# Install dependencies
npm install

# Start the server
node server.js

# Server runs on http://localhost:1337

MCP (Model Context Protocol)

This API is also available as an MCP server for Claude Code, enabling natural language access to auction data directly from Claude.

Installation

Globally (recommended):

claude mcp add -s user cannons-auctions-mcp node ./mcp/server.js

Per-project: The mcp/ directory and .mcp.json are included in the repo. From the project directory, Claude Code will automatically detect the MCP server.

Available MCP Tools

Tool Description
search_auctions Search auction items with filters, pagination, and price range
list_auctions List current auctions with pagination
get_auction_items Get all items in a specific auction
get_item_details Get detailed information about a specific auction item

Usage Example

User: Find all items in the current auction with "chair" in the title
Claude: Uses get_auction_items with search="chair" to return matching items

User: What's the current bid on lot 165?
Claude: Uses search_auctions to find lot 165, returns currentBid

API Endpoints

Health Check

GET /health

Returns server status and timestamp.

Search Auction Items

GET /api/search?search=keyword&filter=Current&sortBy=enddate_asc&page=1&pagesize=100
Parameter Type Default Description
search string "" Search term (empty = all items)
filter string Current Auction filter: Current, Past, Future
sortBy string "" Sort order: enddate_asc, enddate_desc, ordernumber_asc, ordernumber_desc
page integer 1 Page number
pagesize integer 100 Items per page (max 100)
minBid number null Minimum bid filter (e.g., 10)
maxBid number null Maximum bid filter (e.g., 100)
sanitize boolean false Normalize text for better matching (lowercase, remove punctuation)

Response:

{
  "success": true,
  "data": {
    "items": [
      {
        "lotNumber": "165",
        "title": "Lot 165",
        "description": null,
        "auctionTitle": "08/04/26: Part 1!! New Kent Online Estate Auction | Aga's Consignments LLC | Providence Forge VA 23140",
        "currentBid": 8,
        "endDate": "2026-08-04T21:16:47.000Z",
        "images": ["https://..."],
        "thumbnail": "https://...",
        "detailUrl": "https://bid.cannonsauctions.com/...",
        "ids": {
          "itemId": "base64-encoded-id",
          "auctionId": "base64-encoded-id",
          "pageNumber": "base64-encoded",
          "pageSize": "base64-encoded"
        }
      }
    ],
    "pagination": {
      "currentPage": 1,
      "totalPages": 1,
      "totalItems": 60,
      "itemsPerPage": 100
    }
  }
}

List Current Auctions

GET /api/auctions?page=1&pagesize=20

Returns auctions grouped by event with item counts and bid ranges.

Parameter Type Default Description
page integer 1 Page number
pagesize integer 20 Auctions per page (max 100)

Response:

{
  "success": true,
  "data": {
    "auctions": [
      {
        "title": "08/04/26: Part 1!! New Kent Online Estate Auction | Aga's Consignments LLC | Providence Forge VA 23140",
        "endDate": "2026-08-04T21:00:00.000Z",
        "itemCount": 100,
        "auctionId": "base64-encoded-id",
        "bidRange": { "min": 31, "max": 210 }
      }
    ],
    "pagination": {
      "currentPage": 1,
      "totalPages": 1,
      "totalItems": 5,
      "itemsPerPage": 20
    }
  }
}

Get Auction Items

GET /api/auctions/:auctionId/items?page=1&pagesize=100

Returns all items for a specific auction.

Parameter Type Default Description
auctionId string required Auction identifier
page integer 1 Page number
pagesize integer 100 Items per page (max 100)
search string "" Search term to filter items within auction
sanitize boolean false Normalize text for better matching (lowercase, remove punctuation)

Response:

{
  "success": true,
  "data": {
    "items": [...],
    "pagination": {
      "currentPage": 1,
      "totalPages": 10,
      "totalItems": 1000,
      "itemsPerPage": 100
    }
  }
}

Get Item Details

GET /api/item/:itemId/:auctionId?pageNumber=&pageSize=

Retrieves detailed information for a specific auction item.

Parameter Type Description
itemId string Item identifier (from search results)
auctionId string Auction identifier (from search results)
pageNumber string Optional pagination context
pageSize string Optional pagination context

Response:

{
  "success": true,
  "data": {
    "lotNumber": "100",
    "title": "Plaster 34\" Sculpture of \"Water of Life\" Female Figure",
    "description": "Plaster 34\" Sculpture of \"Water of Life\" Female Figure",
    "category": "Decorative",
    "quantity": 1,
    "startingBid": 13,
    "currentBid": 11,
    "endDate": "2026-08-04T21:00:00.000Z",
    "images": [
      "https://s3.amazonaws.com/prod.maxanet.auction/Can399/Inventory32697260/100_a-3035839a-5a4a-40c5-bad7-cd5117535fb3.jpg"
    ],
    "auctionTitle": ""
  }
}

API Documentation (Swagger)

GET /api-docs

Interactive Swagger UI with all endpoints documented and testable.

Examples

Search for items

curl "http://localhost:1337/api/search?search=plate"

Get all current auctions

curl "http://localhost:1337/api/auctions"

Get item details

curl "http://localhost:1337/api/item/{itemId}/{auctionId}?pageNumber={pageNumber}&pageSize={pageSize}"

Filter by auction status

# Past auctions
curl "http://localhost:1337/api/search?filter=Past&page=1"

# Future auctions
curl "http://localhost:1337/api/search?filter=Future&page=1"

Sort results

# By end date (ascending - ending soonest first)
curl "http://localhost:1337/api/search?sortBy=enddate_asc"

# By end date (descending)
curl "http://localhost:1337/api/search?sortBy=enddate_desc"

# By lot number
curl "http://localhost:1337/api/search?sortBy=ordernumber_asc"

Filter by price range

# Items with bids between $10 and $50
curl "http://localhost:1337/api/search?minBid=10&maxBid=50"

# Items with minimum bid of $100
curl "http://localhost:1337/api/search?minBid=100"

# Items with maximum bid of $25
curl "http://localhost:1337/api/search?maxBid=25"

Architecture

Components

  1. Express Server - Handles HTTP requests and routes to appropriate handlers
  2. Data Transformation Layer - Transforms Cannons data into consistent JSON structures
  3. Session Management - Manages session state for API requests
  4. HTML Parser - Uses Cheerio to parse and extract auction data

Key Files

  • server.js - Main Express server with all API endpoints
  • package.json - Dependencies

Environment

  • Node.js 14+ required
  • Port: 3000 (configurable via PORT environment variable)

Dependencies

Package Purpose
express Web server framework
axios HTTP client
cheerio HTML parsing and data extraction
cors Cross-origin resource sharing
swagger-ui-express API documentation UI
swagger-jsdoc OpenAPI specification generation

License

This is free and unencumbered software released into the public domain. See UNLICENSE for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured