Skip to main content
Glama
LamaTok — TikTok MCP

LamaTok — TikTok MCP

lamatok-mcp

npm version npm downloads License: MIT

LamaTok — TikTok 데이터 API용 MCP 서버입니다. npm에서 이용 가능합니다: lamatok-mcp.

시작 시 LamaTok OpenAPI 사양에서 MCP 도구를 자동으로 생성하므로, 더 이상 사용되지 않는(deprecated) GET 엔드포인트를 제외한 모든 엔드포인트가 별도의 수동 래퍼 없이 노출됩니다. 도구는 REST 엔드포인트와 1:1로 매핑됩니다 (GET /v1/user/by/username → get_v1_user_by_username).

100개의 무료 API 요청 받기

**이 링크로 가입**하시면 100개의 무료 LamaTok 요청을 받으실 수 있습니다. 신용카드는 필요하지 않습니다. MCP 서버를 연결하고, Claude/Cursor/Codex에서 몇 가지 프롬프트를 테스트하며, 본격적으로 사용하기 전에 데이터 품질을 평가하기에 충분한 양입니다.

여기서 100개의 무료 요청 받기

Related MCP server: DataLikers — Instagram & TikTok MCP

빠른 시작

  1. lamatok.com에서 API 키를 받으세요.

  2. AI 어시스턴트에 서버를 추가하세요.

  3. 어시스턴트에게 다음과 같이 질문해 보세요:

    • "@nasa의 TikTok 프로필을 가져와줘."

    • "user_id 6707206320333226502의 최근 동영상 10개를 나열해줘."

    • "해시태그 photography에 대한 최근 TikTok 동영상을 찾아줘."

Claude Code

claude mcp add lamatok -e LAMATOK_KEY=your-api-key -- npx -y lamatok-mcp

Claude Desktop

claude_desktop_config.json에 추가하세요:

{
  "mcpServers": {
    "lamatok": {
      "command": "npx",
      "args": ["-y", "lamatok-mcp"],
      "env": {
        "LAMATOK_KEY": "your-api-key"
      }
    }
  }
}

Cursor / Windsurf

Claude Desktop과 동일한 방식입니다. 앱의 MCP 설정 파일 내 mcpServers 블록 아래에 추가하세요.

Zed

~/.config/zed/settings.json에 추가하세요:

{
  "context_servers": {
    "lamatok": {
      "command": "npx",
      "args": ["-y", "lamatok-mcp"],
      "env": {
        "LAMATOK_KEY": "your-api-key"
      }
    }
  }
}

OpenAI Codex

~/.codex/config.toml에 추가하세요:

[mcp_servers.lamatok]
command = "npx"
args = ["-y", "lamatok-mcp"]

[mcp_servers.lamatok.env]
LAMATOK_KEY = "your-api-key"

도구

도구는 시작 시 라이브 LamaTok OpenAPI 사양에서 생성되므로, 목록은 항상 현재 API와 일치합니다. (작성 시점 기준) 다음 그룹에 걸쳐 약 19개의 도구가 있습니다:

그룹

도구 수

예시

v1/user

9

get_v1_user_by_username, get_v1_user_by_id, get_v1_user_medias

v1/media

8

get_v1_media_info_by_id, get_v1_media_comments

v1/hashtag

2

get_v1_hashtag_medias_recent

각 도구 이름은 해당 엔드포인트를 반영합니다 (GET /v1/user/by/username → get_v1_user_by_username). 어시스턴트는 MCP를 통해 tools/list를 호출하여 매개변수 스키마가 포함된 최신 전체 목록을 가져올 수 있습니다. /sys, Legacy, System 태그 그룹은 기본적으로 제외됩니다.

설정

변수

설명

필수 여부

LAMATOK_KEY

LamaTok 액세스 키 (x-access-key 헤더로 전송됨)

예

LAMATOK_URL

기본 URL. 기본값: https://api.lamatok.com

아니요

LAMATOK_SPEC_URL

OpenAPI 사양 URL. 기본값: ${LAMATOK_URL}/openapi.json

아니요

LAMATOK_TAGS

