Skip to main content
Glama
claude-tiktok-mcp

claude-tiktok-mcp

by Entity02

claude-tiktok-mcp

MCP distant qui permet à Claude d'interroger ton compte TikTok à la demande (pas de monitoring permanent — Claude n'appelle TikTok que quand tu poses une question).

Outils exposés à Claude

  • get_profile() — infos du profil (followers, nb de vidéos, etc.)

  • get_recent_videos(max_count) — dernières vidéos publiées

  • get_today_videos() — vidéos publiées aujourd'hui

  • get_video_stats(video_id) — stats détaillées d'une vidéo

Related MCP server: TikTok MCP

Variables d'environnement (à mettre dans Railway, jamais dans GitHub)

Variable

Description

TIKTOK_CLIENT_KEY

Client Key de ton app TikTok for Developers

TIKTOK_CLIENT_SECRET

Client Secret de ton app TikTok for Developers

TIKTOK_REDIRECT_URI

URL publique Railway + /callback, ex : https://ton-app.up.railway.app/callback

TIKTOK_REFRESH_TOKEN

Obtenu une seule fois via /auth (voir plus bas), à coller après le premier login

MCP_AUTH_TOKEN

Un mot de passe que tu inventes, pour protéger ton MCP (utilisé par Claude pour se connecter)

Connexion initiale à TikTok (une seule fois)

  1. Déploie le service une première fois sur Railway (sans TIKTOK_REFRESH_TOKEN, ce n'est pas grave).

  2. Va dans TikTok for Developers → ton app → ajoute TIKTOK_REDIRECT_URI comme "Redirect URI" autorisée.

  3. Ouvre https://ton-app.up.railway.app/auth dans ton navigateur, connecte-toi à TikTok.

  4. La page /callback t'affiche un refresh_token : copie-le.

  5. Colle-le dans la variable Railway TIKTOK_REFRESH_TOKEN, puis redéploie.

Après ça, le serveur se rafraîchit tout seul — tu n'as plus jamais besoin de refaire cette étape (sauf si tu révoques l'accès côté TikTok).

Connecter ce MCP à Claude

Dans Claude, ajoute un connecteur personnalisé avec :

  • URL : https://ton-app.up.railway.app/mcp

  • En-tête HTTP : Authorization: Bearer <la valeur de MCP_AUTH_TOKEN>

Lancer en local (optionnel, pour tester)

pip install -r requirements.txt
export TIKTOK_CLIENT_KEY=...
export TIKTOK_CLIENT_SECRET=...
export TIKTOK_REDIRECT_URI=http://localhost:8000/callback
python server.py

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to pull real TikTok profile and video analytics, rank posts by custom metrics, and publish videos or photo carousels or create drafts for the connected account.
      14
      31 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Lets an AI agent read public TikTok data with no API keys or developer account: search videos and hashtags, fetch profiles, recent videos and comments, discover creators posting about a topic, and transcribe videos through your own OpenAI-compatible speech-to-text endpoint. All popular MCP clients can launch it via uvx, and every tool returns structured output as a read-only operation.
      6
      2
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients and skill-aware agents to retrieve structured TikTok videos, profiles, hashtags, comments, followers, and related feeds without login. It supports natural-language requests for filtering, transcripts, downloads, and AI labels such as brand safety and sentiment.
      MIT