TiktokSAFE
A Model Context Protocol service for TikTok video discovery and metadata extraction.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
A Model Context Protocol service for TikTok video discovery and metadata extraction. This service provides a robust interface for searching TikTok videos by hashtags and retrieving trending content, with built-in anti-detection measures and error handling.
Features
- Search videos by hashtags
- Configurable video count per search (default: 30)
- Anti-bot detection measures
- Proxy support
- Automatic API session management
- Rate limiting and error handling
- Health status monitoring
Configuration
The service uses environment variables for configuration. Create a .env file with:
ms_token=your_tiktok_ms_token # Optional but recommended to avoid bot detection TIKTOK_PROXY=your_proxy_url # Optional proxy configuration
Installation and Setup
# Install dependencies poetry install # Install browser automation dependencies poetry run python -m playwright install # Start the service poetry run python -m tiktok_mcp_service.main
Claude Desktop Integration
Once your service is running, you can integrate it with Claude Desktop. Since we're using Poetry for dependency management, make sure to run the MCP CLI commands through Poetry:
# Navigate to the project directory cd /path/to/tiktok-mcp-service # Install the service in Claude Desktop with Poetry in editable mode poetry run mcp install tiktok_mcp_service/main.py --with-editable . -f .env # Optional: Install with a custom name poetry run mcp install tiktok_mcp_service/main.py --name "TikTok Video Search" --with-editable . -f .env
After installation, the service will be available in Claude Desktop and will run using Poetry for proper dependency management.
API Endpoints
Health Check
GET /health- Check service health and API initialization status
{
"status": "running",
"api_initialized": true,
"service": {
"name": "TikTok MCP Service",
"version": "0.1.0",
"description": "A Model Contex815cb5d8625fOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add tiktok-mcp-service -- uvx tiktok-mcp-service
{
"mcpServers": {
"tiktok-mcp-service": {
"command": "uvx",
"args": [
"tiktok-mcp-service"
]
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_trending_videos | read | Get trending TikTok videos |
search_videos | read | Search for TikTok videos based on search terms |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
815cb5d8625ffull audit observations/trust-audit/mcp-server/yap-audio__tiktok-1.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 815cb5d8625f | SAFE | B | 89 | first audit |
Questions
What is the Tiktok MCP server?
A Model Context Protocol service for TikTok video discovery and metadata extraction.
What tools does Tiktok expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Tiktok safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Tiktok need?
No credential environment variables were found in its source, so it appears to need none.
How current is this page?
The grade is for one exact copy of the source (815cb5d8625f), read on 2026-10-07. The repository is watched and re-audited when it changes.