@gecho-ai/gecho-bridge
v1.1.5
Published
MCP Bridge for TikTok Extension Relay - Connecting LLMs to TikTok via Chrome Extension
Downloads
857
Readme
Gecho Bridge 🚀
Gecho Bridge is an MCP (Model Context Protocol) server that connects AI Agents (like Claude Desktop, Cursor, or OpenClaw) to TikTok via a Chrome extension. It allows your AI models to search and retrieve TikTok video metadata directly from the browser.
Features
- Automated Search: Search TikTok with keywords and auto-scroll to fetch results.
- Data Retrieval: Get video IDs, titles, like counts, and play URLs.
- Dual-Layer Architecture: A lightweight MCP Client that automatically manages a persistent Service Layer.
- Lazy Start: The bridge automatically starts the background service when needed.
Installation
1. Install via npm
npm install -g @gecho-ai/gecho-bridge2. Install Chrome Extension
Ensure you have the Gecho TikTok Extension installed and active in your Chrome browser. The bridge communicates with this extension via WebSocket.
Configuration
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"gecho-bridge": {
"command": "npx",
"args": ["-y", "@gecho-ai/gecho-bridge@latest"]
}
}
}Cursor
Go to Settings -> MCP. Add a new MCP server:
- Name: gecho-bridge
- Type: command
- Command:
npx -y @gecho-ai/gecho-bridge@latest
Save Path Configuration
Search results are persisted to a JSON file. You can control the save directory in two ways:
- Pass
save_dirin the MCP tool call arguments. - Set environment variable
GECHO_DATA_DIRfor the MCP process.
Priority order used by the service:
save_dirfrom request argumentsGECHO_DATA_DIRenvironment variable- Default
datadirectory (path.join(__dirname, "..", "data"))
File naming:
- Result file pattern:
<query>_search_results.json - Query text is sanitized to a safe file name before writing.
Example (Claude Desktop with GECHO_DATA_DIR):
{
"mcpServers": {
"gecho-bridge": {
"command": "npx",
"args": ["-y", "@gecho-ai/gecho-bridge@latest"],
"env": {
"GECHO_DATA_DIR": "/Users/yourname/gecho-data"
}
}
}
}Example (Cursor command with env):
GECHO_DATA_DIR=/Users/yourname/gecho-data npx -y @gecho-ai/gecho-bridge@latestUsage
Once configured, you can ask your AI:
- "Search TikTok for 'cooking recipes'"
- "Find trending TikTok videos about AI agents"
- "Search TikTok for 'computer' and save to
/Users/yourname/data(save_dir)"
Development
If you want to run the bridge locally from source:
git clone https://github.com/gecho-ai/bridge.git
cd bridge
npm install
node mcp-client.jsArchitecture
- Service Layer (server.js): Maintains the WebSocket connection with the Chrome extension (Port 18792) and exposes an HTTP API (Port 18793).
- Client Layer (mcp-client.js): Implements the MCP Stdio protocol and forwards requests to the Service Layer.
License
MIT
