# HasData YouTube [Health: Active]

**Category:** 🌐 Social Media  
**Repository:** https://github.com/HasData/youtube-mcp  
**GitHub Stars:** 8  
**npm Downloads (last month):** 317  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hasdata-youtube

## Description
Search YouTube and read video, channel and transcript data as JSON. No Google Cloud project.

## Tools
Capabilities this server exposes over MCP:

- **hasdata_youtube_channel_getYoutubeChannel** — Get YouTube Channel Data

Fetches a YouTube channel by its ID (`UC…`) or handle (`@name`) and returns structured data for any channel tab — `featured`/Home, `videos`, `shorts`, `streams`, `playlists`, `posts`, `podcasts`, `releases`, `store` (desktop only), `about`. Returns channel identity (title, description, avatar, banner), subscriber count, country, join date, total-view count and social links (on the `about` tab), and the items on the requested tab (videos with views and publish date, playlists, posts, podcasts, etc.). Use to monitor competitor channels, build creator/brand directories, track posting cadence and growth signals, or feed `videoId` into the YouTube Video / Transcript endpoints.
- **hasdata_youtube_search_getYoutubeSearchResults** — Get YouTube Search Results

Searches YouTube for a query and returns the full results page split into `videoResults` (videoId, title, views, length, publish date, chapters, channel info, extensions like 4K/CC), `channelResults` (channelId, handle, subscribers, verified flag), `shortsResults` / `inlineShortsResults`, themed `shelves` (e.g. 'People also watched', 'Latest from <creator>'), `adsResults` and `sponsoredResults` (advertiser, landing URL, position), plus `searchInformation.totalResults`. Each block preserves its `positionOnPage` so the original layout is reconstructable. Use for competitor and topic monitoring, brand-mention tracking, ad-placement intelligence, creator discovery, trend research, or to feed `videoId` / `channelId` into the YouTube Video, Channel, or Transcript endpoints.
- **hasdata_youtube_transcript_getYoutubeTranscript** — Get YouTube Video Transcript

Returns the timed transcript (subtitles) of a YouTube video by its 11-character `videoId`. `languageCode` selects the track (e.g. `en`, `de-DE`, `pt-BR`); `type=asr` requests the auto-generated speech-recognition track. Each segment in `transcript[]` carries `startMs`, `endMs`, `snippet`, and a formatted `startTimeText`. The response also includes `availableTranscripts[]` listing every track on the video (language name + code, `type: asr` for auto-generated, `selected: true` for the one returned) so callers can discover what else is available. Use to feed a video's spoken content into RAG/LLM pipelines, generate summaries or chapter outlines, build searchable archives, run translation or accessibility workflows, or analyze talking points across a creator's catalog (pair with the YouTube Channel endpoint to enumerate videos, then fetch transcripts).
- **hasdata_youtube_video_getYoutubeVideo** — Get YouTube Video Data

Fetches a single YouTube video by its 11-character `videoId`. Returns title, thumbnail, raw + normalized views and likes, `lengthSeconds`, publish date, category, keywords/tags, `isFamilySafe` / `isUnlisted` flags, the uploading channel (id, link, subscribers, avatar), the full description with parsed links and hashtags, available `captions` tracks (with `kind: asr` for auto-generated), Content-ID `music` matches (song/artist/album), creator `socialLinks`, and the `relatedVideos`, `endScreenVideos`, and `relatedShorts` rails. Use to enrich a video URL with metadata, monitor view/like growth, extract music or sponsor/affiliate links, gather features for recommender or RAG pipelines, or detect caption tracks before calling the YouTube Transcript endpoint.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hasdata-youtube": {
    "command": "npx",
    "args": ["-y","@hasdata/youtube-mcp"],
    "env": {
      "HASDATA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HASDATA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HasData YouTube does

HasData YouTube exposes four read-only tools for working with public YouTube data:

- Search YouTube and return videos, channels, Shorts, shelves, advertisements, sponsored results, and result counts while retaining each result's page position.
- Retrieve channel identity, subscriber and total-view counts, social links, and content from tabs such as videos, Shorts, streams, playlists, posts, podcasts, releases, store, Home, and About.
- Fetch detailed metadata for a single video, including views, likes, duration, publication date, tags, description links, hashtags, captions, music matches, related videos, end-screen videos, and related Shorts.
- Retrieve timed subtitles for an 11-character video ID, with language selection and a list of available transcript tracks.

The returned data is suited to workflows such as creator discovery, competitor monitoring, content research, searchable archives, RAG pipelines, transcript summarization, and video or channel enrichment.

## How it works

The hosted endpoint uses streamable HTTP:

`https://mcp.hasdata.com/mcp?apis=youtube`

Requests include the `x-api-key` header containing a HasData API key. Agents select among the four tools and receive structured JSON data. Search results can provide `videoId` and `channelId` values for subsequent video, channel, or transcript calls. A channel response can likewise be used to enumerate videos before requesting their transcripts.

Transcript responses contain segments with start and end times, the spoken text, and formatted start-time text. The response also identifies available language tracks, including auto-generated tracks marked as `asr`. Search supports YouTube filter tokens, allowing an agent to narrow results by factors such as upload date, duration, and content type.

## Setup and configuration

Create a HasData API key, then configure an MCP client with the endpoint and this header:

```text
x-api-key: HASDATA_API_KEY
```

Clients with streamable HTTP support can connect directly. Claude Desktop, Cursor, Windsurf, Cline, VS Code, Codex CLI, and Gemini CLI are shown with remote-server configurations. Clients that only accept stdio can use the npm launcher `@hasdata/youtube-mcp` or the PyPI launcher `hasdata-youtube-mcp`; both read the key from `HASDATA_API_KEY`. Claude Desktop can also add the hosted endpoint as a connector and authenticate through its sign-in flow.

No container, Google account, Google Cloud project, or YouTube Data API key is needed for the hosted connection.

## Tools and capabilities

### `hasdata_youtube_search_getYoutubeSearchResults`

Searches YouTube and separates the response into video, channel, Shorts, inline Shorts, shelf, advertising, and sponsored-result collections. Video entries can include chapters, view counts, duration, publication date, channel details, and extensions such as 4K or closed captions.

### `hasdata_youtube_channel_getYoutubeChannel`

Looks up a channel by its `UC...` channel ID or `@name` handle. The requested tab determines which channel items are returned, while channel-level fields include its identity, subscriber count, country, join date, total views, and available social links.

### `hasdata_youtube_video_getYoutubeVideo`

Gets metadata for an 11-character video ID. Along with standard details, the response can expose caption tracks, Content ID music matches, parsed links and hashtags, uploader information, safety and listing flags, and related-content rails.

### `hasdata_youtube_transcript_getYoutubeTranscript`

Returns timestamped subtitle segments for a video. `languageCode` selects a language, and `type=asr` requests an automatically generated speech-recognition track.

## Limitations and notes

All four tools are read-only. Calls consume credits: each successful call costs 10 credits, and paging requires an additional call for every page. The free allowance is 1,000 credits per month, equivalent to 100 calls, with no card required. Broad crawls therefore use the allowance faster than narrow, targeted queries. The channel store tab is available on desktop only.

_Full upstream README: https://allmcps.com/mcp/hasdata-youtube/readme_

