TikTok-Reddit Poster MCP
Downloads TikTok videos, transcribes them, suggests subreddits and titles, and posts them as native Reddit videos with auto-comment for source links.
README
TikTok → Reddit Poster MCP
A minimal MCP server for downloading TikTok videos, optional transcription, subreddit & title suggestions, and posting native Reddit videos with auto-comment for source links.
Features
- FFmpeg Auto-Detection: Works on Windows, Linux, and macOS.
- Robust Error Recovery: Multi-layer fallback for WebSocket and API errors.
- Video Validation & Transcoding: Converts videos to Reddit-compatible MP4.
- Auto-Commenting: Automatically comments the original TikTok link if none is provided.
Requirements
- Python ≥ 3.8
- FFmpeg (auto-detected; install if missing)
- (Optional) CUDA + cuDNN for GPU transcription
Installation
Python Dependencies
pip install praw requests yt-dlp websockets aiohttp aiofiles asyncpraw
# Optional transcription support
pip install faster-whisper
System Dependencies
- Windows:
- Chocolatey:
choco install ffmpeg - Scoop:
scoop install ffmpeg - Or download manually from ffmpeg.org
- Chocolatey:
- Linux (Debian/Ubuntu):
sudo apt update && sudo apt install ffmpeg python3-dev - macOS:
brew install ffmpeg
Package Installation
pip install -e .
Environment Setup
Copy the example file and update your credentials:
cp .env.example .env
Fill in your Reddit API credentials (REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_USERNAME, REDDIT_PASSWORD) in the .env file. Without these, the server functions in read-only mode.
Usage
Start the MCP server:
python server.py # default port 8050
python server.py --port 9001
Access API docs at: http://localhost:<port>/docs (use Bearer <MCPO_API_KEY> if set).
Auto-Comment Logic
The post_downloaded_video function auto-generates a comment if none is provided and an original TikTok URL exists:
- en:
Original link: <url> - pt:
Link original: <url> - both:
Original link / link original: <url>
Troubleshooting
- FFmpeg Not Found: Run
python install_ffmpeg.pyor install manually. - Reddit API Errors: Ensure your
.envfile is correctly set up. - WebSocket Errors: The system auto-recovers and retries; check logs for "WebSocket failed" messages.
- Fallback: If PRAW fails, a direct Reddit API call is attempted automatically.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.