Skip to content
Back to search

content-rd

MCP server: mine Instagram, TikTok and YouTube comments and Google search gaps onto a board

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/omarhosamcodes--content-rd/badge.svg)](/listings/omarhosamcodes--content-rd)

HTML

<a href="/listings/omarhosamcodes--content-rd"><img src="/api/listings/omarhosamcodes--content-rd/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 79 lines
  1. # Content R&D MCP
  2. One prompt -> comment patterns from Instagram, TikTok and YouTube + ranked search gaps on a board page.
  3. - Server (Rust, on Railway): `https://content-rd-production.up.railway.app`
  4. - MCP endpoint: `/mcp` (streamable HTTP, bearer token)
  5. - Boards: `/b/<board-name>` (public to anyone with the link)
  6. The token and server URL are in `.env` (not in git) and in the Railway service variables.
  7. ## Connect an agent
  8. ```sh
  9. claude mcp add --transport http content-rd https://content-rd-production.up.railway.app/mcp --header "Authorization: Bearer <MCP_TOKEN>"
  10. ```
  11. Any other agent: add an HTTP MCP server with that URL and header.
  12. ## Use
  13. > Run Content R&D for skincare in Egypt (Arabic). Board: skincare-eg
  14. or the `content_rd` MCP prompt. The agent gets the full workflow from the server instructions.
  15. ## TikTok and YouTube
  16. Read logged out, nothing to set up. TikTok videos are found through SearXNG (`site:tiktok.com <topic>`, TikTok's own search needs a login), then each video page gives its plays. Logged out, TikTok stops after ~300 top-level comments per video. YouTube search reads the results page; comments come from the web client's own API (no key). If YouTube comments start failing with HTTP 400, bump `YT_CLIENT` in `src/video.rs`.
  17. ## Instagram
  18. The server reads public reels and comments itself, logged out, the way instagram.com serves visitors without an account. Nothing to set up.
  19. If that fails (rate limit, blocked IP, Instagram changed its query ids), each call retries once through the optional bridge below.
  20. ### Bridge (optional fallback, your computer)
  21. Chrome on your own machine, logged in to Instagram, so no login or cookie is ever sent to the server.
  22. ```sh
  23. env $(cat .env) cargo run --release -- bridge
  24. ```
  25. A Chrome window opens. Log in to Instagram in it once (use a secondary account) and leave it open while a run is in progress. Stop with Ctrl-C. Without it, a failed Instagram call reports both the public error and "bridge is offline"; everything else keeps working.
  26. Bridge env: `SERVER_URL`, `MCP_TOKEN` (required), `CHROME` (browser path), `BRIDGE_PROFILE` (profile folder, default `~/.local/share/content-rd/chrome`).
  27. When public calls start failing with "doc_id may have rotated", re-harvest the two query ids in `src/instagram.rs`.
  28. ## Tools
  29. | Tool | Does | Runs on |
  30. | --- | --- | --- |
  31. | `find_reels` | highest-exposure videos for a topic on instagram, tiktok or youtube, by plays | server, bridge fallback for Instagram |
  32. | `get_comments` | paged comments of a reel or video URL from any of the three, optional keyword filter for pattern hunting | server, bridge fallback for Instagram |
  33. | `board_add_comments` | pin comments under a pattern, uniform cards | server |
  34. | `keyword_ideas` | Google autocomplete expansion | server |
  35. | `keyword_interest` | Google Trends demand, relative to an anchor keyword | server |
  36. | `serp` | top web results via a private SearXNG | server |
  37. | `board_add_gap` | save a scored keyword, board ranks by total | server |
  38. ## Server env
  39. | Variable | Meaning |
  40. | --- | --- |
  41. | `MCP_TOKEN` | required bearer token for `/mcp` and `/bridge/*` |
  42. | `DATA_DIR` | where boards are stored (`/data` volume on Railway) |
  43. | `SEARXNG_URL` | private SearXNG service, `http://searxng.railway.internal:8080` |
  44. | `BASE_URL` | public address; defaults to the Railway domain |
  45. | `PORT` | default 8787 |
  46. ## Develop
  47. ```sh
  48. cargo test # unit tests
  49. cargo test live -- --ignored # hits Google autocomplete, Trends, public Instagram, TikTok and YouTube
  50. MCP_TOKEN=dev cargo run # local server on :8787
  51. railway up --service content-rd # deploy the server
  52. railway up searxng --path-as-root --service searxng
  53. ```

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.