Skip to main content
Glama
reversing-knowledge-mcp

reversing-knowledge-mcp

by rahmoongats

reversing-knowledge-mcp

A single-file Model Context Protocol server (stdio) that gives an AI client search and read access to an allowlisted set of reverse-engineering and game-hacking sources.

  • Search — DuckDuckGo-backed search, hard-restricted to the allowlist (site: queries).

  • Read — fetch an allowlisted page and return clean Markdown, with httpx first and a headless Playwright fallback for JavaScript or bot-protected pages.

  • List — report the allowlist, cookie requirements and cookie-file status.

No database, no API keys, no external service. Everything runs locally over stdio.


Tools

Tool

Arguments

Returns

search_reversing_knowledge

query (1–300 chars), domain (optional allowlisted domain), limit (1–25, default 10)

list[{title, url, domain, snippet}]

read_thread_or_article

url (allowlisted http/https), page (1–500, default 1)

{url, domain, title, byline, page, pagination_supported, fetcher, content_markdown, truncated, content_length}

list_supported_sources

—

{domains, requires_cookies, cookies_file_present, notes}


Related MCP server: mcp-media-9router

Requirements

  • Python 3.10+

  • Optional: Playwright Chromium for bot-protected sites

Install

git clone https://github.com/<your-user>/reversing-knowledge-mcp.git
cd reversing-knowledge-mcp

python -m venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate
pip install -r requirements.txt
playwright install chromium      # optional but recommended

Or install it as a package, which adds a reversing-knowledge-mcp entry point:

pip install ".[browser]"

Run

python /absolute/path/to/server.py

The server speaks MCP over stdin/stdout and prints logs to stderr, so it is meant to be launched by an MCP client rather than by hand.


Client configuration

Always use an absolute path to server.py and the interpreter that has the dependencies installed — clients do not start the server from the project directory.

Claude Desktop / Cursor / most clients (mcpServers)

claude_desktop_config.json on Windows lives at %APPDATA%\Claude\claude_desktop_config.json, on macOS at ~/Library/Application Support/Claude/claude_desktop_config.json.

{
  "mcpServers": {
    "reversing-knowledge": {
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["/absolute/path/to/server.py"],
      "env": {
        "MCP_COOKIES_PATH": "/absolute/path/to/cookies.json"
      }
    }
  }
}

OpenCode

opencode mcp add reversing-knowledge -- \
  /absolute/path/to/.venv/bin/python /absolute/path/to/server.py
opencode mcp list

Or edit opencode.json (current releases nest servers under mcp.servers):

{
  "mcp": {
    "servers": {
      "reversing-knowledge": {
        "type": "local",
        "command": ["/absolute/path/to/.venv/bin/python", "/absolute/path/to/server.py"],
        "environment": { "MCP_COOKIES_PATH": "/absolute/path/to/cookies.json" },
        "protocol": "legacy"
      }
    }
  }
}

"protocol": "legacy" avoids the new-protocol probe delaying startup; omit it on OpenCode 1.x, which also expects server names directly under mcp with an enabled flag.

Claude Code

claude mcp add reversing-knowledge -- \
  /absolute/path/to/.venv/bin/python /absolute/path/to/server.py

VS Code (.vscode/mcp.json)

{
  "servers": {
    "reversing-knowledge": {
      "type": "stdio",
      "command": "/absolute/path/to/.venv/bin/python",
      "args": ["/absolute/path/to/server.py"]
    }
  }
}

Tool names are exposed as <server>_<tool>, e.g. reversing-knowledge_search_reversing_knowledge.


Configuration

All settings are environment variables.

Variable

Default

Purpose

MCP_COOKIES_PATH

./cookies.json

Cookie file used for sites that require a session

MCP_FETCH_TIMEOUT

20

HTTP timeout in seconds

MCP_PLAYWRIGHT_TIMEOUT

12000

Browser navigation timeout in milliseconds

MCP_MAX_CONCURRENCY

3

Maximum concurrent outbound HTTP requests

MCP_MAX_CONTENT_CHARS

60000

Markdown truncation limit per read

MCP_CACHE_TTL

600

Read cache lifetime in seconds

MCP_SEARCH_BACKENDS

yahoo,duckduckgo,mojeek,startpage,brave

Comma-separated DuckDuckGo backends; an explicit list is used because auto aborts the whole search when one engine fails

MCP_USER_AGENT

Chrome 124 desktop UA

Outbound User-Agent

MCP_LOG_LEVEL

WARNING

stderr log level

Cookies

Several allowlisted forums return a challenge page or HTTP 403 without a session. Export your own cookies into a Playwright-compatible JSON array:

cp cookies.json.example cookies.json
chmod 600 cookies.json

Then fill in the real values. Cookie files are git-ignored, never logged, and only sent to the matching domain. This project does not bypass CAPTCHAs or logins — if a site blocks automated access, provide cookies for an account you are entitled to use, or read the page manually.

