FanOracle

FanOracle

AI-powered comic book authentication, grading, and valuation, secured on the Casper blockchain.

Category
Visit Server

README

FanOracle: Comic Book Edition πŸ¦Έβ€β™‚οΈβ›“οΈ

AI-powered comic book authentication, grading, and valuation β€” secured on the Casper blockchain.

Built for the Casper Network Hackathon | MCP + Odra/Rust Smart Contract


πŸ† What is FanOracle?

FanOracle is a Model Context Protocol (MCP) server that brings AI intelligence to comic book collecting. Upload a photo of any comic β€” raw or CGC-slabbed β€” and FanOracle will:

  1. Identify the comic title, issue, publisher, and year from the cover or CGC label
  2. Grade the condition using the CGC 0.5–10.0 scale
  3. Verify CGC/CBCS slab authenticity (detect fakes)
  4. Check if it's a key issue (first appearances, deaths, origins)
  5. Price it using real eBay sold listings
  6. Store it permanently on the Casper blockchain

πŸ› οΈ Tech Stack

Layer Technology
Smart Contract Rust + Odra Framework 2.7.0
Blockchain Casper Network Testnet
AI Vision Groq Llama 4 Scout (Vision)
Market Data eBay Browse API (Production)
Comic Database Comic Vine API
Interface MCP Server + Claude Desktop

πŸ“¦ Smart Contract

Deployed on Casper Testnet:

Field Value
Contract Hash contract-24ca090961cafb32c6cb39bd6034d175c8e47002e1e32c20e8cf54ca9abb8d40
Package Hash contract-package-279e6175282d814b28c02157feacea538a6d3ba4c76bb1b21b4c110d57e92d8a
Deploy Hash (v2) 2d624cd2e18b98c321e5799c24b52e90695cd2cb6ec8c1fd6c6caead9ef677ca
Network casper-test

Entry Points:

  • init β€” Initialize contract
  • add_comic(title, issue, grade_x10, is_key, value_cents) β€” Add comic to collection
  • get_count() β€” Get total comics in collection
  • get_comic_title(id) β€” Get comic title by ID
  • get_comic_grade(id) β€” Get comic grade by ID
  • get_comic_value(id) β€” Get comic estimated value by ID
  • get_comic_is_key(id) β€” Check if comic is key issue

πŸ”§ MCP Tools (5 Tools)

1. grade_comic

AI-powered comic grading from photo. Reads CGC/CBCS label automatically.

Input: image_url or image_base64
Output: grade (0.5-10.0), condition, defects, slab detection, creator credits

2. verify_slab

Fake CGC/CBCS slab detector using AI visual analysis.

Input: image_url + cert_number
Output: authenticity score (0-100), red flags, green flags, verdict, CGC lookup URL

3. fetch_comic_price

Real market prices from eBay sold listings.

Input: title, issue_number, grade (optional)
Output: min/max/avg price, sample listings, sales count

4. detect_key_issue

Key issue detection via Comic Vine database.

Input: title, issue_number, publisher
Output: is_key_issue, key_reasons, first_appearances, cover_date

5. collection_value

Casper blockchain collection tracker + value estimator.

Input: action (get_count | add_comic | value_estimate), comics[]
Output: on-chain count, deploy_hash, total value, breakdown

🎬 Demo Flow

1. πŸ“Έ Upload CGC slab photo
      ↓
2. πŸ€– grade_comic β†’ "Wolverine #76, CGC 8.5, White Pages, Authentic"
      ↓
3. πŸ” verify_slab β†’ "AUTHENTIC β€” Score 98/100, Hologram βœ…"
      ↓
4. πŸ”‘ detect_key_issue β†’ "Lady Deathstrike & Puck appearance"
      ↓
5. πŸ’° fetch_comic_price β†’ "Avg $40 | 20 eBay sales"
      ↓
6. ⛓️ collection_value (add_comic) β†’ "Stored on Casper blockchain βœ…"

πŸš€ Setup

Prerequisites

  • Node.js 18+
  • Claude Desktop
  • API Keys: Groq, eBay (Production), Comic Vine

Install

git clone https://github.com/your-repo/fanoracle-mcp
cd fanoracle-mcp
npm install
cp .env.example .env
# Fill in API keys in .env
npm run build

Claude Desktop Config

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "fanoracle": {
      "command": "node",
      "args": ["/path/to/fanoracle-mcp/dist/index.js"],
      "env": {
        "CASPER_RPC": "https://node.testnet.casper.network/rpc",
        "CASPER_CHAIN": "casper-test",
        "CONTRACT_HASH": "contract-24ca090961cafb32c6cb39bd6034d175c8e47002e1e32c20e8cf54ca9abb8d40",
        "GROQ_API_KEY": "your_groq_key",
        "EBAY_CLIENT_ID": "your_ebay_client_id",
        "EBAY_CLIENT_SECRET": "your_ebay_client_secret",
        "COMIC_VINE_API_KEY": "your_comic_vine_key"
      }
    }
  }
}

πŸ“Š Example Outputs

grade_comic

{
  "detected_title": "Amazing Spider-Man",
  "detected_issue_number": "300",
  "is_slabbed": true,
  "grading_company": "CGC",
  "certified_grade": 9.2,
  "grade_label": "Near Mint-",
  "confidence": "high",
  "hologram_detected": true,
  "slab_integrity": "intact",
  "notable_features": ["White Pages", "1st Full Venom Appearance"]
}

verify_slab

{
  "verdict": "AUTHENTIC",
  "authenticity_score": 98,
  "confidence": "high",
  "green_flags": ["Correct label font", "Hologram present", "Grade position correct"],
  "red_flags": [],
  "cgc_lookup_url": "https://www.cgccomics.com/certlookup/details/?certInput=3944834002"
}

fetch_comic_price

{
  "title": "Amazing Spider-Man",
  "issue_number": "300",
  "grade": "9.2",
  "sales_found": 20,
  "price_avg": 774.85,
  "price_min": 349.99,
  "price_max": 3300.00,
  "currency": "USD"
}

πŸ”— Links

  • Casper Explorer: https://testnet.cspr.live/deploy/2d624cd2e18b98c321e5799c24b52e90695cd2cb6ec8c1fd6c6caead9ef677ca
  • CGC Cert Lookup: https://www.cgccomics.com/certlookup/
  • Comic Vine: https://comicvine.gamespot.com/api/

🌐 Live Demo

https://fanoracle.vercel.app


Built with ❀️ for the Casper Network Hackathon*

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