sau-mcp

sau-mcp

MCP server wrapping social-auto-upload CLI for AI clients to verify cookies and publish videos/notes to Chinese social platforms (Douyin, Kuaishou, Xiaohongshu, Bilibili).

Category
Visit Server

README

sau-mcp

基于 social-auto-uploadsau CLI,封装成 MCP 服务,供 Cursor 等 AI 客户端调用。

调用方法与目录说明 → docs/MCP_API.md

支持:抖音 / 快手 / 小红书 / Bilibili 的 Cookie 校验与视频(图文)发布。不实现浏览器自动化本身,只做薄封装。

前置条件

  1. 本机已安装并可运行 social-auto-upload(见上游文档)。
  2. 在真实终端登录一次(不要走 MCP):
sau douyin login --account <account>
sau douyin check --account <account>

安装 sau-mcp

cd <SAU_MCP_ROOT>
python -m venv .venv
.venv\Scripts\activate
python -m pip install -e .

若已安装 uv,也可用 uv venv + uv pip install -e .

环境变量

变量 说明
SAU_CMD sau 可执行文件路径(已在 PATH 时可省略)
SAU_CWD social-auto-upload 仓库根目录
SAU_TIMEOUT 子进程超时秒数(默认 600

复制 .env.example,按本机路径填写。不要把真实路径或账号名提交进仓库。

本地运行(stdio)

$env:SAU_CWD="<SAU_ROOT>"
$env:SAU_CMD="<SAU_ROOT>/.venv/Scripts/sau.exe"
python -m sau_mcp.server

Cursor MCP 配置

参考 cursor-mcp.example.json,把占位符换成你的本机路径,再合并到 Cursor 的 MCP 设置或项目 .cursor/mcp.json

保存后重启 Cursor / 刷新 MCP。

MCP 工具

工具 作用
sau_health 检查 sau --help 与环境路径
douyin_check 抖音 Cookie 是否有效
douyin_upload_video 发布抖音视频
douyin_upload_note 发布抖音图文
kuaishou_* / xiaohongshu_* / bilibili_* 其他平台

登录(扫码 / 短信)通过 MCP 暴露,需在本机终端执行。

对接 n8n

n8n 建议用 Execute Command 直接调 sau;MCP 面向 AI 客户端。

sau douyin upload-video --account <account> --file <VIDEO_PATH> --title "<title>"

说明

  • 上传在 MCP 所在机器上跑浏览器自动化。
  • Cookie 会过期,发布前先 douyin_check
  • 属于模拟客户端发布,存在平台风控风险,请自行评估。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured