fmhy-mcp
# fmhy-mcp
This lets your AI find a site where you can watch or download something, give you the
exact page for the film or show you named, and tell you honestly whether it could
check that page or not.
You do not need to understand how it works. You paste one small block of text into
your AI app, restart it, and then just ask in normal words.
## Step 1 — install Node.js once
The tool runs on Node.js, which is a free download. Get the installer from
[nodejs.org](https://nodejs.org) and click through it like any other app. Nothing else
needs installing.
## Step 2 — paste this block into your AI app
Open your AI app's settings, find the part for "MCP servers" or "connectors", and add
this exactly as written:
```json
{
"mcpServers": {
"fmhy": {
"command": "npx",
"args": ["-y", "github:english-only/FMHY-MCP"]
}
}
}
```
Then fully quit the app and open it again. If your app shows a list of tools, you
should now see six of them, including one called `fmhy_search`.
The first launch takes longer than later ones, because it downloads the FMHY index
(about 2 MB). After that it works offline.
> **Why the long name?** The program is installed straight from its public source
> code rather than from the program store (npm). Once it is listed there, the short
> `npx -y fmhy-mcp` works instead. Both run the same program.
That is the whole setup. No account, no sign-up, no key to paste.
## Step 3 — ask for something
You talk to it the way you would talk to a person:
> Find me a site to download movies.
> I want to watch Dune Part Two tonight. Where?
> Where can I read manga online?
> My friend said use Flixer for Inception — is that link right?
## What the AI will ask you
It is built to walk you through it instead of dumping links on you:
1. It looks up sites that match what you asked for, and shows you a few.
2. It repeats any warning the list's maintainers wrote about those sites — for example
that a site has aggressive ads or a broken feature.
3. It tells you, for each site, whether it could actually find a download option. If it
could not check, it says so instead of pretending.
4. It gives you click-by-click steps for that specific site, naming what to look for on
screen.
5. It asks **which specific titles you want** — a film, a show, a book.
6. Then it gives you the exact page for each title, with one of the two labels below.
## The two labels
Every link comes back marked one of two ways. They are plain words on purpose.
**✅ CONFIRMED** — a real browser opened the page and the title really was there.
```
### ✅ CONFIRMED — Dune Part Two
**https://flixer.gd/watch/movie/693134**
I opened this page in a real browser and it does show this title.
```
**⚠️ COULD NOT CONFIRM THIS LINK** — the link is probably right, but it has not been
proven. The tool says this out loud instead of hoping you do not notice.
```
### ⚠️ COULD NOT CONFIRM THIS LINK — Inception
**⚠️ I could not verify this link. It is probably right, but I have not proven it.**
**https://sweetfox.st/movie/27205**
Why: this site builds its pages inside your browser, so I cannot read them from here.
```
The second label is not a failure. It is the truth. Some sites build their pages inside
your own browser, so from the outside every address on them looks identical — even a
made-up one. Rather than hand you a confident guess, the tool tells you it could not
check, and points you at the site's own search as the reliable way in:
```
**Open SweetFox and search for "Inception".**
```
## What it cannot do
- **It does not host or provide anything.** It points at sites the
[FMHY](https://fmhy.net) list already recommends. It will not stream a film, download
a file, or fetch a torrent for you.
- **It cannot always prove a link.** When a site hides its pages from the outside, you
get ⚠️ and a search link instead of ✅. That is on purpose.
- **Games can be found but not pinned down.** It can show you sites that carry games, but it
cannot give you the exact page for a game title, because there is no reliable public list
of game IDs to match against. Instead it hands you that site's own search link for the
game, which is the honest answer.
- **Some sites block it entirely.** A number of sites refuse all automated requests.
Those come back as "could not check", not as a working link.
- **It needs an internet connection to check pages**, and it reads the FMHY list as it
was on the day the copy was made. Ask your AI to refresh it if you want the newest
entries.
- **It only knows what FMHY lists.** If FMHY does not mention a site, neither does this.
- **Nothing opens on your computer without your permission.** There is an optional
browser check that is switched off unless you turn it on, and even then it asks you
first.
## Where the information comes from
[FMHY](https://fmhy.net) ("Free Media Heck Yeah") is a long-running, volunteer-curated
list of free media sites, tools and downloads. This tool reads that list — not the web
in general — so every suggestion traces back to something a person actually put on the
list. Warnings, "unsafe" markings and "recently removed" markings all come from FMHY
itself, not from this tool's opinion.
FMHY does not host files, and neither does this.
---
# For developers
## What this is
An MCP server over the FMHY corpus. Six tools by default plus one opt-in browser
fallback, not endpoint mirrors; static reference lives in resources so it costs no
tool-catalog tokens.
It is not a scraper. FMHY is markdown in [`fmhy/edit`](https://github.com/fmhy/edit), so
this reads the source directly — no crawling, no selectors to break.
## Install
```bash
npm i -g github:english-only/FMHY-MCP
```
That is enough: the package ships a ready-made index, so there is no build step. It
contains both `data/index.json` and a compressed `data/index.json.gz` twin, and the
server reads whichever is present — the plain file first, the compressed one if it is
missing. If neither is found on a first run, the server attempts one download from
upstream before giving up.
If it ever tells you *"I could not load the FMHY index"*, run this once with internet and
then try again:
```bash
npx github:english-only/FMHY-MCP prepare
```
Or run it without installing, which is what the config block above does:
```bash
npx -y github:english-only/FMHY-MCP
```
Client config, if you are not using the block at the top:
```json
{
"mcpServers": {
"fmhy": {
"command": "npx",
"args": ["-y", "github:english-only/FMHY-MCP"]
}
}
}
```
## Tools
| Tool | What it does |
|---|---|
| `fmhy_search` | Full-text over every page; returns entries, not pages |
| `fmhy_open` | Read a page's contents, one section, or one entry |
| `fmhy_shortlist` | Goal → ranked sites + FMHY warnings + download capability + how-to |
| `fmhy_resolve` | Titles → pinpoint links, batched, each with a proof level |
| `fmhy_capability` | Does this site download / torrent / stream? Evidence + recipe |
| `fmhy_refresh` | Report upstream changes; applies only with `apply: true` |
| `fmhy_browser_verify` | Opt-in, consent-gated. Last resort for Cloudflare-challenged sites |
## Pipeline
```
fmhy/edit markdown → src/parse.ts → src/corpus.ts → src/search.ts → tools
```
- **The corpus is one request**: `codeload.github.com/fmhy/edit/tar.gz/refs/heads/main`.
A conditional `GET` returns `304` when nothing changed.
- **Parsing** is roughly 100–150 ms for 2.0 MB (~16k entries) on this machine.
- **Search mirrors FMHY's own tuning** — the site publishes its `tokenize` /
`processTerm` / `boostDocument` config, so results behave like the site's search box.
- **Capability is read from the site's own JS bundle.** `cinelite.xyz` renders an empty
shell; its `Downloads` dialog and `/downloads?` endpoint exist only in the bundle.
Reading the bundle answers the question without a browser.
## What "verified" means
| Proof | Meaning |
|---|---|
| `verified` | Fetched and the response genuinely refers to the title |
| `constructed` | Built from a known route template, not confirmed |
| `candidates` | Several plausible pages — the agent asks you to pick |
| `unverifiable` | Blocked to plain HTTP (403 / challenge / geo) |
| `dead` | 404 / 410 |
**HTTP 200 is not proof.** On `cinelite.xyz`, `/watch/tt1375666`, `/watch/tt0000000`
and `/watch/nonsense` return byte-identical HTML. Anything that treats 200 as success
is lying. So the resolver detects "soft hosts" and reports `constructed`, never
`verified`.
Client-rendered sites are confirmed through a rendering service (`r.jina.ai`) that runs
a real browser elsewhere and returns the page title — one request, no Playwright, no
Chromium, nothing opened on your machine. Results are cached for 24 hours.
**Privacy:** that service receives the page URL. Never use it on a URL containing a
token, and the server says so whenever it is used.
## The browser tool is opt-in, twice
`fmhy_browser_verify` is not registered unless `FMHY_ENABLE_BROWSER=1` is set. Even
then it refuses to run without `consent: true`, which the agent may only pass after you
agree. `playwright` is an optional dependency, not installed by this package.
```bash
npm i -g playwright && npx playwright install chromium
export FMHY_ENABLE_BROWSER=1
```
## Staying in sync
- **Content** — `fmhy-mcp refresh` diffs upstream at entry level and prints what changed.
- **Shape** — golden fixtures plus invariants (unparsed-bullet rate < 1%, entry count
within ±20%, every entry has a name and URL). If they trip, the corpus is
**quarantined**: the last good snapshot keeps serving and the drift is reported.
- **Features** — `fmhy-mcp doctor --upstream` reports upstream things this tool does not
model yet. It proposes; it never applies. Adoption needs `--apply` after approval.
## Commands
```bash
fmhy-mcp # run the server
fmhy-mcp prepare # rebuild the local index from upstream (writes index.json + .gz)
fmhy-mcp refresh # dry-run drift report (--apply to adopt)
fmhy-mcp doctor # local state (--upstream to inspect FMHY)
fmhy-mcp verify "Inception" SweetFox
```
`prepare` writes both `data/index.json` and `data/index.json.gz`, so a later move or a
compressed-only install still works. It is the repair command for the message
*"I could not load the FMHY index"*, and it is the only command that needs internet.
Set `FMHY_OFFLINE=1` to forbid network access entirely (the server then relies only on
the shipped index). `prepack` runs `npm run build && node dist/cli.js prepare`, so the
tarball always contains a freshly built pair.
## Development
```bash
npm ci
npx tsc --noEmit
npm test # vitest, offline
npm run build
FMHY_LIVE=1 npx vitest run # opt-in live network checks
```
The built index (`data/index.json`, or its compressed twin) is committed so an install
works offline. `data/corpus/` and `data/cache/` are generated and gitignored. See
[CONTRIBUTING.md](CONTRIBUTING.md) for the parser rule and
[RELEASE.md](RELEASE.md) for what is and is not proven.
## Limits, stated plainly
- Client-rendered sites cannot have their deep links confirmed over plain HTTP; you get
`constructed` plus an offer to check in a browser.
- Streaming sites that answer 403 to everything are reported as `unverifiable`.
- Domains rotate weekly; FMHY's `Status` and `Mirrors` links are followed before calling
a link dead.
- `game` has no identity provider, so `fmhy_resolve` refuses to guess an ID and returns the
site's own search URL instead.
- This is an index and navigation layer. It does not host, extract or download
anything, and it will not fetch a stream or a torrent for you.
## Licence
MIT. See [LICENSE](LICENSE).
TDQS
Scored across 6 tools
Each tool targets a distinct step in the workflow: fmhy_search for lookups, fmhy_open for drilling into a found entry, fmhy_shortlist for goal-driven recommendations, fmhy_resolve for title-to-page mapping, fmhy_capability for site capability checks, and fmhy_refresh for list updates. The only mild overlap is search vs. shortlist (both surface sites), but the descriptions explicitly steer goal-based requests to fmhy_shortlist and lookups to fmhy_search.
All names share a consistent fmhy_ prefix and are short, lowercase, snake-free single words. Five are verbs (search, open, shortlist, resolve, refresh) while fmhy_capability is a noun, a minor deviation from an otherwise predictable pattern.
Six tools is well-scoped for a curated-list server, and each one maps to a clear, non-redundant user intent. Nothing feels padded or missing at the count level.
The surface covers the full lifecycle: discovery (search/shortlist), drill-down (open), title resolution, capability verification, and freshness checks. Minor gaps remain—there's no direct way to compare multiple candidate sites side by side or bulk-fetch warnings across entries, but agents can chain open/capability to work around it.