如何通过 MCP 服务器将 ScreenApp 连接到 OpenClaw AI 代理
On this page
您的AI代理应该能够调取上周二的会议记录,而无需您手动翻找文件夹。借助ScreenApp的API和模型上下文协议(MCP),您可以让OpenClaw代理直接访问您的录音、转录稿和AI摘要。
本指南将详细介绍如何构建一个ScreenApp MCP服务器技能,以便您的OpenClaw代理可以通过Telegram、WhatsApp或Discord上的聊天消息,搜索录音、获取转录稿并对您的内容运行AI分析。
如果您只是想让助手读取自己的录音,其实不需要自己搭建。ScreenApp 自己托管了 MCP 服务器,地址是 https://screenapp.io/app/api/mcp,把这个网址粘贴到 Claude 或 ChatGPT 里并登录即可连接,步骤见 MCP 服务器设置指南。本文讲的是自己动手的做法,适合 OpenClaw 这类代理,也适合想自定义工具的场景。
如果您是会议录音MCP服务器的新手,请查看我们关于最佳会议录音MCP服务器的比较,了解ScreenApp的表现。
什么是OpenClaw?
OpenClaw是一个自托管网关,它将消息应用(WhatsApp、Telegram、Discord、iMessage)连接到AI编码代理。您在您的机器上运行一个单一进程,它将您的聊天应用桥接到一个始终可用的AI助手。
核心理念是:您可以通过手机向您的代理发送消息,然后它可以使用工具、读取文件、浏览网页,现在,还可以访问您的ScreenApp录音。
OpenClaw使用技能来教代理如何使用工具。每个技能都是一个文件夹,其中包含一个描述可用命令的SKILL.md文件。技能也可以封装MCP服务器,这就是我们连接ScreenApp的方式。
OpenClaw通过一个三层系统发现技能。在会话开始时,代理会扫描每个技能前置内容中的name和description。当某个技能看起来相关时,它会加载完整的SKILL.md文件。这意味着您的描述字段是代理是否选择您的技能的最重要因素。请像告诉同事这个技能是做什么的以及何时使用它一样来编写。
什么是MCP?
模型上下文协议(Model Context Protocol)是由Anthropic创建的一项标准,它允许AI模型访问外部数据源。可以将其视为AI应用的USB-C。MCP服务器不是将转录稿复制粘贴到ChatGPT中,而是让AI直接提取所需内容。
MCP服务器公开工具(AI可以采取的操作)和资源(AI可以读取的数据)。它可以像下面构建的那样在本地运行,也可以像ScreenApp自己的连接器那样由厂商托管。在下面的例子中,工具包括“搜索录音”、“获取转录稿”和“就视频提问”等。
MCP适用于Claude Desktop、ChatGPT Desktop、Cursor,并通过OpenClaw适用于任何消息应用。
ScreenApp API概述
ScreenApp 的 REST API 地址是 https://screenapp.io/app/api/v1。本指南用到的端点如下:
GET /videos列出您最新的 100 条录音,包括名称、日期和转录状态GET /videos/{id}返回单条录音的详细信息,包括转录是否已完成GET /videos/{id}/transcript返回完整转录,带时间戳和说话人标签POST /videos/{id}/ask根据转录或视频本身,回答关于单条录音的问题POST /videos上传新的音频或视频文件,或从链接导入,用于转录
该 API 不支持关键词搜索。代理会读取录音列表中的名称和日期来找到会议,这对近期通话很有效。如果要搜索大型资料库,请改为连接托管的 MCP 服务器:它带有搜索工具。
每个请求都以 Bearer 令牌的形式发送 API 令牌。通过 API 提出的每个问题都会消耗您套餐中的 AI 额度,与在应用中提问相同。
设置步骤
1. 获取您的 ScreenApp API 令牌
登录 ScreenApp,依次打开 Settings 和 API,在 API Tokens 下创建令牌。保持勾选 Read files 和 Ask AI 权限范围。一个令牌只在一个空间中有效(您的个人空间或某个团队),因此请确认 Key scope 显示的是存放您会议的空间。ScreenApp 只显示一次令牌,请把它复制到安全的地方。下一步会用到它。
2. 创建技能文件夹
OpenClaw 技能位于 ~/.openclaw/skills/(所有代理共享)或您的工作区的 /skills/ 文件夹中(每个代理)。技能文件夹名称必须与 SKILL.md 前置元数据中的 name 字段匹配。创建完整的结构:
mkdir -p ~/.openclaw/skills/screenapp/references
最终的文件夹布局:
screenapp/
├── SKILL.md # 必需:前置元数据 + 代理指令
├── claw.json # 用于 ClawHub 发布(可选)
└── references/
└── api-endpoints.md # 按需加载的详细端点文档
3. 编写 SKILL.md
description 字段决定了代理是否选择此技能。OpenClaw 在每个会话开始时扫描每个已安装技能的 name 和 description。包含触发短语和关键词变体,以便代理将其与有关转录、会议、录音和笔记的请求相匹配。
创建 ~/.openclaw/skills/screenapp/SKILL.md:
---
name: screenapp
description: Search meeting recordings and transcripts, get meeting notes and action items, transcribe audio and video, ask AI questions about recorded content. Use when the user mentions transcription, meeting notes, recordings, audio-to-text, speech-to-text, meeting search, or wants to find or analyze recorded meetings and calls.
metadata: {"clawdbot":{"emoji":"","requires":{"env":["SCREENAPP_API_TOKEN"]},"primaryEnv":"SCREENAPP_API_TOKEN","homepage":"https://screenapp.io"}}
---
# ScreenApp Integration
Access the user's ScreenApp recordings, transcripts, and AI analysis.
## Authentication
All requests require the SCREENAPP_API_TOKEN environment variable.
Headers: Authorization: Bearer $SCREENAPP_API_TOKEN
Base URL: https://screenapp.io/app/api/v1
## Available actions
### List recent recordings
GET /videos
Returns { "videos": [...] }: the most recent recordings, newest first, each with id, name, createdAt, duration and transcriptStatus. There is no keyword search. To find a specific meeting, read the names and dates in this list and pick the best match. Use this when the user asks about their latest meetings or a particular call.
### Check a recording
GET /videos/{id}
Returns one recording's details. transcriptStatus is "ready" once the transcript can be read.
### Get the transcript
GET /videos/{id}/transcript
Returns the full timestamped transcript with speaker labels. Use this to retrieve meeting notes, read back what was said, or get the full text of a call. A 409 response means the transcript is still processing.
### Ask AI a question about a recording
POST /videos/{id}/ask
Body: { "prompt": "your question here" }
Answers from the transcript and returns { "answer": "..." }. Add "analyze": "media" to the body when the question is about what was on screen, so the AI watches the video itself. Use this for summarizing meetings, extracting action items, or answering specific questions about what happened in a recording.
(可选)创建 references/api-endpoints.md 以获取更详细的参数文档。代理仅在需要时加载参考文件,从而保持初始技能扫描的轻量级。
4. 设置API令牌
将您的 ScreenApp 令牌添加到 OpenClaw 的环境中。编辑 ~/.openclaw/openclaw.json:
{
"env": {
"SCREENAPP_API_TOKEN": "your-token-here"
}
}
或者,如果您愿意,可以在您的 shell 配置文件中导出它。
5. 重启 OpenClaw
openclaw gateway restart
代理将在下一次会话中获取新技能。您可以通过询问代理:“你有什么技能?”来验证它是否已加载。
6. 测试
向您的 Telegram 或 WhatsApp 上的 OpenClaw 代理发送消息:
- “在我的 ScreenApp 录音中搜索产品路线图讨论”
- “获取我上次会议的会议记录”
- “昨天的站立会议有哪些行动项?”
代理将使用 ScreenApp 技能来获取数据并回答您的问题。
发布到 ClawHub
如果您希望其他 OpenClaw 用户找到并安装您的 ScreenApp 技能,请将其发布到 ClawHub,OpenClaw 的官方技能注册表。ClawHub 使用向量搜索,因此只要描述涵盖了这些术语,像“搜索会议记录”或“转录音频录音”这样的自然语言查询就会显示您的技能。
将 claw.json 清单添加到您的技能文件夹:
{
"name": "screenapp",
"version": "1.0.0",
"description": "Search meeting recordings, get transcripts, extract action items, and ask AI questions about recorded content via the ScreenApp API.",
"author": "your-clawhub-username",
"license": "MIT",
"permissions": ["network"],
"entry": "SKILL.md",
"tags": ["transcription", "meetings", "recordings", "note-taking", "productivity", "speech-to-text"],
"models": ["claude-*", "gpt-*", "gemini-*"],
"minOpenClawVersion": "0.8.0"
}
然后发布:
clawhub publish ~/.openclaw/skills/screenapp
发布后,任何人都可以使用以下命令安装它:
clawhub install screenapp
您的技能还将出现在 Moltbook 上,这是一个跨平台索引,列出了适用于 OpenClaw、Claude Code、Cursor 和其他 AI 编码工具的技能。Moltbook 会自动索引 ClawHub,因此无需额外步骤。
构建 MCP 服务器(高级)
如果您想要一个合适的 MCP 服务器而不是基于技能的方法,您可以将 ScreenApp API 封装在 Node.js MCP 服务器中。这使您能够与 Claude Desktop、Cursor 和任何其他 MCP 客户端兼容,而不仅仅是 OpenClaw。
先创建项目:
mkdir screenapp-mcp && cd screenapp-mcp
npm init -y && npm pkg set type=module
npm install @modelcontextprotocol/sdk zod
然后将以下代码保存为 index.js:
// screenapp-mcp/index.js
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const API_BASE = "https://screenapp.io/app/api/v1";
const TOKEN = process.env.SCREENAPP_API_TOKEN;
async function screenapp(path, options = {}) {
const res = await fetch(`${API_BASE}${path}`, {
...options,
headers: {
Authorization: `Bearer ${TOKEN}`,
"Content-Type": "application/json",
},
});
const data = await res.json().catch(() => ({}));
if (!res.ok) {
throw new Error(data.error ?? `ScreenApp API returned ${res.status}`);
}
return data;
}
function asText(data) {
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
}
const server = new McpServer({ name: "screenapp", version: "1.0.0" });
server.registerTool(
"list_recordings",
{ description: "List the user's newest ScreenApp recordings with names and dates" },
async () => asText(await screenapp("/videos"))
);
server.registerTool(
"get_transcript",
{
description: "Get the timestamped transcript of one ScreenApp recording",
inputSchema: { videoId: z.string() },
},
async ({ videoId }) => asText(await screenapp(`/videos/${videoId}/transcript`))
);
server.registerTool(
"ask_recording",
{
description: "Ask AI a question about one ScreenApp recording",
inputSchema: { videoId: z.string(), question: z.string() },
},
async ({ videoId, question }) =>
asText(
await screenapp(`/videos/${videoId}/ask`, {
method: "POST",
body: JSON.stringify({ prompt: question }),
})
)
);
await server.connect(new StdioServerTransport());
该服务器通过标准输入和输出使用 MCP 通信。您可以在 OpenClaw 配置中注册它,或在 Claude Desktop 中单独使用:命令为 node /path/to/screenapp-mcp/index.js,并将令牌放入 SCREENAPP_API_TOKEN。
用例
会议跟进:询问您的代理“Sarah 在昨天的电话会议中关于时间表说了什么?”它会拉取会议记录,找到相关部分,并给您答案。
每周总结:“总结我本周的所有会议”会从您的录音列表中挑出本周的通话,并生成一份综合报告。
行动项追踪:“我本月会议中有哪些未完成的行动项?”会阅读本月会议的转录,找出承诺事项和截止日期。
内容再利用:“将我上次网络研讨会录音转换为博客文章大纲”使用 AI 分析端点从您的视频生成结构化内容。
相关 ScreenApp 功能
FAQ
什么是 MCP 服务器?
MCP(模型上下文协议)服务器向 AI 模型公开数据和工具,它可以是本地运行的程序,也可以是登录后使用的托管服务。它允许像 Claude 或 OpenClaw 代理这样的 AI 助手访问外部服务,而无需手动复制粘贴数据。
我需要付费 ScreenApp 计划才能访问 API 吗?
不需要。所有套餐都可以在设置 > API 中生成 API 密钥,托管版 MCP 连接器也一样。不过录音必须先完成转录,API 或 MCP 工具才能读到转录稿,所以各套餐的用量额度依然适用。
我可以用这个配合 Claude Desktop 而不是 OpenClaw 吗?
是的。MCP 服务器方法适用于任何 MCP 兼容客户端。Claude Desktop、ChatGPT Desktop 和 Cursor 都支持 MCP 服务器。OpenClaw 额外提供了从移动消息应用程序访问它的优势。
我的录音数据会发送到 OpenClaw 的服务器吗?
不会。OpenClaw 是自托管的,完全在您的机器上运行。您的 ScreenApp API 令牌和录音数据都保留在本地。AI 模型会处理数据,但 OpenClaw 本身不会存储或转发您的内容。
代理如何找到合适的技能?
OpenClaw 会在每个会话开始时扫描每个已安装技能的 `name` 和 `description` 字段。当你问“查找我上次会议”之类的问题时,代理会将其与技能描述进行匹配,并加载最符合的技能的完整 SKILL.md 文件。这就是为什么描述应包含具体的触发短语,例如“转录”、“会议记录”和“录音”,而不是“帮助录音”之类的模糊语言。
MCP 服务器可以处理多少录音?
API 的录音列表只返回您最新的 100 条录音,因此本指南中的技能和服务器最适合处理近期会议。如需处理较早的录音或大型资料库,请连接 ScreenApp 托管的 MCP 服务器 `https://screenapp.io/app/api/mcp`,它可以搜索您的整个资料库。