hotcopper-mcp
Unofficial MCP server for HotCopper, enabling AI agents to search, read, and reply to ASX share-trading forum posts via reverse-engineered HTML parsing.
README
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) |
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
- A browser window opens on HotCopper.
- Log in.
- Optionally browse search / a stock / a thread so capture notes the flows.
- 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 dumpcaptures/*— 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/withkeywords,visitorXfToken,user_id - Reply:
POST /threads/{slug}.{id}/add-replywithmessage_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/andcaptures/are gitignored — do not commit them.reply_to_threadrefuses to post unlessconfirm=true. Preferdry_run=truefirst.- 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.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.