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
访问服务器

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选