Skip to main content

linkdigest-mcp (Python)

把抖音、小红书、TikTok、YouTube、X 链接变成 AI 能读的文本:逐字稿、带大致时间的画面文字、 每张图的描述和 OCR、要点,可选爆款拆解(breakdown)和翻译。

Turn a Douyin, Xiaohongshu, TikTok, YouTube or X link into text an LLM can read.

This package is a thin client for the hosted service at linkdigest.dev: nothing is downloaded or transcribed on your machine, and it has no dependencies (Python 3.10+, standard library only; LangChain and LlamaIndex are optional extras). It installs:

from linkdigest import LinkDigest Python SDK — waits for long videos for you (GET /api/v1/digest/{jobId}?wait=20) and raises typed errors (402 carries a pay link)
linkdigest <url> command line — Markdown to stdout, --json, --breakdown, --translate en
linkdigest capture <file> a video you already have (a Douyin post its player will not serve: 分享 → 保存本地) — the sound and a few frames are extracted here with ffmpeg and sent; the video is never uploaded; --dry-run sends nothing
linkdigest-mcp stdio MCP server — the digest_url tool, forwarded to https://linkdigest.dev/mcp with your key
linkdigest.integrations.langchain.LinkDigestTool LangChain tool — pip install "linkdigest-mcp[langchain]"
linkdigest.integrations.llamaindex.LinkDigestReader LlamaIndex reader, one Document per link — pip install "linkdigest-mcp[llamaindex]"

Install from PyPI — linkdigest-mcp is built and uploaded by this repo's release workflow (trusted publisher, with attestations) — or from this repo:

pip install linkdigest-mcp
# or the unreleased main branch:
pip install "git+https://github.com/jcaiagent7143-ui/linkdigest-mcp#subdirectory=python"

All three read the API key from LINKDIGEST_API_KEY. Issue one at linkdigest.dev/app/keys — 10 free credits on sign-up, no card.

from linkdigest import LinkDigest

ld = LinkDigest()  # LINKDIGEST_API_KEY
d = ld.digest("https://v.douyin.com/xxxx/", breakdown=True)
print(d.title, d.credits)
print(d.markdown)
linkdigest "https://xhslink.com/o/xxxx" --breakdown
{
  "mcpServers": {
    "linkdigest": {
      "command": "uvx",
      "args": ["--from", "git+https://github.com/jcaiagent7143-ui/linkdigest-mcp#subdirectory=python", "linkdigest-mcp"],
      "env": { "LINKDIGEST_API_KEY": "ld_live_..." }
    }
  }
}

Full documentation (中文): README.zh-CN.md · English: README.md

MIT licensed.

Metadata

Release files for linkdigest-mcp 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linkdigest-mcp 0.2.5
File Size Uploaded Provenance Actions
linkdigest_mcp-0.2.5.tar.gz 59.2 kB With provenance Details for linkdigest_mcp-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linkdigest-mcp 0.2.5
File Interpreter ABI Platform Actions
linkdigest_mcp-0.2.5-py3-none-any.whl Python 3 none any Details for linkdigest_mcp-0.2.5-py3-none-any.whl

Total release size: 107.4 kB

Release files / linkdigest_mcp-0.2.5.tar.gz

Download URL linkdigest_mcp-0.2.5.tar.gz
Size 59.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3590a75bc43865cbbadcb74830c0483bec04e55b22337f3215533bccf1415875
BLAKE2b-256 checksum
How to use checksums
6f95b0aba51cc4a873169fe773cc23c7527afa89b061d705891d1f647ed3e4ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / linkdigest_mcp-0.2.5-py3-none-any.whl

Download URL linkdigest_mcp-0.2.5-py3-none-any.whl
Size 48.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76e01fabe5f1e16ab829c357f812e89a8166b4006bf0eee5818ff711b54d069b
BLAKE2b-256 checksum
How to use checksums
b494c72af6625496e6c1ef58b2bea40fb052cf4d24593b6ad69639bac9e51f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for linkdigest-mcp 0.2.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for linkdigest_mcp-0.2.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page