timesfm
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Let AI agents read the PDFs and spreadsheets in your S3 or R2 bucket: outlines, search, SQL.
教 AI 做这类工作的 Skill,可与本项一起使用
TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.
Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…
scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月16日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 bucketlens 的密钥(在开发者网站创建) · 需要填写 1 项设置(BUCKETLENS_BUCKET) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server bucketlens,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "bucketlens": { "command": "uvx", "args": [ "bucketlens", "serve" ], "env": { "BUCKETLENS_BUCKET": "your-value", "BUCKETLENS_ACCESS_KEY_ID": "your-value", "BUCKETLENS_SECRET_ACCESS_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 bucketlens 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
BUCKETLENS_BUCKET Bucket to read说明仍为英文原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"bucketlens": {
"command": "uvx",
"args": [
"bucketlens",
"serve"
],
"env": {
"BUCKETLENS_BUCKET": "your-value",
"BUCKETLENS_ACCESS_KEY_ID": "your-value",
"BUCKETLENS_SECRET_ACCESS_KEY": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 bucketlens 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 bucketlens,或回答中出现 bucketlens 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BUCKETLENS_R2_ACCOUNT_ID Cloudflare account ID (for R2; sets the endpoint for you)BUCKETLENS_ENDPOINT S3 endpoint URL (for AWS S3, MinIO or other S3-compatible storage)BUCKETLENS_REGION Region (auto for R2) · 默认值 us-east-1说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 bucketlens
bucketlens 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 bucketlens 的应用
可连接 Claude Code,但需要先准备
需要 bucketlens 的密钥(在开发者网站创建) · 需要填写 1 项设置(BUCKETLENS_BUCKET) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server bucketlens,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user bucketlens --env BUCKETLENS_BUCKET=your-value --env BUCKETLENS_ACCESS_KEY_ID=your-value --env BUCKETLENS_SECRET_ACCESS_KEY=your-value -- uvx bucketlens serve 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 bucketlens 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
BUCKETLENS_BUCKET Bucket to read说明仍为英文原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user bucketlens --env BUCKETLENS_BUCKET=your-value --env BUCKETLENS_ACCESS_KEY_ID=your-value --env BUCKETLENS_SECRET_ACCESS_KEY=your-value -- uvx bucketlens serve按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 bucketlens 在列表中并显示已连接
用 bucketlens 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 bucketlens,或回答中出现 bucketlens 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BUCKETLENS_R2_ACCOUNT_ID Cloudflare account ID (for R2; sets the endpoint for you)BUCKETLENS_ENDPOINT S3 endpoint URL (for AWS S3, MinIO or other S3-compatible storage)BUCKETLENS_REGION Region (auto for R2) · 默认值 us-east-1说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 bucketlens 的密钥(在开发者网站创建) · 需要填写 1 项设置(BUCKETLENS_BUCKET) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server bucketlens,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "bucketlens": { "command": "uvx", "args": [ "bucketlens", "serve" ], "env": { "BUCKETLENS_BUCKET": "your-value", "BUCKETLENS_ACCESS_KEY_ID": "your-value", "BUCKETLENS_SECRET_ACCESS_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 bucketlens 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
BUCKETLENS_BUCKET Bucket to read说明仍为英文原文。
在 bucketlens 的设置中,BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 bucketlens 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 bucketlens,或回答中出现 bucketlens 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BUCKETLENS_R2_ACCOUNT_ID Cloudflare account ID (for R2; sets the endpoint for you)BUCKETLENS_ENDPOINT S3 endpoint URL (for AWS S3, MinIO or other S3-compatible storage)BUCKETLENS_REGION Region (auto for R2) · 默认值 us-east-1说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 bucketlens 的密钥(在开发者网站创建) · 需要填写 1 项设置(BUCKETLENS_BUCKET) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server bucketlens,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "bucketlens": { "type": "stdio", "command": "uvx", "args": [ "bucketlens", "serve" ], "env": { "BUCKETLENS_BUCKET": "your-value", "BUCKETLENS_ACCESS_KEY_ID": "your-value", "BUCKETLENS_SECRET_ACCESS_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 bucketlens 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
BUCKETLENS_BUCKET Bucket to read说明仍为英文原文。
在 bucketlens 的设置中,BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY, BUCKETLENS_BUCKET 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 bucketlens 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 bucketlens,或回答中出现 bucketlens 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
BUCKETLENS_R2_ACCOUNT_ID Cloudflare account ID (for R2; sets the endpoint for you)BUCKETLENS_ENDPOINT S3 endpoint URL (for AWS S3, MinIO or other S3-compatible storage)BUCKETLENS_REGION Region (auto for R2) · 默认值 us-east-1说明仍为英文原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user bucketlens --env BUCKETLENS_BUCKET=your-value --env BUCKETLENS_ACCESS_KEY_ID=your-value --env BUCKETLENS_SECRET_ACCESS_KEY=your-value -- uvx bucketlens serveClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"bucketlens": {
"command": "uvx",
"args": [
"bucketlens",
"serve"
],
"env": {
"BUCKETLENS_BUCKET": "your-value",
"BUCKETLENS_ACCESS_KEY_ID": "your-value",
"BUCKETLENS_SECRET_ACCESS_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"bucketlens": {
"command": "uvx",
"args": [
"bucketlens",
"serve"
],
"env": {
"BUCKETLENS_BUCKET": "your-value",
"BUCKETLENS_ACCESS_KEY_ID": "your-value",
"BUCKETLENS_SECRET_ACCESS_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"bucketlens": {
"type": "stdio",
"command": "uvx",
"args": [
"bucketlens",
"serve"
],
"env": {
"BUCKETLENS_BUCKET": "your-value",
"BUCKETLENS_ACCESS_KEY_ID": "your-value",
"BUCKETLENS_SECRET_ACCESS_KEY": "your-value"
}
}
}
}BUCKETLENS_BUCKET 必填 envBUCKETLENS_ACCESS_KEY_ID 机密 必填 envBUCKETLENS_SECRET_ACCESS_KEY 机密 必填 envBUCKETLENS_R2_ACCOUNT_ID envBUCKETLENS_ENDPOINT envBUCKETLENS_REGION env说明仍为英文原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月16日
注册名称已通过 GitHub 账户 Pritom14 验证,该账户拥有此仓库
代码最后更新于今天
使用 Apache-2.0
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 bucketlens@0.1.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月16日
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/pritom14-bucketlens)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:BUCKETLENS_ACCESS_KEY_ID, BUCKETLENS_SECRET_ACCESS_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于今天,最新版本(0.1.0)于今天进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:OpenSEO, Exa, Mockserver, Microsoft Learn MCP, Docs
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Keyword research, site audits, rank tracking and AI visibility for your AI agent.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Mock, record/replay, verify and chaos-test any HTTP, REST, gRPC or LLM dependency over MCP.
Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.
| 本项 bucketlens | OpenSEO | Exa | Mockserver | Microsoft Learn MCP | Docs | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 是 | 是 | 否 | 是 | 否 |
| 基础检查 | 3/3 | 5/5 | 2/4 | 3/3 | 4/4 | 4/4 |
| 许可证 | Apache-2.0 | MIT | MIT | Apache-2.0 | CC-BY-4.0 | NOASSERTION |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Let any AI agent read the documents and spreadsheets in your own S3 or R2 bucket, without downloading them.
Agents work best the way a developer does: look at what's there, search, open just the part that matters. That works on code, because code is plain text on a local disk. A company's knowledge is PDFs, spreadsheets and contracts in a bucket. An agent with a shell downloads and parses them on every run. An agent without one (a chat app, Claude Desktop, a support bot, an MCP-only client) often can't use them at all.
bucketlens is an MCP server. It parses each file once, keeps the result next to the file in your bucket, and lets the agent ask for exactly what it needs: an outline, pages 36 to 38, a search across 100 contracts, or a SQL query over a 400,000-row sheet.
Claude Code (Sonnet) answered 10 questions about real public files: Berkshire Hathaway's 2025 annual report and 2026 quarterly reports, the World Bank's 82 MB World Development Indicators workbook, and 100 commercial contracts from the CUAD dataset. Each question ran three ways.
| Setup | Right answers | Tokens | Cost | Time |
|---|---|---|---|---|
| Downloads the files, has a shell and Python | 10/10 | 226,231 | $0.21 | 405 s |
| Downloads the files, no shell (like a chat app) | 6/10 | 433,144 | $0.59 | 370 s |
| bucketlens (no files, no shell) | 10/10 | 159,280 | $0.23 | 141 s |
| bucketlens, re-run with the released v0.1 package | 10/10 | 182,630 | $0.30 | 165 s |
By dataset:
| Dataset | Shell | No shell | bucketlens |
|---|---|---|---|
| Berkshire reports (154-page annual report, 3 quarterlies) | 5/5, 67 s | 5/5, 2.9x the tokens | 5/5, 48 s |
| World Bank workbook (82 MB, 398,468 rows) | 3/3, 240 s | 0/3, can't open .xlsx | 3/3, 52 s |
| 100 contracts (1,481 pages) | 2/2, 98 s | 1/2 | 2/2, 41 s |
What this says, honestly:
The answers were checked automatically against values taken from the files. The 2026 quarterly figures are newer than the model's training data, so they had to be read, not remembered. Details and earlier runs on synthetic data: benchmarks/RESULTS.md.
bucketlens is an MCP server. Install it, point it at a bucket, and add it to any MCP client.
pip install bucketlens # or: uv tool install bucketlens
bucketlens setup # bucket + keys, typed hidden, saved to ~/.config/bucketlens/config.env bucketlens index # parse every PDF, XLSX and CSV once (optional; files are also indexed on first use)
Claude Code
claude mcp add bucketlens -- bucketlens serve
Claude Desktop, Cursor, or any client that takes a JSON config (no install needed with uvx):
{
"mcpServers": { "bucketlens": { "command": "uvx", "args": ["bucketlens", "serve"], "env": { "BUCKETLENS_R2_ACCOUNT_ID": "your Cloudflare account ID (or set BUCKETLENS_ENDPOINT for S3)", "BUCKETLENS_BUCKET": "your-bucket", "BUCKETLENS_ACCESS_KEY_ID": "...", "BUCKETLENS_SECRET_ACCESS_KEY": "..." } } } }
If you ran bucketlens setup, leave out env: the server reads the saved config.
Works with Cloudflare R2, AWS S3, MinIO and other S3-compatible storage. Give it a key that can read the bucket and write under .bucketlens/ (where the index lives). It is listed in the official MCP Registry as io.github.Pritom14/bucketlens.
| Tool | What it returns |
|---|---|
list_files(prefix) | names, sizes, dates; nothing is downloaded |
outline(path, depth) | PDF: pages, table of contents with page numbers, token cost of reading it whole. Spreadsheet: sheets, rows, columns and types |
search(path, text) | pages of one PDF that contain the text, with snippets |
search_all(text, folder, files_only) | every PDF in a folder at once, as compact hits or just file names and counts |
read_pages(path, pages) | text of specific pages, e.g. "36-38" |
query(path, sql) | read-only SQL over a spreadsheet or CSV; each sheet is a table |
read_rows(path, sheet, first, last) | rows by the spreadsheet's own row numbers |
The first time a file is touched (or when it's saved, with watch), bucketlens reads it once:
pages.txt with byte offsets, plus the outline. Reading pages 600 to 602 of a 733-page PDF is then one range request (about 150 KB)._row column. DuckDB reads only the columns and row groups a query needs (rows 150,000 to 150,049 of a 20 MB workbook: about 190 KB).Everything is stored under .bucketlens/index/ / /. When a file changes its ETag changes, so an agent is never answered from an old version.
Why not just read parts of the original file? We measured it: opening a PDF or the first rows of a workbook fetches 5 to 7% of the file, but deep pages and deep rows fetch 50 to 75%, because of how PDF and XLSX are laid out inside. Parsing once and serving slices is what makes every read small.
bucketlens watch # Cloudflare R2: event notifications -> Queue, pulled over HTTP
bucketlens watch --poll 300 # any S3: list the bucket every 5 minutes
With R2 event notifications, a new 492-page PDF was indexed 8.8 s after its upload started, an edited workbook 4.4 s after it was saved, and a deleted file's index removed 3 s later. To set it up: create a Queue, add an event notification on the bucket (object creation and deletion) that sends to it, and add a Cloudflare API token with Account > Queues > Edit to the config as BUCKETLENS_CF_API_TOKEN, with BUCKETLENS_CF_QUEUE set to the queue's name.
bucketlens itself is free. On Cloudflare R2, the free tier (10 GB of storage, 1 million writes and 10 million reads a month, free downloads) covered everything in the benchmarks. The index adds about 25% to stored bytes for these files. The watcher polls once a minute when idle, about 1,440 Queue calls a day against a free allowance of 10,000. R2 has no hard spending cap, so set a billing alert.
watch or index so agents never wait on it.See benchmarks/README.md. The public files are fetched by a script, not stored in this repo.
Apache-2.0