YouTube autocomplete suggestions
v0.1.1YouTube autocomplete keyword suggestions for seed keywords, run on your own Apify account.
An MCP server that gives your assistant the search suggestions YouTube shows for a seed keyword. You ask for coffee grinder, it fans the seed out with a to z, question or preposition expansions, and you get one row per suggestion back. It is a thin client. The work runs as the public Apify actor tallyrake/youtube-autocomplete-scraper on your own Apify account, with your own token. Runs are charged to your Apify account at the listing's price, and this package charges nothing itself. There is no search volume in the rows.
Summary extracted from the README.
youtube-autocomplete-mcp
An MCP server that gives your assistant the search suggestions YouTube shows for a seed keyword. You ask for coffee grinder,
it fans the seed out with a to z, question or preposition expansions, and you get one row per suggestion back.
It is a thin client. The work runs as the public Apify actor tallyrake/youtube-autocomplete-scraper on your own Apify account, with your own token. Runs are charged to your Apify account at the listing's price, and this package charges nothing itself. There is no search volume in the rows. Each row carries the suggestion, its rank and the query that produced it.
Set it up
You need Node 18 or newer and an Apify API token (Apify Console, Settings, API and integrations).
Add the server to your MCP client's configuration. Most clients read a mcpServers block like this one:
{
"mcpServers": {
"youtube-autocomplete": {
"command": "npx",
"args": ["-y", "youtube-autocomplete-mcp"],
"env": { "APIFY_TOKEN": "paste-your-apify-token-here" }
}
}
}
Clients with a command line for adding servers take the same three parts: the command npx, the arguments -y youtube-autocomplete-mcp, and
the environment variable APIFY_TOKEN.
The token stays in your client's configuration. The server sends it only to api.apify.com, in a request header.
The tool
youtube_autocomplete takes these arguments.
| Argument | What it does |
|---|---|
keywords |
Required. One to 25 seed keywords, each up to 100 characters. |
expansions |
How each seed is fanned out: alphabet (a to z), questions, prepositions, comparisons, numbers. Default alphabet. |
depth |
1 expands the seeds only. 2 also sends every first-level suggestion back to autocomplete. Default 1. |
language, country |
Interface language and country for the suggestions, for example de and de, or pt and br. Default en and us. |
maxSpendUsd |
The most one call may charge your Apify account, in US dollars. The run stops when it is reached. A low cap applies if you leave it out. |
maxRows |
The most rows returned to your assistant. If the run produced more, the answer says how many. |
A try, once the server is connected: ask your assistant for the YouTube suggestions for coffee grinder, alphabet expansion.
Each row reads like this:
{ "keyword": "coffee grinder", "query": "coffee grinder a", "suggestion": "coffee grinder amazon",
"rank": 1, "expansion": "alphabet", "depth": 1, "language": "en", "country": "us" }
When it does not work
Every failure comes back as an error that says which it was, never as an empty list.
APIFY_TOKEN is not set: the server started without the token. Set it in the client'senvblock.Apify did not accept the token in APIFY_TOKEN (401): the token is wrong or revoked. Copy a fresh one from Apify Console.Your Apify account cannot start this run (402): your Apify plan or usage limit stops the run. Apify's own message follows.The run did not finish inside the time limit of one call (408): send fewer seeds or fewer expansions.The call did not reach Apify: the call failed before Apify answered, or Apify did not answer in time. Nothing was read.- A finished run that found no suggestions says so in its note.
What is sent
Your seeds and options go to Apify in the run input, the same input the actor takes in the Apify Console. The input also carries a short fixed label that names this package, so the actor's operator can tell runs started through it from runs started any other way. The label holds no seed, no token and nothing about you. This package has no other network call, no analytics and no files written.
License
MIT.