화이트리스트: 해당 태그가 포함된 작업만 포함 (쉼표로 구분)

아니요

LAMATOK_EXCLUDE_TAGS

블랙리스트: 제외할 추가 태그 (Legacy, System, /sys 외)

아니요

LAMATOK_TIMEOUT_MS

API 호출당 타임아웃. 기본값: 30000

아니요

LAMATOK_SPEC_TIMEOUT_MS

시작 시 사양 가져오기 타임아웃. 기본값: 60000

아니요

LAMATOK_MAX_RESPONSE_BYTES

각 API 응답에서 읽을 최대 바이트 수. 기본값: 10485760 (10 MB)

아니요

LAMATOK_MAX_SPEC_BYTES

OpenAPI 사양에서 읽을 최대 바이트 수. 기본값: 8388608 (8 MB)

아니요

Legacy, System, /sys 태그는 기본적으로 제외됩니다. 더 이상 사용되지 않는(deprecated) 작업도 건너뜁니다.

LAMATOK_URL이 api.lamatok.com 이외의 호스트를 가리키는 경우, 서버는 시작 시 경고를 출력합니다. 키가 해당 주소로 전송되므로, 직접 호스팅하거나 프록시된 LamaTok에만 사용하십시오.

작동 원리

AI Assistant ←stdio→ lamatok-mcp ──https──> api.lamatok.com
                          │
                          └─ fetches /openapi.json once on startup,
                             builds one MCP tool per GET endpoint

도구 인수는 엔드포인트의 query 및 path 매개변수에 매핑됩니다. 응답 본문은 그대로(JSON 텍스트) 반환됩니다. 2xx가 아닌 응답은 HTTP 상태 코드와 본문을 포함한 도구 오류로 표시됩니다.

개발

git clone https://github.com/subzeroid/lamatok-mcp.git
cd lamatok-mcp
npm install
npm run build
LAMATOK_KEY=your-key node dist/index.js

감시(watch) 모드에서 실행:

LAMATOK_KEY=your-key npm run dev

테스트 실행 (단위 테스트 + 로컬 모의 서버에 대한 stdio 스모크 테스트, 네트워크/API 키 불필요):

npm test

라이선스

MIT

Available Tools

23 tools
get_v1_hashtag_infoA
Read-only

Get a TikTok hashtag (challenge) by name: pass hashtag without #. Use it to get the hashtag id that get_v1_hashtag_medias needs. Live request to TikTok, billed per call. (GET /v1/hashtag/info)

Inputs: hashtag (required).

get_v1_hashtag_mediasA
Read-only

List videos under a TikTok hashtag, one page per call. Pass the hashtag id (from get_v1_hashtag_info, not the name); count sets the page size (default 30) and cursor pages through. Use get_v2_search to search by free text instead. Live request to TikTok, billed per call. (GET /v1/hashtag/medias)

Inputs: id (required), count, cursor.

get_v1_media_by_idA
Read-only

Get a TikTok video by numeric video id. Use it when you have the id from another tool; use get_v1_media_by_url when you have a link. Returns the video object; use get_v1_media_comments_by_id for its comments. Live request to TikTok, billed per call. (GET /v1/media/by/id)

Inputs: id (required).

get_v1_media_by_urlA
Read-only

Get a TikTok video by its link. Use it when you have a tiktok.com URL; use get_v1_media_by_id when you already have the numeric video id. Returns the video object; pass its id to the comment tools. Live request to TikTok, billed per call. (GET /v1/media/by/url)

Inputs: url (required).

get_v1_media_comment_replies_by_idA
Read-only

Get replies under one comment of a TikTok video, one page per call. Use it to read a thread; use get_v1_media_comments_by_id for the top-level comments. Pass media_id and comment_id (both from the comments tool); count sets the page size and cursor pages through. Live request to TikTok, billed per call. (GET /v1/media/comment/replies/by/id)

Inputs: media_id (required), comment_id (required), count, cursor.

get_v1_media_comments_by_idA
Read-only

