Otskit Mcp

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

Stamp, upgrade, and verify Bitcoin timestamps via AI agents. No API keys required.

已验证STDIO仅桌面金融开发者工具

概览

AI 生成的概览

本地 MCP 服务器,让 AI 助手用 OpenTimestamps 为文件或 SHA-256 哈希打时间戳、查询比特币确认并验证证明。

可以做什么
将 SHA-256 哈希或本地文件提交到公共 OpenTimestamps 日历打时间戳,并在本地保存证明。查询待确认时间戳的比特币确认状态并进行升级。对照比特币区块链验证已存时间戳或外部 .ots 证明文件。离线检查已存证明、按状态列出时间戳,并计算本地文件的 SHA-256 哈希。
适用场景
适合需要助手证明某文档或哈希在某个比特币区块之前已存在,或在对话中跟踪和验证 OpenTimestamps 证明、而不使用命令行的场景。
运行要求
以本地进程运行,通过 npm 包 @otskit/mcp 安装,需要 Node.js 20 或更高版本。无需 API 密钥。需要访问公共 OpenTimestamps 日历的网络连接,并在用户主目录下的本地目录写入数据。
安装前请注意
打时间戳会把文件的 SHA-256 哈希发送到公共 OpenTimestamps 日历,哈希因此对第三方可见。证明在比特币确认前一直处于待确认状态,可能耗时数小时。服务器会写入本地 SQLite 数据库,安装配置时可能修改代理配置文件并保留备份。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[OTSkit MCP]

@otskit/mcp

[CI] [npm version] [npm downloads] [TypeScript] [Node] [Coverage] [Quality Gate] [License] [smithery badge]

OpenTimestamps MCP server - stamp, upgrade, and verify Bitcoin timestamps via AI agents.

Exposes a set of tools to any MCP-compatible agent so it can timestamp documents, monitor confirmation status, and verify proofs against the Bitcoin blockchain - all from a conversation.

This is an independent implementation of the OpenTimestamps protocol. It is not affiliated with, endorsed by, or maintained by the OpenTimestamps project.

[OTSkit MCP server on Glama — security, license and quality rating plus download count]

Note on confirmation times: After stamping, a proof is pending until Bitcoin confirms it. Confirmations typically arrive within ~60 minutes, but can take several hours during network congestion. Use ots-mcp watch or upgrade_timestamp to monitor. A pending proof is not a failed proof.

Install

bash
npm install -g @otskit/mcp

Agent setup

bash
ots-mcp setup claude        # Claude Desktopots-mcp setup claude-code   # Claude Code CLIots-mcp setup codex         # Codex CLI

Each command writes the MCP entry into the agent's config file, makes a .bak backup if the file already exists, and skips if ots-mcp is already configured. Restart the agent afterwards to apply the changes.

CLI commands

CommandDescription
ots-mcp serveStart the MCP server (stdio transport)
ots-mcp stamp <sha256>Stamp a SHA-256 hash against Bitcoin calendars
ots-mcp upgrade <id>Check if a pending stamp has been confirmed
ots-mcp verify <id>Verify a stamp against Bitcoin
ots-mcp list [status]List stamps (pending / confirmed / failed)
ots-mcp watch [minutes]Monitor pending stamps and attempt due upgrades (default: 30 min, minimum: 15 min)
ots-mcp check-pendingRun one upgrade pass over all pending stamps
ots-mcp scheduler install|remove|statusManage OS-level scheduler for auto-upgrades
ots-mcp backup [dest]Backup the SQLite database
ots-mcp setup <claude|claude-code|codex>Configure MCP for an agent

MCP tools exposed to agents

ToolDescription
create_timestampStamp a SHA-256 hash against 4 public OTS calendars
upgrade_timestampCheck if a pending stamp has been confirmed in Bitcoin
verify_timestampVerify a stamp - proves hash existed before a given Bitcoin block
verify_external_proofVerify a whitelisted local file against its external .ots proof, without changing the local stamp store
inspect_timestampInspect a stored proof file without network calls
list_pendingList stamps with status, retry count, and filters
watchOpen a terminal window monitoring pending stamps and attempting due upgrades
hash_fileCompute the SHA-256 of a local file and return it as a 64-char hex string (no network calls)
stamp_fileCompute SHA-256 of a local file and stamp it on Bitcoin in one step

Data directory

All data is stored in ~/.ots-mcp/:

text
~/.ots-mcp/  ots-mcp.db       # SQLite database (stamps, proof files)  config.json      # Optional config overrides  ots-mcp.log      # Log file

Configuration

Create ~/.ots-mcp/config.json to override defaults:

json
{  "stamp_enabled": true,  "scheduler_interval_minutes": 30,  "retry_max_attempts": 20,  "calendar_timeout_ms": 10000,  "calendars": [    "https://alice.btc.calendar.opentimestamps.org",    "https://bob.btc.calendar.opentimestamps.org",    "https://finney.calendar.eternitywall.com",    "https://btc.calendar.catallaxy.com"  ]}

Development

bash
npm run build    # production buildnpm run dev      # watch modenpm test         # run tests

Dependencies

Requires Node.js >= 20.

来源:README.md,提交 39799bd

工具

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

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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