Skip to main content
Glama
hotcopper-mcp

hotcopper-mcp

by mKlus

HotCopper MCP

Unofficial Model Context Protocol server for HotCopper — Australia’s largest ASX share-trading forum.

HotCopper has no public API. This server reverse-engineers the site’s session cookies and HTML pages so agents can search, read threads, and (optionally) reply as a logged-in user.

Not affiliated with HotCopper / Gumtree Australia Markets. Personal use only. Respect HotCopper’s terms of service and rate limits. Never commit session cookies.

Features

Tool

Description

auth_status

Whether a session is loaded (xf_user / xf_session)

latest_posts

Live feed (/postview/)

stock_threads

Discussion threads for an ASX ticker

get_thread

Read posts in a thread

search

Site search

get_news

Homepage news / opinion

watchlist_summary

Account page + auth summary

reply_to_thread

Post a reply (confirm=true required; supports dry_run)

Related MCP server: mcp-financex

Requirements

  • Node.js 20+

  • A HotCopper account

  • Playwright Chromium (for the one-time login capture)

Install

git clone https://github.com/mKlus/hotcopper-mcp.git
cd hotcopper-mcp
npm install
npx playwright install chromium

Authenticate (once)

npm run capture
# or use your installed Google Chrome:
npm run capture:chrome
  1. A browser window opens on HotCopper.

  2. Log in.

  3. Optionally browse search / a stock / a thread so capture notes the flows.

  4. Press Enter in the terminal (or touch auth/DONE).

This writes (gitignored):

  • auth/storage-state.json — Playwright storage state (cookies)

  • auth/cookies.json — cookie jar dump

  • captures/* — optional network HAR / endpoint summary

Re-run capture when the session expires.

Run the MCP server

npm start

Grok

[mcp_servers.hotcopper]
command = "node"
args = ["/absolute/path/to/hotcopper-mcp/src/server.js"]
enabled = true
startup_timeout_sec = 30
tool_timeout_sec = 120
grok mcp add hotcopper -- node /absolute/path/to/hotcopper-mcp/src/server.js

Claude Desktop / Cursor

Add a stdio MCP server pointing at node + src/server.js (same as above).

Smoke test

With a valid auth/storage-state.json:

npm run smoke

Architecture

capture (Playwright, headed)
    → auth/storage-state.json
         ↓
MCP tools → HTTP + Cheerio HTML parse
    → latest posts / stock threads / thread body / search / reply

Reverse-engineered surface

  • Auth: XenForo-style cookies xf_user, xf_session

  • Search: POST /search/search/ with keywords, visitorXfToken, user_id

  • Reply: POST /threads/{slug}.{id}/add-reply with message_html, _xfToken, thread_id

  • Reads: server-rendered HTML (/postview/, /asx/{ticker}/, /threads/…)

There is no stable official JSON API for forum content; parsers may need updates if HotCopper changes markup.

Safety

  • auth/ and captures/ are gitignored — do not commit them.

  • reply_to_thread refuses to post unless confirm=true. Prefer dry_run=true first.

  • Use your own account; do not mass-scrape or spam.

Development

npm run capture      # headed login + network sniff
npm run analyze     # summarize latest captures/endpoints-*.json
npm run smoke       # exercise read tools
npm start           # stdio MCP server

License

MIT — see LICENSE.

Available Tools

6 tools
get_newsC

List recent HotCopper news / opinion articles from the homepage.

Inputs: limit.

get_threadA

Read posts from a HotCopper thread. Pass a full URL or path like /threads/subject.12345/ or .../page-3.

Inputs: thread_url (required), page, limit.

latest_postsA

List latest posts from the HotCopper live feed (/postview/).

Inputs: page, limit.

stock_threadsA

List discussion threads for an ASX ticker on HotCopper (e.g. PLS, BHP, CU6).

Inputs: ticker (required), limit.

watchlist_summaryA

Fetch account page as the logged-in user and summarize visible tickers / auth.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct aspect of HotCopper: feed, ticker threads, thread content, search, news, and account. No overlapping purposes.

    Naming Consistency5/5

    All tools use consistent snake_case verb_noun pattern (latest_posts, stock_threads, get_thread, search, get_news, watchlist_summary) with only 'search' being a single verb, which is acceptable.

    Tool Count5/5

    With 6 tools, the scope is well-balanced for a financial forum server. Each tool serves a clear function without unnecessary bloat.

    Completeness4/5

    Core read operations are covered (posts, threads, search, news, watchlist). Missing write operations like posting or replying, but these are less critical for an information retrieval focus.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Comprehensive MCP server for real-time stock, cryptocurrency, options, and fundamental analysis, including SEC filings and insider trading data.
      26
      9 npm
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      MCP server that enables AI tools to search, read threads, and retrieve latest posts from the Hasolidit financial community forum.
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for querying 4chan archives (Desuarchive, 4plebs, b4k, archived.moe) via the FoolFuuka API, enabling AI agents to search and retrieve historical archived posts.
      16
      4
      4 npm
      3
      MIT