YT

ysntony/tiktok-ads-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

46 stars 8 forks 品質 82 トレンド 8MIT

ysntony/tiktok-ads-mcp は [https://github.com/ysntony/tiktok-ads-mcp. からインポートされた MCP サーバーの候補です

概要

ysntony/tiktok-ads-mcp は [https://github.com/ysntony/tiktok-ads-mcp. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

TikTok広告アカウント、キャンペーン、広告グループ、広告、パフォーマンスレポートの取得のための読み取り専用モデルコンテキストプロトコル(MCP)サーバー。

##特徴

  • Read-Only TikTokビジネスAPIの統合: データ検索のための主要なTikTok広告エンドポイントをすべてアクセス
  • 6 読み取り専用ツール: ビジネスセンター、広告アカウント、キャンペーン、広告グループ、広告、レポート -API 整列フィルタリング:キャンペーン、広告グループ、広告、レポートのフィルタリングとパジネーション
  • 複数の広告主サポート: 複数の広告主アカウントを単一のリクエストで処理 -柔軟なレポーティング:カスタム寸法とメトリックで詳細なパフォーマンスレポートを生成する -Current Data:現在の広告データとパフォーマンスメトリックの取得 -エラー処理: 包括的なエラー処理と検証
  • モジュラーアーキテクチャ:クリーンでメンテナンス可能なコード構造
  • 安全な操作: すべてのツールは読み取り専用であり、キャンペーンや広告データを変更しません

利用可能なツール

1.get Business centers - アクセストークンからアクセス可能なビジネスセンターを取得する 2.get authorized ad accounts - すべての承認された広告主アカウントを取得する 3.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

TikTok Ads MCP

A read-only Model Context Protocol (MCP) server for retrieving TikTok advertising accounts, campaigns, ad groups, ads, and performance reports.

Features

  • Read-Only TikTok Business API Integration: Access all major TikTok advertising endpoints for data retrieval
  • 6 Read-Only Tools: Business centers, ad accounts, campaigns, ad groups, ads, and reports
  • API-aligned Filtering: Filtering and pagination for campaigns, ad groups, ads, and reports
  • Multi-Advertiser Support: Handle multiple advertiser accounts in a single request
  • Flexible Reporting: Generate detailed performance reports with custom dimensions and metrics
  • Current Data: Retrieve current advertising data and performance metrics
  • Error Handling: Comprehensive error handling and validation
  • Modular Architecture: Clean, maintainable code structure
  • Safe Operations: All tools are read-only and will not modify your campaigns or ad data

Available Tools

  1. get_business_centers - Retrieve business centers accessible by your access token
  2. get_authorized_ad_accounts - Get all authorized advertiser accounts
  3. get_campaigns - Retrieve campaigns with filtering and pagination
  4. get_ad_groups - Retrieve ad groups with filtering and pagination
  5. get_ads - Retrieve ads with filtering and pagination
  6. get_reports - Generate performance reports and analytics

Prerequisites

  • Python 3.10 or higher
  • TikTok Business API access
  • Valid API credentials (app ID, secret, access token)

Quick Start

Installation

  1. Download the TikTok Ads MCP

    • Click the green “Code” button at the top of the GitHub page
    • Select “Download ZIP”
    • Unzip the downloaded file to a location you can easily find (like your Documents folder)
  2. Alternatively, if you’re familiar with Git:

    git clone https://github.com/ysntony/tiktok-ads-mcp.git
    
  3. Install Dependencies

    cd tiktok-ads-mcp
    pip install -e .
    # or with uv
    uv pip install -e .
    

Configuration

  1. Set up environment variables in your MCP client configuration:
{
  "mcpServers": {
    "tiktok-ads": {
      "command": "python",
      "args": ["-m", "tiktok_ads_mcp"],
      "env": {
        "TIKTOK_APP_ID": "your_app_id",
        "TIKTOK_SECRET": "your_secret",
        "TIKTOK_ACCESS_TOKEN": "your_access_token"
      }
    }
  }
}
  1. Required credentials:

    • TIKTOK_APP_ID: Your TikTok app ID
    • TIKTOK_SECRET: Your TikTok app secret
    • TIKTOK_ACCESS_TOKEN: Your access token

    How to get these credentials:

    1. Go to the TikTok for Business Developers portal and log in.
    2. Click “My Apps” and create a new app.
    3. Select “Marketing API” as the service type.
    4. In the app settings, enable permissions related to Reading and Reporting (e.g., Ads Management, Reporting).
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "tiktok-ads": { "command": "python", "args": ["-m", "tiktok_ads_mcp"], "env": { "TIKTOK_APP_ID": "your_app_id", "TIKTOK_SECRET": "your_secret", "TIKTOK_ACCESS_TOKEN": "your_access_token" } } } }