Search quality notes

  • An unrestricted keyword query runs first and its results are filtered against the allowlist.

  • The remaining budget (up to 8 DuckDuckGo calls) is spent on per-domain site: queries for domains not yet covered.

  • Multi-domain site:(a OR b) queries return nothing on the supported backends, so each domain is queried individually.

  • Public search backends are rate-limited and occasionally answer with a challenge page; the explicit backend list makes a single failure non-fatal.

Security model

  • Exact-or-subdomain host matching against the allowlist — no substring matches (evil-github.com is rejected, gist.github.com is accepted).

  • Only http/https, only ports 80/443, no userinfo (user:pass@).

  • Hostnames are resolved and rejected if any address is loopback, private, link-local, reserved or multicast (SSRF guard).

  • Redirects are re-validated; a redirect off the allowlist fails the read.

  • Playwright requests are routed through the same allowlist and everything else is aborted.

  • Reddit is restricted to /r/ReverseEngineering, /r/REGames and /r/gamehacks.

  • Politeness: at most 3 concurrent outbound requests, one request per domain at a time, at least 1s between requests to the same domain.

Tests

python -m unittest discover -s tests -v

The suite covers the allowlist and URL guards and needs no network access.

Troubleshooting

Symptom

Cause

Client shows the server as failed

Wrong interpreter path; install dependencies into the interpreter named in the config

search_backend_unavailable

Every search backend failed or rate-limited; retry later or change MCP_SEARCH_BACKENDS

url_not_allowed

URL is off the allowlist, non-http(s), on a non-standard port, or resolves to a private address

Forum thread returns a challenge page

Export cookies for that domain into cookies.json

playwright_not_installed

pip install ".[browser]" then playwright install chromium

Contributing

Issues and pull requests are welcome. Keep the server a single file, keep the three-tool surface, and add a guard test for any allowlist or validation change.

License

MIT — see LICENSE.

Disclaimer

This project is a research tool. It only reads publicly reachable pages (or pages you supply cookies for) on the domains listed in list_supported_sources, and it is the user's responsibility to comply with each site's terms of service, robots.txt and local law. The maintainers do not host, mirror or distribute any third-party content, and the inclusion of a domain in the allowlist is not an endorsement of what is posted there.

Available Tools

3 tools
list_supported_sourcesA

Return the allowlisted domains by category, which ones need cookies, and whether a cookies file is present.

Inputs: no named parameters. Returns: object

read_thread_or_articleA

Fetch an allowlisted URL and return its main content as clean Markdown.

Args: url: http(s) URL on an allowlisted domain. page: Page number to attempt for paginated threads (1-500, default 1).

Uses httpx first and falls back to headless Playwright for JavaScript or bot-protected pages. Returns url, domain, title, byline, page, pagination_supported, fetcher, content_markdown, truncated and content_length.

Inputs: url (required), page. Returns: object

search_reversing_knowledgeA

Search allowlisted reverse-engineering and game-hacking sources with DuckDuckGo.

Args: query: Keywords to search for (1-300 characters). domain: Optional allowlisted domain to restrict the search to, e.g. "unknowncheats.me". limit: Maximum number of results to return (1-25, default 10).

Returns a list of results with title, url, domain and snippet.

Inputs: query (required), limit, domain. Returns: result

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool occupies a clearly distinct stage of the workflow: discovering sources, searching them, and reading the result. There is no plausible way to confuse list_supported_sources with search_reversing_knowledge or read_thread_or_article, since the descriptions name the resource and action unambiguously.

    Naming Consistency5/5

    All three names use snake_case verb_noun form (list_, search_, read_) with nouns that match the server's domain vocabulary. The pattern is fully predictable.

    Tool Count4/5

    Three tools is a minimal but coherent surface for a search-and-retrieve knowledge server, and each earns its place. It sits at the low end of the ideal range, though the narrow purpose justifies the small surface.

    Completeness4/5

    The retrieve lifecycle (enumerate sources, search, read with pagination) is covered end to end with no dead ends. Minor gaps remain: no way to list or filter sources by category without searching, and no multi-URL or batch fetch for assembling knowledge across threads.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Helps AI agents search the public web and fetch content with anti-bot measures, returning clean markdown outputs suitable for citation.
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform web searches and fetch web pages as clean Markdown via the 9router API, with configurable provider fallbacks and local security controls.
      12
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to fetch and process web content securely, including HTML-to-markdown conversion, reader mode, metadata extraction, RSS/sitemap parsing, and robots.txt-aware requests with SSRF protection.
      15
      253 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Free web search, web-page reading as Markdown, and llms.txt documentation retrieval for MCP clients. Runs locally with Node.js over stdio using @alkasima/alka-search-mcp. Searches DuckDuckGo, Mojeek, and Brave; default providers require no API key. Website and provider availability may vary.
      3
      16 npm
      MIT