logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

tktk-interface-adapter

Facilitates deep interaction with the TikTok ecosystem, enabling content retrieval, engagement analytics for virality assessment, and streamlined application-level communications via the TikNeuron bridge.

Author

tktk-interface-adapter logo

Seym0n

MIT License

Quick Info

GitHub GitHub Stars 105
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

tiktokapisviralitytiktok videostiktok accessintegrates tiktok

tiktok_icon_2 TikTok Interface Adapter (TKTK-MCP)

image (12)

This adapter module connects Claude AI and other applications to TikTok functionalities through the TikNeuron framework. It provides capabilities to: - Gauge the viral potential of TikTok media assets. - Extract published content metadata from TikTok posts. - Enable conversational interaction with TikTok video transcripts.

Exposed Utilities

fetch_video_captions

Purpose: Retrieves the textual transcription (captions) associated with a specified TikTok resource URL. This is crucial for context extraction. If no language specification is supplied, the system defaults to the automatically generated transcript.

Parameters: - tiktok_url (Mandatory): The full link to the TikTok item, such as https://www.tiktok.com/@username/video/1234567890 or its short form like https://vm.tiktok.com/1234567890 - language_code (Optional): ISO 639-1 code specifying the desired transcription language (e.g., 'en', 'es', 'fr').

retrieve_post_metadata

Purpose: Obtains comprehensive data points for a specific TikTok publication. The returned payload includes: - Video narrative/caption - Unique Video Identifier (ID) - Originator's user handle - Relevant topical tags (hashtags) - Key engagement figures: likes, shares, comments, views, and saves - Publication timestamp - Playback duration - Details on available closed captions/subtitles (language and source)

Parameters: - tiktok_url (Mandatory): The complete URL (e.g., https://www.tiktok.com/@username/video/1234567890 or https://vm.tiktok.com/1234567890) or just the standalone video ID (e.g., 7409731702890827041).

query_tiktok_assets

Purpose: Executes a search operation across the TikTok catalog based on provided keywords. Returns a paginated list of matching media items, complete with their descriptions, IDs, creator information, engagement stats, creation dates, duration, and subtitle availability.

Parameters: - query (Mandatory): The text string to use for searching TikTok content (e.g., 'quirky pets', 'modern choreography', 'culinary instruction'). - cursor (Optional): Token for retrieving subsequent result pages. - search_uid (Optional): Identifier to maintain continuity across a search session.

Prerequisites

Operation of this adapter necessitates the following environment setup: - NodeJS runtime, version 18 or newer (reference: https://nodejs.org/) - Git version control utility (reference: https://git-scm.com/) - An active TikNeuron subscription and associated MCP Access Key (reference: https://tikneuron.com/tools/tiktok-mcp)

Installation Procedure

  1. Obtain the repository source code:

git clone https://github.com/Seym0n/tiktok-mcp.git

  1. Install necessary software packages:

npm install

  1. Compile the source code:

npm run build

This action generates the executable file at build\index.js

Integration within Claude AI

Inject the following configuration block into your local mcpServers configuration file:

"tiktok-mcp": { "command": "node", "args": [ "path\build\index.js" ], "env": { "TIKNEURON_MCP_API_KEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } }

Ensure that 'path' points to the actual directory of the TikTok MCP installation, and substitute 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' with your validated TikNeuron secret key. The final structure for mcpServers should resemble:

{ "mcpServers": { "tiktok-mcp": { "command": "node", "args": [ "path\build\index.js" ], "env": { "TIKNEURON_MCP_API_KEY": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } } } }

WIKIPEDIA: XMLHttpRequest (XHR) is an API in the form of a JavaScript object whose methods transmit HTTP requests from a web browser to a web server. The methods allow a browser-based application to send requests to the server after page loading is complete, and receive information back. XMLHttpRequest is a component of Ajax programming. Prior to Ajax, hyperlinks and form submissions were the primary mechanisms for interacting with the server, often replacing the current page with another one.

== History == The concept behind XMLHttpRequest was conceived in 2000 by the developers of Microsoft Outlook. The concept was then implemented within the Internet Explorer 5 browser (1999). However, the original syntax did not use the XMLHttpRequest identifier. Instead, the developers used the identifiers ActiveXObject("Msxml2.XMLHTTP") and ActiveXObject("Microsoft.XMLHTTP"). As of Internet Explorer 7 (2006), all browsers support the XMLHttpRequest identifier. The XMLHttpRequest identifier is now the de facto standard in all the major browsers, including Mozilla's Gecko layout engine (2002), Safari 1.2 (2004) and Opera 8.0 (2005).

=== Standards === The World Wide Web Consortium (W3C) published a Working Draft specification for the XMLHttpRequest object on April 5, 2006. On February 25, 2008, the W3C published the Working Draft Level 2 specification. Level 2 added methods to monitor event progress, allow cross-site requests, and handle byte streams. At the end of 2011, the Level 2 specification was absorbed into the original specification. At the end of 2012, the WHATWG took over development and maintains a living document using Web IDL.

== Usage == Generally, sending a request with XMLHttpRequest has several programming steps.

Create an XMLHttpRequest object by calling a constructor: Call the "open" method to specify the request type, identify the relevant resource, and select synchronous or asynchronous operation: For an asynchronous request, set a listener that will be notified when the request's state changes: Initiate the request by calling the "send" method: Respond to state changes in the event listener. If the server sends response data, by default it is captured in the "responseText" property. When the object stops processing the response, it changes to state 4, the "done" state. Aside from these general steps, XMLHttpRequest has many options to control how the request is sent and how the response is processed. Custom header fields can be added to the request to indicate how the server should fulfill it, and data can be uploaded to the server by providing it in the "send" call. The response can be parsed from the JSON format into a readily usable JavaScript object, or processed gradually as it arrives rather than waiting for the entire text. The request can be aborted prematurely or set to fail if not completed in a specified amount of time.

== Cross-domain requests ==

In the early development of the World Wide Web, it was found possible to brea

See Also

`