Skip to main content
Glama
subzeroid

lamatok-mcp

by subzeroid

lamatok-mcp

npm version npm downloads License: MIT

LamaTok(TikTokデータAPI)用MCPサーバー。npmで利用可能: lamatok-mcp

起動時にLamaTokのOpenAPI仕様からMCPツールを自動生成するため、非推奨ではないすべての GET エンドポイントが手書きのラッパーなしで公開されます。ツールはRESTエンドポイントと1対1で対応します(GET /v1/user/by/usernameget_v1_user_by_username)。

100件の無料APIリクエストを獲得

こちらのリンクから登録 すると、100件のLamaTokリクエストが無料になります(クレジットカード不要)。MCPサーバーを接続し、Claude/Cursor/Codexでいくつかプロンプトを試し、契約前にデータ品質を評価するのに十分な量です。

無料の100リクエストはこちらから

Related MCP server: datalikers-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/usernameget_v1_user_by_username)。アシスタントはMCP経由で tools/list を呼び出し、パラメータスキーマを含む最新の完全なリストを取得できます。/sysLegacySystem タググループはデフォルトで除外されています。

設定

変数

説明

必須

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)

いいえ

LegacySystem/sys タグはデフォルトで除外されます。非推奨の操作もスキップされます。

LAMATOK_URLapi.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

ウォッチモードで実行:

LAMATOK_KEY=your-key npm run dev

テストを実行(ユニットテスト + ローカルモックサーバーに対するstdioスモークテスト、ネットワーク/APIキー不要):

npm test

ライセンス

MIT

Install Server
A
license - permissive license
C
quality
D
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    C
    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.
    100
    45
    5
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for DataLikers — 29 hand-built tools for Instagram & TikTok data: user search by demographics (gender/age/race/country), profiles, engagement, hashtags, locations, business accounts, top-users. Local stdio via npx -y datalikers-mcp, requires only DATALIKERS_KEY.
    12
    8
    MIT
  • A
    license
    Not graded
    quality
    C
    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.
    46
    1
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    TikTok creator toolkit for AI assistants. Four tools: download watermark-free videos by URL, look up curated 15-hashtag sets for 15 niches with strategy tips, retrieve best posting times for 12 countries, and generate viral hook formulas across 8 categories. Stdio transport, runs via npx -y tiktapdown-mcp, no API keys, no signup, free. MIT license.
    10
    41
    1
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.

  • Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.

  • Hosted MCP with 91 agent tools: X, domains, SEO, Maps, Trends, Search, YouTube, TikTok, and more.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/subzeroid/lamatok-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server