New advertisers: 50% off your first month with code FIRSTMONTHSee slots
pritom14 avatar

bucketlens

pritom14/bucketlens

Lets AI agents query PDFs and spreadsheets in S3 or R2 buckets without downloading them.

tools
7
auth
Secret needed
transport
STDIO
env vars
6
last updated
Nov 15, 2026
View on GitHub

What it does

  • Reads metadata and structure with list_files, outline, and search_all, plus page text via read_pages and row data via read_rows
  • Runs read-only SQL with query over spreadsheets and CSVs, with each sheet exposed as a table; no write or delete tools are exposed
  • Requires S3 or R2 access keys saved locally by bucketlens setup, and runs over stdio through uvx or pip install
  • Designed for agents without local file access, such as chat apps and MCP-only clients, that need to answer questions over large document collections

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

list_filesnames, sizes, dates; nothing is downloaded

names, sizes, dates; nothing is downloaded

No parameter schema in public metadata yet.

outlinePDF: pages, table of contents with page numbers, token cost of reading it whole. Spreadsheet: sheets, rows, columns and types

PDF: pages, table of contents with page numbers, token cost of reading it whole. Spreadsheet: sheets, rows, columns and types

No parameter schema in public metadata yet.

searchpages of one PDF that contain the text, with snippets

pages of one PDF that contain the text, with snippets

No parameter schema in public metadata yet.

search_allevery PDF in a folder at once, as compact hits or just file names and counts

every PDF in a folder at once, as compact hits or just file names and counts

No parameter schema in public metadata yet.

read_pagestext of specific pages, e.g. "36-38"

text of specific pages, e.g. "36-38"

No parameter schema in public metadata yet.

queryread-only SQL over a spreadsheet or CSV; each sheet is a table

read-only SQL over a spreadsheet or CSV; each sheet is a table

No parameter schema in public metadata yet.

read_rowsrows by the spreadsheet's own row numbers

rows by the spreadsheet's own row numbers

No parameter schema in public metadata yet.

Configuration

BUCKETLENS_BUCKET*

Bucket to read

BUCKETLENS_ACCESS_KEY_ID*secret

Access key that can read the bucket and write under .bucketlens/

BUCKETLENS_SECRET_ACCESS_KEY*secret

Secret for that access key

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_REGIONdefault: us-east-1

Region (auto for R2)

Readme

bucketlens

ci python license MCP

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.


View the full README on GitHub

Details

Repository
github.com/pritom14/bucketlens
Categories
Docs & Knowledge Bases, Data & Analytics
Package
bucketlens
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Similar to bucketlens

More Docs & Knowledge Bases