Pastea

io.github.pastea-app由 GitHub 账号 pastea-app 发布v1.0.4更新于 Oct 24, 2026

Search, read and re-copy your Mac clipboard history from Pastea. Local, pairs with one click.

已验证STDIO仅桌面效率与工作流文件与存储

概览

AI 生成的概览

本地 MCP 桥接服务,让 AI 助手搜索、读取并重新复制 Mac 上 Pastea 的剪贴板历史,数据不离开本机。

可以做什么
搜索剪贴板历史与列表,涵盖文本、链接、文件名以及截图中识别出的文字,并完整读取单条剪贴内容,图片附带缩略图。列出历史记录和自建列表及其数量。将某条剪贴内容按原样放回系统剪贴板,由你自己粘贴。检查 Pastea 是否可连接、是否已连接,以及无法连接时该怎么做。
适用场景
适合让助手找回你之前复制过的内容,例如链接、代码片段或截图中的文字,或把某条旧剪贴内容放回剪贴板以便粘贴到其他应用。
运行要求
macOS 15 或更高版本,Pastea 1.3+ 且已订阅 Pastea Pro,并在 Pastea 设置中开启 Enable MCP。使用 npx 安装需要 Node.js 20+;Claude Desktop 无需额外依赖。首次连接需在 Pastea 中点击 Allow 授权。
安装前请注意
MCP 访问属于付费的 Pastea Pro 功能。助手可读取你的剪贴板历史,包括截图中识别的文字,因此你复制的内容可能进入该 AI 应用的上下文,之后受该应用自身隐私政策约束。它不能删除剪贴内容,也不能粘贴到其他应用,密码管理器标记为隐藏的项目不可见。访问令牌保存在本机,可在 Pastea 中撤销。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Pastea MCP

[GitHub release] [npm version] [CI] [license]

Local MCP server for Pastea. Give Claude, Cursor, Codex, VS Code and other AI tools access to your Mac's clipboard history — without anything leaving your Mac.

Your assistant can search what you copied, pull a clip into context (including the text Pastea reads inside your screenshots), and put a clip back on the clipboard for you to paste.

Pastea runs the MCP server itself, on 127.0.0.1 only. This package is the thin, dependency-free bridge that AI apps launch: it finds Pastea, asks it for access once — you click Allow in Pastea — and relays messages over stdio.

Install

Claude Desktop

One click from Pastea: open Settings → MCP & AI Tools, turn on Enable MCP, and click Claude Desktop. Claude Desktop opens with the Pastea extension ready to install.

Or find Pastea in Claude Desktop under Settings → Extensions → Browse extensions, or download pastea-mcp-<version>.mcpb from the latest release and double-click it.

The first time Claude uses it, Pastea asks you to allow the connection.

Every other AI app

Use add-mcp to connect Pastea to all your installed AI apps at once:

bash
npx add-mcp @pastea/mcp

Or connect each app yourself:

Claude Code

bash
claude mcp add pastea -- npx -y @pastea/mcp

Codex

bash
codex mcp add pastea -- npx -y @pastea/mcp

Cursor

[Add to Cursor]

VS Code

[Install in VS Code]

Anything else that runs stdio MCP servers:

json
{ "mcpServers": { "pastea": { "command": "npx", "args": ["-y", "@pastea/mcp"] } } }

The first time an app uses Pastea, Pastea shows "Allow <app> to use your clipboard history?" — click Allow and the tools appear.

Connect from Pastea

Every app above can also be connected from inside Pastea — Settings → MCP & AI Tools, click the app's chip. Cursor and VS Code open an install prompt; Claude Code, Windsurf and Codex get the exact command or config to paste, already carrying an access token, so no pairing prompt is needed.

[Pastea's MCP & AI Tools settings page]

What your assistant can do

ToolWhat it does
search_clipsSearch your clipboard history and lists — text, links, file names, and text recognized in screenshots.
get_clipRead one clip in full, with a thumbnail for pictures.
list_collectionsList your history and the lists you made, with counts.
copy_clipPut a clip back on the system clipboard, exactly as copied. You paste it yourself with ⌘V.
pastea_statusSays whether Pastea is reachable and connected, and what to do if not.

An AI tool can never delete a clip, never pastes into another app, and never sees items Pastea conceals (from password managers).

How pairing works

The bridge ships with no credentials. On first use it asks Pastea for access and Pastea shows "Allow Claude Desktop to use your clipboard history?" (or Cursor, Codex, …). Click Allow and the tools appear a moment later; click Don't Allow and nothing is granted — the assistant gets a pastea_status tool that explains the situation.

Connections are listed in Pastea → Settings → MCP & AI Tools → Connected AI Tools, where you can Revoke each one. Pastea then asks again only if you ask the assistant to reconnect.

Requirements

  • macOS 15 or later
  • Pastea 1.3+ with Pastea Pro, and Enable MCP turned on in Settings → MCP & AI Tools
  • For npx installs: Node.js 20+ (Claude Desktop needs nothing — it ships its own)

Privacy Policy

Pastea MCP runs locally on your Mac.

  • It connects only to Pastea on 127.0.0.1 and to nothing else. It makes no network requests to Nexo Labs or any third party, and carries no analytics or telemetry.
  • It moves clipboard data only between Pastea and the AI app that runs it, and only after you clicked Allow in Pastea. What that AI app does with clips it reads is governed by that app's own privacy policy.
  • It stores one thing: the access token Pastea issued when you clicked Allow, in ~/Library/Application Support/Pastea/MCP Bridge/tokens.json, readable by your user account only. Revoking the connection in Pastea invalidates it immediately; uninstalling Pastea removes the file.
  • Concealed clips are never available to it, and it cannot delete anything.

Full policy — what data Pastea processes, how it is stored, sharing, retention, and contact: https://pastea.app/privacy.

Troubleshooting

"Pastea isn't running, or its MCP endpoint is turned off." Open Pastea and turn on Enable MCP in Settings → MCP & AI Tools, then ask the assistant to call pastea_status.

"Pastea Pro is required." MCP access is a Pro feature. Subscribe in Pastea's Settings, then call pastea_status.

"Pastea is asking the user to allow this connection." Look for the Pastea window — it may be behind the AI app — and click Allow.

The tools vanished. The connection was revoked in Pastea, or Pastea was reset. Ask the assistant to call pastea_status to pair again.

Tools don't show up after connecting. Fully quit and reopen the AI app so it relaunches the bridge.

Changed Pastea's port? The bridge reads it from Pastea's preferences on every launch; restart the AI app.

Logs for Claude Desktop: ~/Library/Logs/Claude/mcp-server-Pastea.log. The bridge never logs the token.

Development

bash
npm installnpm test            # node --test, no networknpm run build       # tsc → dist/scripts/pack.sh     # validate + pack → build/pastea-mcp-<version>.mcpb + SHA256SUMS

Run it against a development Pastea by hand:

bash
PASTEA_MCP_URL=http://127.0.0.1:41418/mcp node dist/index.js

then type JSON-RPC lines on stdin (initialize, notifications/initialized, tools/list). Releases are cut by tagging v<version> (matching package.json, manifest.json, server.json and src/version.ts); the workflow packs the bundle and publishes it.

Contributing

Issues and pull requests welcome — see the issue tracker.

License

MIT © Nexo Labs

来源:README.md,提交 4cea06b

工具

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

版本历史

1
  1. v1.0.4最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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