A Model Context Protocol (MCP) server for TikTok Ads API integration. This server enables AI assistants like Claude to interact with TikTok advertising campaigns, providing comprehensive campaign management, analytics, and optimization capabilities. This project is part of the AdsMCP AI advertising automation platform, an AI-powered platform designed to simplify and automate ad campaign management
Add this skill
npx mdskills install AdsMCP/tiktok-ads-mcp-serverComprehensive TikTok Ads API integration with clear setup, useful tools, and good documentation
1# TikTok Ads MCP Server23A Model Context Protocol (MCP) server for TikTok Ads API integration. This server enables AI assistants like Claude to interact with TikTok advertising campaigns, providing comprehensive campaign management, analytics, and optimization capabilities.45This project is part of the [AdsMCP AI advertising automation platform](https://adsmcp.com), an AI-powered platform designed to simplify and automate ad campaign management across multiple advertising networks. The platform emphasizes efficiency, data-driven insights, and intelligent automation for marketers and agencies. Additionally, AdsMCP also supports integration with other advertising platforms, such as **Google Ads** and **Meta (Facebook) Ads**, making it easier to manage campaigns across multiple networks from a single interface.678## Features910- **Campaign Management**: Create, read, and update campaigns and ad groups11- **Performance Analytics**: Retrieve detailed performance metrics and insights12- **Audience Management**: Handle custom audiences and targeting options13- **Creative Management**: Upload and manage ad creatives14- **Reporting**: Generate and download custom performance reports1516## Installation1718### Prerequisites1920- Python 3.10+21- TikTok For Business account with API access22- TikTok Ads Developer account and app registration2324### Local Installation2526```bash27# Clone the repository28git clone <repository-url>29cd adsmcp-server3031# Create virtual environment32python -m venv venv33source venv/bin/activate # On Windows: venv\Scripts\activate3435# Install dependencies36pip install -e .37```3839### Using uv (recommended)4041```bash42# Install with uv43uv sync44```4546## Remote MCP Server Option4748If you don’t want to host the server and set it up manually yourself, [AdsMCP](https://adsmcp.com) provides a remote MCP server. You can easily connect your ad accounts within **one minute**, without worrying about server configuration or dependencies. Visit the **[AdsMCP Remote MCP Server Setup Guide](https://adsmcp.com/onboarding)** for a step-by-step tutorial to quickly connect your ad accounts.495051### MCP Client Configuration5253Add to your MCP client configuration (e.g., Claude Desktop):5455```json56{57 "mcpServers": {58 "tiktok-ads": {59 "command": "python",60 "args": ["/path/to/adsmcp-server/run_server.py"],61 "cwd": "/path/to/adsmcp-server",62 "env": {63 "TIKTOK_APP_ID": "your_app_id",64 "TIKTOK_APP_SECRET": "your_app_secret",65 }66 }67 }68}69```7071## Available Tools7273### Authentication74- `tiktok_ads_login` - Start TikTok Ads OAuth authentication flow75- `tiktok_ads_complete_auth` - Complete OAuth authentication with authorization code76- `tiktok_ads_auth_status` - Check current authentication status77- `tiktok_ads_switch_ad_account` - Switch to a different advertiser account7879### Campaign Management80- `tiktok_ads_get_campaigns` - Retrieve all campaigns for the advertiser account81- `tiktok_ads_get_campaign_details` - Get detailed information about a specific campaign82- `tiktok_ads_get_adgroups` - Retrieve ad groups for a campaign8384### Performance & Analytics85- `tiktok_ads_get_campaign_performance` - Get performance metrics for campaigns with detailed metrics support86- `tiktok_ads_get_adgroup_performance` - Get performance metrics for ad groups with breakdowns8788## Authentication8990### TikTok Ads API Setup91921. **Register as Developer**93 - Visit [TikTok For Business Developer Portal](https://business-api.tiktok.com/)94 - Create a developer account95 - Register your application96972. **Get API Credentials**98 - App ID and App Secret from your registered app99 - Generate access token through OAuth flow100 - Note your Advertiser ID1011023. **OAuth Flow** (for production)103 - Implement OAuth 2.0 flow for user authorization104 - Handle token refresh automatically105 - Store tokens securely106107## Security Best Practices108109- Never commit API credentials to version control110- Use environment variables for sensitive data111- Implement proper token rotation112- Monitor API usage and rate limits113- Use HTTPS for all communications114115## API Rate Limits116117TikTok Ads API has the following limits:118- 1000 requests per hour per app119- 10 concurrent requests120- Specific endpoint limits may apply121122The server includes built-in rate limiting and retry logic.123124## Error Handling125126The server provides comprehensive error handling:127- API rate limit management128- Token expiration handling129- Network connectivity issues130- Invalid parameter validation131132## License133134This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.135136## Support137138For issues and questions, please create an issue in this repository.139140## Changelog141142### v0.1.0 (Initial Release)143- Basic TikTok Ads API integration144- Campaign and ad group management145- Performance reporting146- OAuth authentication support
Full transparency — inspect the skill content before installing.