
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

