Lousa

io.github.henriquepe由 GitHub 账号 henriquepe 发布v0.1.1更新于 Oct 24, 2026

A whiteboard where AI agents draw their explanations as hand-drawn animated diagrams

已验证STDIO仅桌面效率与工作流媒体与设计

概览

AI 生成的概览

Lousa 是一个本地 MCP 服务器加网页查看器,让 AI 智能体在实时白板上以手绘动画示意图的方式画出讲解内容。

可以做什么
根据由方框、箭头、圆柱、便签和文字组成的声明式场景创建白板,返回白板 id 和查看器链接,并可替换场景,使只有改动的元素重新播放动画。读取单个白板或列出白板,完成后删除白板。读取用户在查看器中选中的元素,让智能体精确针对这些元素操作。在浏览器标签页中逐笔渲染成手绘风格示意图。
适用场景
适合希望智能体以可视化方式而非大段文字讲解架构、流程或概念时使用,也适合在查看器中点选元素、实时迭代示意图的场景。
运行要求
通过 npx 作为本地进程运行,需要 Node.js 18.17 或更高版本;stdio 端点会自动启动本地服务器,查看器位于 127.0.0.1:4666。自建共享服务器时使用 LOUSA_TOKEN、LOUSA_URL、LOUSA_BUCKET、LOUSA_DATA_DIR 等环境变量。
安装前请注意
白板默认 12 小时后过期(滑动续期),除非将 TTL 设为零,否则内容不会永久保留。自建服务器时,LOUSA_TOKEN 控制白板列表、创建、删除和 MCP 端点,而每个白板的链接相当于能力链接,持有链接的人即可访问该白板。白板存储在本地文件系统或 S3 存储桶中。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Lousa,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Lousa

A whiteboard where your AI agent draws its explanations.

[Your agent drawing a rate limiter explanation, stroke by stroke]

Ask your agent "explain this visually" and it sketches an animated, hand-drawn diagram on a live board — instead of another wall of text. Lousa is an MCP server + web viewer: the agent authors a declarative scene (boxes, arrows, cylinders, notes), and the board renders it stroke by stroke, as if someone were drawing it in front of you.

Lousa is Portuguese for the classic school blackboard.

Why it's different

  • The agent is the artist. No prompt box, no OCR — your coding agent already has the context and draws through typed MCP tools.
  • Live, incremental drawing. Follow-ups edit the scene; the open tab animates only what changed, like watching the diagram evolve.
  • Point at things. Click elements in the viewer to select them, then tell your agent "improve what I selected" — it reads your selection through get_selection and targets exactly that.
  • Boards expire by default (12h, sliding) — a whiteboard, not a document graveyard. ttlHours: 0 keeps a board forever.

Quick start

Requires Node.js 18.17+.

bash
# Claude Codeclaude mcp add lousa -- npx -y lousa mcp
# or run the server directlynpx lousa            # viewer at http://127.0.0.1:4666

Any MCP host works — for stdio configuration use command npx, args ["-y", "lousa", "mcp"]. The stdio endpoint auto-starts the local server, so the viewer is always available. Then ask your agent to "draw how our auth flow works" and open the URL it returns.

MCP tools

ToolWhat it does
create_boardCreates a board from a scene, returns {id, url}
update_boardReplaces the scene; unchanged elements stay byte-identical so only changes animate
get_board / list_boardsRead boards
get_selectionWhat the user selected in the viewer (ids + full elements)
delete_boardDeletes a board

The scene is a JSON array of elements — box, ellipse, diamond, cylinder, arrow (connects ids), line, text, note — rendered with rough.js. The full schema ships inside the tool definitions; agents need no extra setup.

Self-hosting a shared server

Run lousa on any Node host and point machines at it:

bash
LOUSA_TOKEN=<secret> HOST=0.0.0.0 npx lousa        # serverLOUSA_URL=https://your-host LOUSA_TOKEN=<secret> npx lousa mcp   # each client

LOUSA_TOKEN gates board listing/creation/deletion and /mcp; per-board URLs act as capability links. AWS Lambda + S3 deployment is supported out of the box (lambda.js handler + LOUSA_BUCKET for storage); any HTTPS front (API Gateway, etc.) works.

Env varDefaultPurpose
PORT / HOST4666 / 127.0.0.1server bind
LOUSA_DATA_DIR~/.lousa/boardsfilesystem board storage
LOUSA_BUCKET—use S3 storage instead of filesystem
LOUSA_TOKEN—require bearer token (header or ?t=) on global routes and MCP
LOUSA_URL—lousa mcp proxies to this remote server
LOUSA_DEFAULT_TTL_HOURS12default board expiry

Development

bash
npm installnpm test          # node --testnode cli.js       # local server

License

AGPL-3.0 © Henrique Pires

来源:README.md,提交 c2dd696

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分