Get comments on a TikTok video, one page per call. Use get_v1_media_comment_replies_by_id for replies under one comment. Pass the video id; count sets the page size (default 30) and cursor pages through. Live request to TikTok, billed per call. (GET /v1/media/comments/by/id)

Inputs: id (required), count, cursor.

get_v1_media_music_download_by_idA
Read-only

Get a download link for the audio track of a TikTok video, by video id. Returns the file URL and the HTTP headers to send with it; the file itself is not downloaded. Use get_v1_media_music_download_by_url when you have a link and get_v1_media_video_download_by_id for the video file. Live request to TikTok, billed per call. (GET /v1/media/music/download/by/id)

Inputs: id (required).

get_v1_media_music_download_by_urlA
Read-only

Get a download link for the audio track of a TikTok video, by the video's URL. Returns the file URL and the HTTP headers to send with it; the file itself is not downloaded. Use get_v1_media_music_download_by_id when you have the video id and get_v1_media_video_download_by_url for the video file. Live request to TikTok, billed per call. (GET /v1/media/music/download/by/url)

Inputs: url (required).

get_v1_media_video_download_by_idA
Read-only

Get a download link for a TikTok video by video id. Returns the file URL and the HTTP headers to send with it; the file itself is not downloaded. watermark (default true) selects the watermarked version. Use get_v1_media_video_download_by_url when you have a link and get_v1_media_music_download_by_id for the audio track only. Live request to TikTok, billed per call. (GET /v1/media/video/download/by/id)

Inputs: id (required), watermark.

get_v1_media_video_download_by_urlA
Read-only

Get a download link for a TikTok video by its URL. Returns the file URL and the HTTP headers to send with it; the file itself is not downloaded. watermark (default true) selects the watermarked version. Use get_v1_media_video_download_by_id when you have the video id and get_v1_media_music_download_by_url for the audio track only. Live request to TikTok, billed per call. (GET /v1/media/video/download/by/url)

Inputs: url (required), watermark.

get_v1_user_by_usernameA
Read-only

Get a TikTok profile by username (without @). Use it first for any account; if it answers 404 ProfileUnavailable, use get_v3_user_by_username, which also returns profiles TikTok does not serve on the web. Returns the user object; take the user's secUid from it for the by-secUid tools. Live request to TikTok, billed per call. (GET /v1/user/by/username)

Inputs: username (required).

get_v1_user_followers_by_secUidA
Read-only

List a TikTok user's followers by secUid, one page per call. Use it when you already have the secUid from a profile; use get_v1_user_followers_by_username when you only have a handle. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/followers/by/secUid)

Inputs: secUid (required), count, page_id.

get_v1_user_followers_by_usernameA
Read-only

List a TikTok user's followers by username, one page per call. Use it when you have a handle; use get_v1_user_followers_by_secUid when you already have the secUid and get_v1_user_following_by_username for accounts the user follows. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/followers/by/username)

Inputs: username (required), count, page_id.

get_v1_user_following_by_secUidA
Read-only

List accounts a TikTok user follows by secUid, one page per call. Use it when you already have the secUid from a profile; use get_v1_user_following_by_username when you only have a handle. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/following/by/secUid)

Inputs: secUid (required), count, page_id.

get_v1_user_following_by_usernameA
Read-only

List accounts a TikTok user follows by username, one page per call. Use it when you have a handle; use get_v1_user_following_by_secUid when you already have the secUid and get_v1_user_followers_by_username for the user's followers. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/following/by/username)

Inputs: username (required), count, page_id.

get_v1_user_playlists_by_secUidA
Read-only

List a TikTok user's playlists by secUid, one page per call. Use it when you already have the secUid from a profile; use get_v1_user_playlists_by_username when you only have a handle. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/playlists/by/secUid)

Inputs: secUid (required), count, page_id.

get_v1_user_playlists_by_usernameA
Read-only

List a TikTok user's playlists by username, one page per call. Use it when you have a handle; use get_v1_user_playlists_by_secUid when you already have the secUid, and get_v2_user_medias_by_secUid for all of the user's videos. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/playlists/by/username)

Inputs: username (required), count, page_id.

