π― Masterphub Search
Prompt ideas on demand, without ever leaving ComfyUI
- prompt_text
- titles_list
- result_count
The whole pitch of Masterphub Search is one sentence: you type a few words, it returns the most popular matching prompt from Masterphub's 160,000+ prompt library, and you wire that text straight into your CLIP encoder. No alt-tabbing, no copy-paste, no browser. Whether that saves you real time depends on how much you hate leaving the graph - but for a beginner stuck staring at an empty prompt box, it's genuinely handy.
It's one of four nodes in the small masterphub-comfyui pack (Search, Load by ID, Random, Trending), and it's the one with the most knobs. The family is new and niche - the only community footprint is the author's own r/comfyui announcement from mid-2026 - so treat it as a convenience layer, not infrastructure you should build your whole workflow around.
How it works
There's no AI and no model involved. The node makes a plain HTTPS call to a Supabase/PostgREST backend that powers masterphub.io, using an anon key that's baked into the source. It asks for prompts whose text matches your query (an ILIKE substring match on the content field), filters by category, sorts by unlocked_count descending - that's "most unlocked," i.e. most used - and caps the rows at your limit. Zero Python dependencies beyond the standard library, so this is one of the rare custom nodes that can't drag you into dependency hell.
Inputs and outputs that matter
Three inputs, all in the required slot:
- query - plain text, substring matched. Keep it short:
cinematic portraitbeats a full sentence. - category - one of
all, image, video, writing, marketing, business, coding, agents, audio, 3d. - limit - how many results to fetch, 1β20 (default 5).
Three outputs:
- prompt_text - the single top result's text. This is the wire you connect to CLIP Text Encode.
- titles_list - a numbered list of everything found, formatted like
1. [12345] Title, with the Masterphub ID in the brackets. - result_count - an INT,
0when nothing matched.
That titles_list is the interesting one, because the bracketed ID is exactly what Masterphub Load by ID wants. Find a hit you like, note the ID, and you can load it deterministically later instead of re-searching.
The two things that will bite you
First, the ranking is pure popularity, not relevance. You'll sometimes get a "most-used" prompt that barely matches your query - the sort wins over the match. Second, and more important: if you set category to all, the top hit can be a copywriting or coding prompt, which is useless in a diffusion encoder. Making images? Set category to image and stop thinking about it.
Also worth knowing: every run is a network call to Masterphub's backend. Offline or service hiccuping, and you'll get an Error: ... string on the outputs rather than a crash - check result_count to spot it. And the query you type goes over the wire to that backend, so don't paste anything you wouldn't send to a random public service.
Install
Open ComfyUI Manager β Install Custom Nodes β search Masterphub β Install, then restart ComfyUI. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/stavjadam-collab/masterphub-comfyui
then restart. The nodes appear under the Masterphub menu. One caution: the README's own manual-clone line points at github.com/masterphub/masterphub-comfyui - a different org than where this pack actually lives. If you copy-paste the README line and it fails, use the URL above, or just use Manager, which gets it right. No requirements.txt, no pip step, no model downloads - a refreshing change in a corner of the ecosystem where dependency hell is the norm.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| query | STRING | β | |
| category | COMBO | 10 options: all, image, video, writing, marketing, business, +4 | |
| limit | INT | 51β20 | β |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| prompt_text | STRING | β |
| titles_list | STRING | β |
| result_count | INT | β |