Webmirage logo

Webmirage

MCP server for Twitter/X, Reddit, Xueqiu, Goofish, and GitHub tools with local cookie-based credentials and interface health monitoring.

Install Webmirage

Run the project’s own setup commands, in order.

Setup steps from the project

webmirage installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/lca1rus01/webmirage.git
    
  2. 2. Run
    cd webmirage
    
  3. 3. Install
    pip install -e .
    
  4. 4. Install
    pip install -e ".[xueqiu]"
    
  5. 5. Configure
    cp .env.example .env
    
  6. 6. Run
    twitter_auth_token: "你的auth_token"
    

Overview

webmirage MCP server connects AI clients to Twitter/X, Reddit, Xueqiu, Goofish, and GitHub through 33 platform tools. It uses locally configured browser cookies or optional GitHub tokens, while a FastAPI and Vue gateway tracks interface health, credentials, detection history, proxy nodes, and traffic. Reach for webmirage when an agent needs read access to platform data or selected account actions without official API credentials. Mihomo integration adds subscription-based proxy selection, health checks, and failover management.

Use cases

  • Search Twitter/X, Reddit, or GitHub content through an AI client
  • Monitor platform interface health and investigate authentication or rate-limit failures
  • Query Xueqiu market data and watchlists
  • Search and evaluate Goofish listings
  • Route platform requests through managed Mihomo proxy nodes

Key features

  • 33 MCP tools across five platforms
  • Local browser-cookie and token configuration
  • Platform health checks with backoff and history
  • Vue and FastAPI gateway console
  • Mihomo proxy selection and subscription failover
  • SQLite persistence for local operational history

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 24d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
Last commit24d agoMost recent push to the default branch.

How Webmirage works

What webmirage does

webmirage exposes platform access through MCP so an AI client can search and inspect content across Twitter/X, Reddit, Xueqiu, Goofish, and GitHub. Its 33 tools cover activities such as post and repository search, user or repository details, market data, watchlists, comments, listings, and selected account actions. The platform set includes nine Twitter/X tools, five Reddit tools, five Xueqiu tools, five Goofish tools, and nine GitHub tools.

Credentials remain on the local machine. Twitter/X uses auth_token and ct0; Reddit requires a reddit_session cookie and can optionally obtain browser cookies through browser-cookie3; Goofish requires a complete cookie containing four specific fields; Xueqiu can obtain a public cookie automatically; and GitHub can work anonymously for read-only access or use an optional token.

How it works

The MCP process is started locally and configured as a standard stdio server. MCP clients send platform requests to the process, which uses the configured credentials and returns results to the client. A separate gateway, built with Vue 3, TypeScript, Vite, and FastAPI, provides operational views for platform health, credentials, proxy state, connections, and traffic.

Health monitoring checks ten fixed, read-only representative interfaces across the five supported platforms. Checks run every 30 minutes by default, with configurable 15-, 30-, 60-, or 120-minute schedules, or can be paused. Results distinguish authentication errors, rate limits, risk controls, network failures, and MCP communication failures. Failed checks back off up to four hours, and detection records are shared by the gateway and MCP clients.

When Mihomo is deployed with the included Docker Compose setup, webmirage can inspect and change proxy selections. Multiple subscription sources support ordered failover, while health checks and latency measurements help choose an exit node. Existing connections are not proactively closed when the policy changes.

Setup and configuration

Install the package from a cloned repository with:

bash
git clone https://github.com/lca1rus01/webmirage.git
cd webmirage
pip install -e .

Install the optional extra for browser-cookie extraction support:

Terminal
pip install -e ".[xueqiu]"

Credentials can be placed in a local .env file or ~/.webmirage/config.yaml. The MCP client configuration runs python -m webmirage with the repository as its working directory. Claude Desktop, Cursor, and Windsurf use the same command and can receive credentials through the client environment block; the environment block may be omitted when YAML configuration is used.

The gateway and SQLite data store keep credentials, runtime settings, management data, connection history, and detection history locally. Historical traffic and platform checks are retained for up to 30 days, with platform history capped at 10,000 records.

Tools and capabilities

  • Search Twitter/X posts, inspect users and threads, read posts, and retrieve watchlist feeds.
  • Search Reddit, inspect subreddit hot posts, read post comments, and view user activity.
  • Retrieve Xueqiu quotes and valuation data, search stocks, inspect hot posts, and query watchlists.
  • Search Goofish listings, rank them with the scoring feature, inspect details, view active listings, and confirm shipment.
  • Search GitHub repositories and inspect READMEs, issues, releases, pull requests, comparisons, and recent commits.
  • Inspect or select Mihomo proxy nodes with webmirage_proxy_status and webmirage_proxy_select.

Limitations and notes

Cookie-authenticated platform requests can trigger platform detection or account suspension. Use a dedicated account rather than a primary account. Goofish requires the four specified cookie fields from the same login session, while Reddit access requires reddit_session. GitHub’s anonymous mode is limited to read-only access.

Automatic checks cover representative read-only interfaces, not every platform tool. A credential update requires a subsequent check before the interface is considered confirmed. Proxy health checks, failover timing, and recovery depend on network conditions; switching policy does not repair connections that have already failed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Webmirage

webmirage is an MCP server that connects AI clients to Twitter/X, Reddit, Xueqiu, Goofish, and GitHub. Its 33 tools support searches, posts, users, repositories, market data, listings, watchlists, and selected account actions through locally configured cookies or optional GitHub tokens.

Install it by cloning the repository and running `pip install -e .` from its directory. Add credentials through `.env` or `~/.webmirage/config.yaml`, then configure your MCP client to run `python -m webmirage` with the repository as its working directory.

Yes, webmirage works with Cursor. Add the same MCP command and environment configuration used for other clients in Cursor’s MCP settings. You can omit the environment block when credentials are stored in the YAML configuration file.

Credential requirements depend on the platform. Twitter/X needs `auth_token` and `ct0`, Reddit needs `reddit_session`, and Goofish needs a complete cookie with four required fields. Xueqiu can obtain a public cookie automatically, while GitHub supports anonymous read-only use or an optional token.

Yes, when Mihomo is deployed, webmirage can show proxy status and select nodes using its proxy tools. Multiple subscription sources can be configured for ordered failover, and the gateway supports automatic or manual node selection.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWebmirage AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/webmirage?style=directory)](https://allmcps.com/mcp/webmirage)
HTML Embed
<a href="https://allmcps.com/mcp/webmirage"><img src="https://allmcps.com/api/badge/webmirage?style=directory" alt="Webmirage on AllMCPs" /></a>