get_v1_user_suggested_by_secUidA
Read-only

List the accounts TikTok suggests as related to a user, by secUid, one page per call. Use it when you already have the secUid from a profile; use get_v1_user_suggested_by_username when you only have a handle. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/suggested/by/secUid)

Inputs: secUid (required), count, page_id.

get_v1_user_suggested_by_usernameA
Read-only

List the accounts TikTok suggests as related to a user, by username, one page per call. Use it to find similar accounts when you have a handle; use get_v1_user_suggested_by_secUid when you already have the secUid and get_v2_search to search by keyword instead. For the next page pass next_page_id from the previous response as page_id; count sets the page size (default 30). Live request to TikTok, billed per call. (GET /v1/user/suggested/by/username)

Inputs: username (required), count, page_id.

get_v2_user_likes_by_secUidA
Read-only

List videos a TikTok user has liked, one page per call. Use get_v2_user_medias_by_secUid for the user's own videos. Pass the user's secUid (from the profile tool); count sets the page size and cursor pages through. Live request to TikTok, billed per call. (GET /v2/user/likes/by/secUid)

Inputs: secUid (required), count, cursor.

get_v2_user_medias_by_secUidA
Read-only

List a TikTok user's videos, one page per call. Use it to read an account's content; use get_v2_user_likes_by_secUid for videos the user liked and get_v1_media_by_id for one video's details. Pass the user's secUid (from the profile tool); count sets the page size and max_cursor pages through. Live request to TikTok, billed per call. (GET /v2/user/medias/by/secUid)

Inputs: secUid (required), count, max_cursor.

get_v3_user_by_usernameA
Read-only

Get a TikTok profile by username, including profiles TikTok does not serve on the web (the ones get_v1_user_by_username answers with 404 ProfileUnavailable). Use it as the fallback when the v1 tool fails; the response has the same shape. Live request to TikTok, billed as 1 request per call and 2-3 for a restored profile. (GET /v3/user/by/username)

Inputs: username (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 23 tools

    Disambiguation4/5

    Tools are mostly distinct by resource and identifier type (username vs secUid, id vs url), and descriptions explicitly cross-reference alternatives. However, the many near-duplicate pairs (e.g. following by username vs secUid, download by id vs url) require careful reading to avoid misselection.

    Naming Consistency5/5

    All tool names follow a highly consistent snake_case pattern: get_<version>_<resource>_<action>_<qualifier>. The version prefixes (v1, v2, v3) are the only variation and clearly reflect API endpoints.

    Tool Count3/5

    23 tools is on the heavy side for a single MCP server, falling into the 16-25 borderline range. While each tool maps to a distinct TikTok API endpoint, the set feels large and could overwhelm an agent without strong routing guidance.

    Completeness4/5

    The surface covers user profiles, relationships, playlists, media, downloads, comments, hashtags, and search well. Minor gaps exist, such as no direct user lookup by secUid and no trending/live endpoints, but core read-only TikTok workflows are supported.

    Maintenance

    ActivitySlowing
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      MCP server for HikerAPI — auto-generates 100+ Instagram tools (profiles, posts, reels, stories, comments, hashtags, locations) from the live OpenAPI spec. Local stdio via npx -y hikerapi-mcp, requires only HIKERAPI_KEY.
      44
      143 npm
      9
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for DataLikers — 51 tools for Instagram & TikTok data: Instagram user search by demographics (gender/age/race/country/city), profiles, engagement, posts, comments, hashtags, locations, stories, business accounts; TikTok users, videos, comments, hashtags, playlists. Local stdio via npx -y datalikers-mcp, requires only DATALIKERS_API_KEY.
      53 npm
      10
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server exposing the full CutPro v1 API as 34 tools for AI clients — analyze videos, submit clipping jobs, manage clips, render, and publish posts. Supports stdio, Streamable HTTP, and OAuth 2.1.
      157 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server that exposes FortiCNAPP (formerly Lacework) API 2.0 operations as typed, auth-aware tools generated from the API spec at startup, supporting both local stdio and remote Streamable HTTP transports.
      MIT