Skip to main content
Glama
amaralkaff

UnknownCheats MCP

by amaralkaff

uc-mcp-server

一个用于与 UnknownCheats 论坛进行程序化交互的 MCP (Model Context Protocol) 服务器。通过真实的 Chrome 实例绕过 Cloudflare 保护,并利用 Cheerio 提供结构化数据提取功能。

npm version License: MIT

功能特性

  • 绕过 Cloudflare — 使用 puppeteer-real-browser 和有头 Chrome 实例自动解决 Turnstile 验证

  • Cookie 持久化 — 会话 Cookie 保存至 cookies.json 并在重启后复用

  • 自动恢复 — 检测到框架分离/浏览器崩溃错误时自动重启

  • 6 个 MCP 工具 — 登录、搜索、阅读帖子、分页、代码提取和调试

Related MCP server: Ghost Browser MCP

工具

工具

描述

参数

check_login

检查浏览器会话是否已登录

—

login

自动填充凭据并登录

username, password

search_forum

搜索 UC 或浏览子论坛

query, subforum?

get_thread

获取带分页的帖子内容

url, fetch_all_pages?

extract_code

提取 C++/C#/Python/Lua 代码块

url, limit?, export_to_file?

debug_page

检查原始页面结构以进行调试

url

extract_code 详情

参数

默认值

描述

url

必填

帖子 URL

limit

10 (最大 50)

内联返回的最大代码块数量

export_to_file

false

将所有代码块保存至 exports/<slug>_<timestamp>.json

当达到限制时,响应包含 truncated: true、last_post_id(以便您知道从哪里继续),以及关于跳过了多少代码块的提示。每个代码块还携带一个 postId,以便您可以将其追溯到页面上的确切帖子。

技术栈

要求

  • Bun v1.0+

  • 已安装 Google Chrome (puppeteer-real-browser 所需)

安装

# via npm
npx uc-mcp-server

# or clone
git clone https://github.com/amaralkaff/mcp-unknowncheat.git
cd mcp-unknowncheat
bun install

使用 Claude Code 设置

claude mcp add uc-mcp bun -- run "/path/to/mcp-unknowncheat/src/index.ts"

或者使用 npx:

claude mcp add uc-mcp npx -- uc-mcp-server

使用 Claude Desktop 设置

添加到 %APPDATA%\Claude\claude_desktop_config.json (Windows) 或 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

{
  "mcpServers": {
    "uc-mcp": {
      "command": "npx",
      "args": ["uc-mcp-server"]
    }
  }
}

使用方法

首次运行时,Chrome 会以有头模式打开。手动登录或使用 login 工具:

login({ username: "your_username", password: "your_password" })

Cookie 会自动保存。后续运行将复用该会话。

示例

# Check login status
check_login()

# Browse the Apex Legends subforum
search_forum({ subforum: "apex-legends" })

# Search across all forums
search_forum({ query: "pubg offsets" })

# Get a thread (single page)
get_thread({ url: "https://www.unknowncheats.me/forum/..." })

# Get all pages of a thread
get_thread({ url: "https://www.unknowncheats.me/forum/...", fetch_all_pages: true })

# Extract code blocks (up to 10 inline)
extract_code({ url: "https://www.unknowncheats.me/forum/..." })

# Extract all code blocks and save to file
extract_code({ url: "https://www.unknowncheats.me/forum/...", export_to_file: true })

项目结构

src/
├── index.ts          # MCP server entry + tool registration
├── browser.ts        # Chrome lifecycle, Cloudflare bypass, cookie persistence
├── types.ts          # Shared TypeScript interfaces
├── tools/
│   ├── check-login.ts
│   ├── login.ts
│   ├── search-forum.ts
│   ├── get-thread.ts
│   ├── extract-code.ts
│   └── debug-page.ts
└── parsers/
    ├── thread.ts         # Post extraction, pagination
    ├── search-results.ts # Search result parsing
    ├── code-blocks.ts    # Code extraction + language detection
    └── tags.ts           # Thread tag detection ([Source], [Release], etc.)

注意事项

  • 所有日志均使用 console.error() — console.log() 保留给 MCP stdio 传输使用

  • fetch_all_pages 的帖子分页默认上限为 50 页

  • 语言检测支持:C++, C#, Python, Lua

  • 导出的文件保存至 ./exports/,且已从 git 和 npm 中排除

问题

发现 Bug 或想要请求新功能?请在以下地址提交 Issue:

https://github.com/amaralkaff/mcp-unknowncheat/issues

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Fetches content from authenticated web pages by driving your signed-in Chrome/Edge browser via DevTools Protocol, automatically handling login redirects and reusing sessions across domains.
    9
    MIT
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Undetectable browser automation server for MCP-compatible AI agents, offering 225 tools across 32 sections to navigate, extract, clone pages, and bypass antibot systems like Cloudflare.
    1
    -
  • A
    license
    A
    quality
    F
    maintenance
    A stealth browser automation MCP server that wraps CloakBrowser's patched Chromium to bypass bot detection, providing 22 tools for web navigation, interaction, and session management.
    24
    31 PyPI
    2
    MIT