
LamaTok
io.github.subzeroidv1.1.2更新於 Oct 6, 2026
TikTok data via LamaTok: profiles, videos, comments, followers, hashtags, search, downloads.
概覽
讓助理透過 LamaTok API 取得 TikTok 資料,包括個人檔案、影片、留言、粉絲、主題標籤、搜尋結果與下載連結。
- 功能
- 啟動時依 LamaTok OpenAPI 規格產生 MCP 工具,每個工具對應一個 REST 端點,例如 get_v1_user_by_username 或 get_v1_media_comments_by_id。預設核心集提供約 23 個精選工具,涵蓋個人檔案與受眾、影片與留言、下載連結、主題標籤與搜尋;設定 LAMATOK_TOOLS=all 會開放所有未淘汰的端點。工具參數對應端點的 query 與 path 參數,回應以原始 JSON 文字傳回。
- 適用情境
- 當助理需要 TikTok 的個人檔案、影片、留言、粉絲、主題標籤或搜尋資料,或需要下載連結,用於研究、內容監測或報告時使用。它是唯讀資料來源,不用於發布內容或管理帳號。
- 執行需求
- 以 stdio 方式在使用者本機執行,通常透過 npx lamatok-mcp 啟動,因此需要 Node.js。必須提供 LamaTok 存取金鑰,放在 LAMATOK_KEY 環境變數中,並以 x-access-key 標頭送出;金鑰需在 lamatok.com 取得。需要連線至 api.lamatok.com 的網路,伺服器啟動時會抓取一次 OpenAPI 規格。選用變數可設定基底 URL、工具集、標籤篩選、逾時與回應大小上限。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 LamaTok,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
lamatok-mcp
[npm version] [npm downloads] [License: MIT]
MCP server for LamaTok — TikTok data API. Available on npm: lamatok-mcp.
Generates MCP tools from the LamaTok OpenAPI spec at startup. Tools map 1:1 to REST endpoints (GET /v1/user/by/username → get_v1_user_by_username). By default you get a core set of ~23 tools, one per task, each with a description that tells the assistant when to use it; LAMATOK_TOOLS=all exposes every non-deprecated endpoint.
Get 100 Free API Requests
Sign up with this link and get 100 free LamaTok requests — no credit card required. Enough to wire up the MCP server, try a few prompts in Claude/Cursor/Codex, and evaluate the data quality before committing.
Quick start
- Get an API key at lamatok.com.
- Add the server to your AI assistant.
- Ask your assistant something like:
- "Get the TikTok profile for @nasa."
- "List the last 10 videos by user_id 6707206320333226502."
- "Find recent TikTok videos for the hashtag
photography."
Claude Code
Claude Desktop
Add to claude_desktop_config.json:
Cursor / Windsurf
Same shape as Claude Desktop — put the block under mcpServers in the app's MCP config file.
Zed
Add to ~/.config/zed/settings.json:
OpenAI Codex
Append to ~/.codex/config.toml:
Tools
Tools are generated at startup from the live LamaTok OpenAPI spec. The default core set keeps one endpoint per task and drops version duplicates:
Core tools carry hand-written descriptions (what the tool does, when to prefer a sibling, pagination, billing) and every tool is annotated read-only. The list lives in src/curated.ts.
Set LAMATOK_TOOLS=all to expose every non-deprecated endpoint instead — same tool names as before, so existing prompts keep working. Tool names mirror their endpoint (GET /v1/user/by/username → get_v1_user_by_username); call tools/list over MCP for the current list with parameter schemas. /sys, Legacy, and System tag groups are excluded in both modes.
Configuration
Legacy, System, and /sys tags are excluded by default. Deprecated operations are also skipped.
If LAMATOK_URL points to a host other than api.lamatok.com, the server prints a warning on startup — your key will be sent there, so only use it for a self-hosted or proxied LamaTok.
Requests are sent with User-Agent: lamatok-mcp/<version>.
How it works
Tool arguments map to the endpoint's query and path parameters. The response body is returned as-is (JSON text). Non-2xx responses are surfaced as tool errors with the HTTP status and body.
Development
Run in watch mode:
Run tests (unit + stdio smoke tests against a local mock server, no network/API key required):
License
MIT
來源:README.md,提交 d1e33e9
工具
0版本歷史
1- v1.1.2最新Oct 6, 2026

