{"id":51167701,"url":"https://github.com/subzeroid/lamatok-mcp","last_synced_at":"2026-06-26T21:01:43.084Z","repository":{"id":352748738,"uuid":"1216447232","full_name":"subzeroid/lamatok-mcp","owner":"subzeroid","description":"MCP server for LamaTok — TikTok API tools auto-generated from the OpenAPI spec. Use from Claude Code, Claude Desktop, Cursor, OpenAI Codex, Zed, Windsurf.","archived":false,"fork":false,"pushed_at":"2026-04-20T23:52:19.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T01:36:11.108Z","etag":null,"topics":["ai-tools","auto-generated","claude","codex","cursor","data-api","lamatok","mcp","mcp-server","model-context-protocol","openapi","social-media","tiktok","tiktok-api"],"latest_commit_sha":null,"homepage":"https://lamatok.com/p/s6kl8mtn","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subzeroid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-20T23:13:51.000Z","updated_at":"2026-04-20T23:52:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/subzeroid/lamatok-mcp","commit_stats":null,"previous_names":["subzeroid/lamatok-mcp"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/subzeroid/lamatok-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Flamatok-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Flamatok-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Flamatok-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Flamatok-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subzeroid","download_url":"https://codeload.github.com/subzeroid/lamatok-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzeroid%2Flamatok-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34832916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-tools","auto-generated","claude","codex","cursor","data-api","lamatok","mcp","mcp-server","model-context-protocol","openapi","social-media","tiktok","tiktok-api"],"created_at":"2026-06-26T21:01:41.956Z","updated_at":"2026-06-26T21:01:43.068Z","avatar_url":"https://github.com/subzeroid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lamatok-mcp\n\n[![npm version](https://img.shields.io/npm/v/lamatok-mcp.svg)](https://www.npmjs.com/package/lamatok-mcp)\n[![npm downloads](https://img.shields.io/npm/dm/lamatok-mcp.svg)](https://www.npmjs.com/package/lamatok-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nMCP server for [LamaTok](https://lamatok.com) — TikTok data API. Available on npm: [`lamatok-mcp`](https://www.npmjs.com/package/lamatok-mcp).\n\nAuto-generates MCP tools from the LamaTok OpenAPI spec at startup, so every non-deprecated `GET` endpoint is exposed without hand-written wrappers. Tools map 1:1 to REST endpoints (`GET /v1/user/by/username` → `get_v1_user_by_username`).\n\n## Get 100 Free API Requests\n\n**[Sign up with this link](https://lamatok.com/p/s6kl8mtn)** 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.\n\n\u003e **[Get your free 100 requests here](https://lamatok.com/p/s6kl8mtn)**\n\n## Quick start\n\n1. Get an API key at [lamatok.com](https://lamatok.com).\n2. Add the server to your AI assistant.\n3. Ask your assistant something like:\n   - *\"Get the TikTok profile for @nasa.\"*\n   - *\"List the last 10 videos by user_id 6707206320333226502.\"*\n   - *\"Find recent TikTok videos for the hashtag `photography`.\"*\n\n### Claude Code\n\n```bash\nclaude mcp add lamatok -e LAMATOK_KEY=your-api-key -- npx -y lamatok-mcp\n```\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"lamatok\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lamatok-mcp\"],\n      \"env\": {\n        \"LAMATOK_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\n### Cursor / Windsurf\n\nSame shape as Claude Desktop — put the block under `mcpServers` in the app's MCP config file.\n\n### Zed\n\nAdd to `~/.config/zed/settings.json`:\n\n```json\n{\n  \"context_servers\": {\n    \"lamatok\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"lamatok-mcp\"],\n      \"env\": {\n        \"LAMATOK_KEY\": \"your-api-key\"\n      }\n    }\n  }\n}\n```\n\n### OpenAI Codex\n\nAppend to `~/.codex/config.toml`:\n\n```toml\n[mcp_servers.lamatok]\ncommand = \"npx\"\nargs = [\"-y\", \"lamatok-mcp\"]\n\n[mcp_servers.lamatok.env]\nLAMATOK_KEY = \"your-api-key\"\n```\n\n## Tools\n\nTools are generated at startup from the live [LamaTok OpenAPI spec](https://api.lamatok.com/openapi.json), so the list always matches the current API. ~19 tools across these groups (sizes as of this writing):\n\n| Group        | Tools | Examples                                                      |\n| ------------ | ----- | ------------------------------------------------------------- |\n| `v1/user`    | 9     | `get_v1_user_by_username`, `get_v1_user_by_id`, `get_v1_user_medias` |\n| `v1/media`   | 8     | `get_v1_media_info_by_id`, `get_v1_media_comments`            |\n| `v1/hashtag` | 2     | `get_v1_hashtag_medias_recent`                                |\n\nEach tool name mirrors its endpoint (`GET /v1/user/by/username` → `get_v1_user_by_username`). Your assistant can call `tools/list` over MCP to get the full, up-to-date list with parameter schemas. `/sys`, `Legacy`, and `System` tag groups are excluded by default.\n\n## Configuration\n\n| Variable                     | Description                                                                    | Required |\n| ---------------------------- | ------------------------------------------------------------------------------ | -------- |\n| `LAMATOK_KEY`                | Your LamaTok access key (sent as `x-access-key` header)                        | yes      |\n| `LAMATOK_URL`                | Base URL. Default: `https://api.lamatok.com`                                   | no       |\n| `LAMATOK_SPEC_URL`           | OpenAPI spec URL. Default: `${LAMATOK_URL}/openapi.json`                       | no       |\n| `LAMATOK_TAGS`               | Whitelist: only include operations with these tags (comma-separated)           | no       |\n| `LAMATOK_EXCLUDE_TAGS`       | Blacklist: additional tags to exclude (on top of `Legacy`, `System`, `/sys`)   | no       |\n| `LAMATOK_TIMEOUT_MS`         | Per-request timeout for API calls. Default: `30000`                            | no       |\n| `LAMATOK_SPEC_TIMEOUT_MS`    | Timeout for the startup spec fetch. Default: `60000`                           | no       |\n| `LAMATOK_MAX_RESPONSE_BYTES` | Max bytes read from each API response. Default: `10485760` (10 MB)             | no       |\n| `LAMATOK_MAX_SPEC_BYTES`     | Max bytes read from the OpenAPI spec. Default: `8388608` (8 MB)                | no       |\n\n`Legacy`, `System`, and `/sys` tags are excluded by default. Deprecated operations are also skipped.\n\nIf `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.\n\n## How it works\n\n```\nAI Assistant ←stdio→ lamatok-mcp ──https──\u003e api.lamatok.com\n                          │\n                          └─ fetches /openapi.json once on startup,\n                             builds one MCP tool per GET endpoint\n```\n\nTool 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.\n\n## Development\n\n```bash\ngit clone https://github.com/subzeroid/lamatok-mcp.git\ncd lamatok-mcp\nnpm install\nnpm run build\nLAMATOK_KEY=your-key node dist/index.js\n```\n\nRun in watch mode:\n\n```bash\nLAMATOK_KEY=your-key npm run dev\n```\n\nRun tests (unit + stdio smoke tests against a local mock server, no network/API key required):\n\n```bash\nnpm test\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzeroid%2Flamatok-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubzeroid%2Flamatok-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzeroid%2Flamatok-mcp/lists"}