mcp-metsuke-crunchtools
OfficialA stateful, local-first MCP catalog for report definitions and their gathered, source-cited outputs, with a built-in cron scheduler and deterministic pre-gather sweeps.
Define reports —
upsert_definitioncreates/updates a report's gather prompt, owner agent, cron schedule, timezone, and source config (sweep collectors), validated on writeInspect definitions —
list_reports(with next fire time) andget_spec(prompt + source config)Fire gathers — the built-in scheduler fires on cron in the given timezone, or
trigger_reportfires immediately; each fire opens a durable run with arun_idand a per-report concurrency lockStore findings —
save_outputcompletes a run with a payload of findings, each carrying its ownsource_url, section, theme, actors, window, and status (gathering/ready/compiled/failed)Read outputs —
get_outputreturns the freshest (or a specific day's) output;list_outputsbrowses run history withfinding_countbut no payloadsManage history —
delete_outputremoves one output,prune_outputsbulk-prunes bykeep_lastN orbefore_dateConsume sweeps —
get_sweepreads pre-gathered section records (index or one page), produced by collectors likeslack_waiting,gmail_waiting,calendar_day,feed_entries,jira_issues,gmail_search,slack_search,docs_search,workboard_objectivesDeploy anywhere — plain SQLite (WAL) storage, no external services, over stdio, SSE, or streamable-http transports
Gathers inbox threads via the [gmail](/mcp/servers/integrations/gmail)_waiting sweep collector — pulls messages within a reporting window from a configured mailbox/backend, applies ownership analysis to surface only threads where the ball is in the user's court, drops automated mail and bare calendar notices while keeping invitations, and records each thread with a Gmail deep link for citation.
Gathers recent feed entries via the feed_entries sweep collector, reading a configurable set of feed categories (with per-category limits and a widened lookback after weekends) and storing the entries as compact, citable findings for the gatherer to select and phrase.
Gathers Slack DMs and @-mentions via the slack_waiting sweep collector — reads up to three pages per thread or DM, drops answered conversations, marks the rest waiting or acknowledged (reaction-only), flags unverified/long threads, and separates new in-window asks from still-open ones, with a configurable workspace URL.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-metsuke-crunchtools pull the freshest output for the 'weekly vuln scan' report"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-metsuke-crunchtools
Stateful reports catalog MCP server. Metsuke (目付 — the Sengoku intelligence officer who gathered field reports and compiled them for the daimyō) is the durable, cross-agent home for report definitions and their gathered outputs.
An autonomous gatherer reads a definition, sweeps the configured sources, and writes findings — each carrying its own source URL. A compiler later reads the freshest output to draft a fully cited report. This replaces ad-hoc, run-scoped research caches with a real, queryable store.
Features
Definitions + outputs — separate what-to-gather from what-was-gathered
Built-in scheduler — Metsuke fires each definition's gather when its cron schedule comes due, or on demand via
trigger_report— no external timerRun lifecycle — every fire opens a durable run with a second-granularity
run_id: a provisional row is recorded before the callback (a fire is never lost), and a per-report concurrency lock keeps two gathers from racingCited findings — payloads carry per-finding source URLs for one-click checking
Re-homeable gathering —
owner_agentmakes the gatherer identity data, not codeLocal-first — plain SQLite (WAL), no external services, no per-seat fees
Three transports — stdio, SSE, streamable-http
Related MCP server: Argon Memory
Install
uvx (recommended)
uvx mcp-metsuke-crunchtoolspip
pip install mcp-metsuke-crunchtoolsContainer
podman run --rm -v ~/.local/share/mcp-metsuke:/data:Z \
quay.io/crunchtools/mcp-metsuke \
--transport streamable-http --host 0.0.0.0 --port 8009Claude Code Integration
claude mcp add mcp-metsuke-crunchtools -- uvx mcp-metsuke-crunchtoolsTools (10)
Definitions (4)
Tool | Description |
| List all report definitions in the catalog, each with its next scheduled fire time. |
| Return the gather prompt + source config for one definition. |
| Create or update a definition (name, prompt, owner, cron schedule, timezone, sources). |
| Fire a report gather right now, without waiting for its schedule. For a swept definition it returns at once with |
Outputs (6)
Tool | Description |
| Complete a run by persisting its gathered findings (pass the |
| Read the freshest output (or a specific day's) for compiling a report. |
| Browse the run history — metadata + |
| Delete one saved output by id. |
| Bulk-prune a report's outputs — keep the N newest, or drop those before a date. |
| Read a swept run's pre-gathered records: the index, or one page of one section. |
Environment Variables
Variable | Default | Description |
|
| SQLite database path |
| (none) | Path whose contents override |
| (none) | Base URL of the Trentina gateway; the scheduler POSTs gather callbacks to |
| (none) | Alert token identifying the reports profile; enables the scheduler when set with |
| (none) | Path whose contents override |
| (none) | Comma-separated owners that collect their own runs: their reports are opened and swept on schedule but get no callback. Also enables the scheduler |
| (none) | Trentina gateway MCP endpoint for the sweep profile, e.g. |
| (none) | Bearer token for that profile; |
|
| Upper bound on one run's sweep |
|
| How often the scheduler checks for due reports |
| (auto) | Force the scheduler on/off; defaults to on when the callback is configured |
|
| How long an in-flight run holds the per-report lock before it is expired (self-heals a dead gatherer) |
The scheduler runs only under the sse and streamable-http transports (the long-lived production processes), never under stdio.
Data Model
report_definitions —
name(PK),gather_prompt,owner_agent,schedule(cron),timezone(IANA),source_config(JSON),last_fired_at,updated_atreport_outputs (one row per run) —
id,report_name(FK),run_id(second-granularity identity),trigger(scheduled/manual/direct),gathered_at,finished_at,window_start/window_end,payload(JSON findings with source URLs),status(gathering/ready/compiled/failed),gatherer_run_ref,detail. A partial unique index on(report_name) WHERE status='gathering'is the per-report concurrency lock.
MCP Registry
io.github.crunchtools/metsuke
License
AGPL-3.0-or-later
Sweeps
A definition can opt into a deterministic pre-gather by adding sweep to its
source_config:
{"sweep": {"timezone": "America/New_York", "window_hour": 6, "steps": [
{"section": "slack", "collector": "slack_waiting",
"options": {"user_id": "U9VN3S1ST", "handle": "smccarty"}},
{"section": "work_email", "collector": "gmail_waiting",
"options": {"backend": "gw-work", "account": "smccarty@redhat.com"}},
{"section": "calendar", "collector": "calendar_day",
"options": {"backend": "gw-work", "account": "smccarty@redhat.com"}},
{"section": "rss", "collector": "feed_entries",
"options": {"categories": {"1": 20, "5": 20}}}]}}On fire, Metsuke runs each step in order through the Trentina gateway (as its
own read-only profile), stores the results on the run, then dispatches the
callback with sweep_status. The gatherer reads records with get_sweep
instead of calling the sources, so the gathering LLM only selects, phrases and
delivers. A failing step is recorded and the sweep continues. Results Trentina
flags are stored as metadata only, with their text withheld.
Collector | What it produces |
| Direct asks over a lookback: an @-mention, or a DM message that reads as a question or request (DM chatter and Slack system notices are not asks). Threads are read as threads; DMs and top-level channel mentions are read from channel history (one conversation per channel). Each is read for up to three pages (longer or partly unreadable ones are marked |
| Inbox threads in the window (or |
| The report day's meetings, pending invites over a lookahead, and hard overlaps |
| Recent entries per feed category (read or unread), with a longer window after a weekend |
| Issues matching each named JQL query, with |
| Every thread a Gmail query matches ( |
| Every Slack message a search query matches ( |
| Google Docs modified since the window start (workspace-mcp |
| The user's WorkBoard objectives, each followed by its key results: name, progress, status, owner |
Collector options
Every step is {"section": "<name>", "collector": "<collector>", "options": {...}}.
Section names are [a-z0-9_-], unique, up to 12 steps. Top-level timezone
(IANA, default America/New_York) and window_hour (0-23, default 6) set the
window: from that hour on the previous weekday until the run.
Collector | Option | Required | Default | Bounds |
|
| yes | 2-32 chars | |
| yes | 1-64 chars | ||
|
| ≤64 chars | ||
|
| ≤64 chars | ||
| none | 1-64 chars; in group DMs and channels, a question or request that addresses the user by this name is an ask | ||
| 7 | 1-30 | ||
| 40 | 1-100 | ||
|
| ≤200 chars | ||
|
| yes | e.g. | |
| yes | the mailbox address | ||
|
| ≤500 chars, appended to | ||
| 60 | 1-200 | ||
| 1200 | 0-4000 (0 = no body) | ||
| Gmail | ≤200 chars, or null | ||
| report window | 1-30, search the last N days instead | ||
| 0 | 0-168, drop threads active more recently | ||
|
| ≤20 From-header substrings (1-100 chars, case-insensitive) | ||
|
| yes | ||
| yes | |||
|
| IANA zone | ||
| 3 | 0-14 (pending invites) | ||
| 0 | 0-30, also read N days before the report day ( | ||
| all but declined | 1-3 of | ||
|
| yes | 1-12 entries of | |
|
| |||
| 1 | 1-30 | ||
| 3 | 1-30 (Mondays and weekend runs) | ||
|
| yes | 1-6 of | |
|
| ≤64 chars; needs | ||
|
| ≤200 chars, prefixed to the issue key | ||
| 800 | 0-2000 (0 = no form detail line) | ||
| none | a Jira key known to exist, e.g. | ||
|
| yes | as | |
| yes | ≤500 chars, | ||
| report window | 1-30 | ||
| 60 / 1200 / Gmail | as | ||
|
| yes | ≤500 chars, | |
|
| |||
| report window | 1-30 | ||
| 60 | 1-100 | ||
| 700 | 0-2000 | ||
| true | |||
|
| permalink fallback | ||
|
| yes | ||
|
| needs | ||
|
| ≤500 chars Drive query, ANDed on (e.g. | ||
| report window | 1-30 | ||
| 50 | 1-100 | ||
|
| ≤200 chars | ||
|
|
| needs | |
| auto-discovered | 1-25 positive ids |
Collectors are code in sweep/collectors.py, not configuration: a definition
can only pick and parameterize them. A bad spec is rejected at
upsert_definition time.
Available Tools
10 toolsdelete_output_toolDelete Output ToolA
Delete one saved report output by id.
Returns the deleted output's metadata (with deleted=True). Find ids with list_outputs_tool. Raises if no output carries that id.
Inputs: output_id (required). Returns: object
get_output_toolGet Output ToolARead-only
Read a gathered report output for compiling a report.
Returns the most recent output by default, or the latest output gathered on a specific date when gathered_date is given.
Inputs: name (required), gathered_date. Returns: object
get_spec_toolGet Spec ToolARead-only
Return the gather spec (prompt + source config) for a report definition.
This is what the autonomous gatherer calls on callback to learn what to collect for the named report.
Inputs: name (required). Returns: object
get_sweep_toolGet Sweep ToolARead-only
Read the pre-gathered sweep for a run.
Swept reports are gathered by Metsuke before the gatherer is called: fixed source calls, reply-state checks and noise filters run in code, and the results are stored on the run as sections of compact records. Call with no section for the index (window, overall status, per-section record counts and errors), then page through each section you need.
Inputs: page, run_id, section, page_size, +1 more. Returns: object
list_outputs_toolList Outputs ToolARead-only
List saved report outputs (the run history), newest first.
Returns one lightweight row per saved gather — id, report_name, gathered_at, reporting window, status, and a finding_count — but NOT the payloads, so the full history stays cheap to browse. Use get_output_tool to pull one run's findings, and delete_output_tool / prune_outputs_tool to prune.
Inputs: limit, report_name. Returns: result
list_reports_toolList Reports ToolARead-only
List all report definitions in the catalog.
Returns each definition with its gather prompt, owner agent, schedule, source config, and last-updated time.
Inputs: no named parameters. Returns: result
prune_outputs_toolPrune Outputs ToolA
Bulk-prune a report's saved outputs. Returns the count and ids deleted.
Give exactly one criterion: keep_last retains the N most recent outputs and deletes the rest (keep_last=0 deletes them all); before_date deletes every output gathered strictly before that date.
Inputs: report_name (required), keep_last, before_date. Returns: object
save_output_toolSave Output ToolA
Persist a gathered report output, completing the run that opened it.
The gatherer writes findings here after sweeping the sources. Each finding in payload should carry its own source URL so the compiler can cite it. Pass the run_id Metsuke handed you in the fire callback so this completes that exact in-flight run (one row per fire). Omit run_id for an ad-hoc direct save; Metsuke stamps a fresh run identity either way.
Inputs: payload (required), report_name (required), run_id, status, +3 more. Returns: object
trigger_report_toolTrigger Report ToolA
Fire a report gather right now, without waiting for its schedule.
Dispatches the same callback the scheduler uses: Metsuke POSTs the trigger to the Trentina alert endpoint, which forwards it to the owning gatherer. Requires the callback to be configured (TRENTINA_ALERT_URL + METSUKE_ALERT_TOKEN), unless the owner is a pull owner (METSUKE_PULL_OWNERS): then the run is opened and left for the owner.
Inputs: name (required). Returns: object
upsert_definition_toolUpsert Definition ToolB
Create or update a report definition.
The owner_agent field makes the gatherer identity data, not code, so gathering can be re-homed to another agent without a rebuild. The schedule is a live cron expression: Metsuke's built-in scheduler fires the report when it comes due, in the given timezone.
Inputs: name (required), gather_prompt (required), schedule, timezone, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools target clearly distinct resources (definitions, outputs, runs, sweeps) with a clean verb split (list/get/save/delete/prune). The only mild overlap is get_output_tool vs get_sweep_tool, since both retrieve gathered data, but the descriptions distinguish compiled findings from pre-gathered sweep sections well.
Every tool follows the same verb_noun_tool pattern (list_reports_tool, get_output_tool, upsert_definition_tool, prune_outputs_tool), with consistent snake_case and singular/plural conventions (list uses plural, get/upsert use singular). No mixed styles.
Ten tools is well-scoped for a report-gathering management server, covering the full lifecycle of definitions, outputs, triggering, and sweeps without redundancy. Each tool earns its place with a distinct role.
Outputs have full lifecycle coverage (save, get, list, delete, prune) and definitions support list/get_spec/upsert, but there is no delete_definition_tool, leaving a gap in definition management. Agents can work around it, but the surface is not fully closed.
Maintenance
Related MCP Connectors
Searchable storage for AI agents: store, find, read and trust artifacts shared between agents.
The shared brain of a company or a person: agents keep what they learn and look things up.
1Turns agent output into versioned web pages, PDFs, Word docs, spreadsheets and Markdown.
Shared memory for your AI agents. Every fact shows its source, and stale facts get replaced.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables ChatGPT agents to store and retrieve reports in MongoDB Atlas, acting as a bridge between ChatGPT scheduled agents and a persistent database.-
- AlicenseNot gradedqualityBmaintenanceEnables MCP agents to maintain durable, evidence-aware project knowledge, retrieve precise excerpts on demand, and track decisions, conflicts, and revisions across sessions.1Apache 2.0
- AlicenseNot gradedqualityBmaintenanceProvides persistent, searchable memory across coding projects and machines, letting agents record and retrieve projects, reusable assets, sessions, decisions, commits, and handoffs via MCP.3Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to locally store and share tasks, work activities, long-term memory, knowledge, and people information, while allowing users to review saved content and generate briefings or reports through a web UI.MIT