# webmirage [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/lca1rus01/webmirage  
**GitHub Stars:** 6  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/webmirage

## Description
网蜃楼 — MCP 服务器，用浏览器 Cookie + TLS 指纹模拟，让 AI 直接调平台内部 API。支持 Twitter、Reddit、雪球、闲鱼，24 个工具，零 API 费用。

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/lca1rus01/webmirage), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
git clone https://github.com/lca1rus01/webmirage.git
```

2. Run:

```sh
cd webmirage
```

3. Install:

```sh
pip install -e .
```

4. Install:

```sh
pip install -e ".[xueqiu]"
```

5. Configure:

```sh
cp .env.example .env
```

6. Run:

```sh
twitter_auth_token: "你的auth_token"
```

## Documentation

## 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:

```bash
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.

_Full upstream README: https://allmcps.com/mcp/webmirage/readme_

