About Vecgrep
Vecgrep is an MCP server published by jeffbai996 in the RAG category: grep using meaning and similarity instead of keywords - local/self-hosted, multimodal, and runnable on any user-defined corpus. Conduid read 24 tools from its source: batch_read, browse, compare, edit, get_chunk, get_corpus and 18 more. No package is published for it, so it installs from a source checkout.
The repository has 2 stars and 0 forks, and its last commit was on 2 Dec 2026. Conduid has no tagged release on record for it. Its topics include cli, embeddings, local-first, semantic-search and vector-search.
Install
git clone https://github.com/jeffbai996/vecgrepTools (24)
batch_readRun up to 10 read-only vecgrep tools in one call and return their results in order. Prefer batch_read when a turn needs multiple reads (for example list_corpora plus several search, get_chunk, browse, or timeline calls) to complete in a single round-trip.| Parameter | Type | Description |
|---|---|---|
| calls * | array |
browseLocation-first reading, no query: the full event sequence for a channel and/or day (YYYY-MM-DD) and/or path glob. Use when you know WHERE/WHEN rather than what words to search for.| Parameter | Type | Description |
|---|---|---|
| channel | string | |
| corpus * | string | |
| date | string | |
| since | string | |
| source_path | string | |
| tail | integer | |
| until | string |
compareTemporal diff: one query in TWO time windows, both result sets plus the source-level delta. 'How did we talk about X then vs now'. Windows accept ISO dates or relative forms (30d, 2w, today).| Parameter | Type | Description |
|---|---|---|
| a_after | string | |
| a_before | string | |
| b_after | string | |
| b_before | string | |
| corpus * | string | |
| query * | string | |
| top_k | integer |
editEDIT an existing entry immediately — no human confirm needed. Same single direct-write corpus as `write`; no corpus parameter. Two modes: pass `content` to replace the whole body, OR `old_str`+`new_str` to patch one unique span without re-sending the doc. The previous body is backed up automatically, so an edit is always recoverable. Protected entries are refused; cannot delete (use propose_delete). For any other corpus, use propose_edit.| Parameter | Type | Description |
|---|---|---|
| change_summary | string | |
| content | string | |
| doc_id * | string | |
| new_str | string | |
| old_str | string |
get_chunkExpand a chunk to its surrounding context by chunk_id (e.g. from a budget-search stub). window = chars each side, -1 for the whole source document.| Parameter | Type | Description |
|---|---|---|
| chunk_id * | string | |
| corpus * | string | |
| window | integer |
get_corpusGet full metadata for one corpus including its source list.| Parameter | Type | Description |
|---|---|---|
| name * | string |
get_sourceWhole source document by source_id (raw text + parsed transcript events). Use after a stub or corpus listing hands you a source_id; get_chunk is the by-chunk_id variant.| Parameter | Type | Description |
|---|---|---|
| corpus * | string | |
| source_id * | string |
incidentOne structured answer for an incident question: title, sources, participants, time range, primary chronological timeline, related context separated, confidence label. Same hard filters as search.| Parameter | Type | Description |
|---|---|---|
| corpus | string | |
| filters | array | |
| mode | string | |
| query * | string |
list_aliasesRead-only view of the active alias-expansion map. Explains why a search matched terms you didn't type.list_corporaList every vecgrep corpus and its stats (doc count, chunk count, embedding model).| Parameter | Type | Description |
|---|---|---|
| include_hidden | boolean |
propose_deletePROPOSE deleting an existing entry (by id, e.g. notes-007). Removes NOTHING — creates a pending proposal a human confirms before the doc + its embeddings are removed. The preview shows the entry that WILL be deleted. Returns the proposal_id; tell the user to confirm it.| Parameter | Type | Description |
|---|---|---|
| corpus | string | |
| doc_id * | string |
propose_editPROPOSE an edit to an existing entry (by id, e.g. notes-007). Writes NOTHING — creates a pending proposal a human confirms before it overwrites. Returns the proposal_id.
Two modes: pass `content` to replace the whole body, OR pass `old_str`+`new_str` for a SURGICAL PATCH — a str-replace of one unique span, so you don't re-send the whole doc to fix one line. The patch fails if old_str is missing or appears more than once (add surrounding context to make it unique). Patch touches the body only; frontmatter is preserved. content and old_str are mutually exclusive. THIRD mode: pass ONLY tags (and/or source_kind) with no content for a META-ONLY retag — the body stays untouched, only the metadata changes.| Parameter | Type | Description |
|---|---|---|
| content | string | |
| corpus | string | |
| doc_id * | string | |
| new_str | string | |
| old_str | string | |
| source_kind | string | |
| tags | array |
propose_mergePROPOSE merging several entries into ONE. Writes NOTHING — creates a pending proposal a human confirms. The FIRST id in doc_ids is the canonical doc: it keeps its id and gets `content` as its new body (author a real synthesis of all the docs — no auto-concat); the remaining ids are absorbed and DELETED on confirm, recorded in the canonical doc's merged_from. Use to collapse near-duplicate or fragmented entries. Returns the proposal_id.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| corpus | string | |
| doc_ids * | array | |
| tags | array |
propose_writePROPOSE a new entry for a corpus. Writes NOTHING — creates a pending proposal a human reviews + confirms before it's saved. Use for durable notes/facts/decisions worth recalling later. Returns the proposal_id; tell the user to confirm it.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| corpus | string | |
| source_kind | string | |
| tags | array |
relatedNearest neighbours of an EXISTING chunk by its stored vector (query-by-example). Feed it a chunk_id from any search/stub hit to pull more evidence like it.| Parameter | Type | Description |
|---|---|---|
| chunk_id * | string | |
| corpus * | string | |
| top_k | integer |
renew_tempMove a temp entry's expiry to a new time, counted from now and under the same cap. Body and metadata are kept.| Parameter | Type | Description |
|---|---|---|
| doc_id * | string | |
| expires * | string |
retireRETIRE an entry that is out of date, with no human confirm. Same single operator-designated corpus as `write` and `edit`. Search stops returning it at once; the file stays, and `unretire` brings it back. After the retention period (default 30 days) it leaves the index and its file is kept as a backup. `reason` is required: say what made it stale. `superseded_by` optionally names the entry that replaces it. Use it for stale, retracted or duplicated entries; use propose_delete when content must be removed now.| Parameter | Type | Description |
|---|---|---|
| doc_id * | string | |
| reason * | string | |
| superseded_by | string |
searchSemantic search across vecgrep corpora. Returns ranked chunks with surrounding context. Use this instead of dumping documents into context — index once, search per question. On large corpora the result is breadth mode: a few full hits plus a `stubs` list of one-line previews. The stubs are real results, not filler — scan them and call get_chunk on any that look right before concluding something isn't there. Lookup reports evidence_status=insufficient_evidence when only weak candidates remain; that is not proof of absence. `relevance_pct` is the calibrated blended/reranked display score; `similarity_pct` is its legacy alias, not raw cosine. Inspect `scores.vector_cosine` when the vector signal itself matters. Do not guess corpus names: call list_corpora when scope is uncertain, then search the smallest relevant set.| Parameter | Type | Description |
|---|---|---|
| budget | boolean | |
| corpora | array | |
| corpus | string | |
| filters | array | |
| full_k | integer | |
| include_superseded | boolean | |
| mode | string | |
| profile | string | |
| query * | string | |
| rerank | boolean | |
| response_token_ceiling | integer | |
| token_ceiling | integer | |
| top_k | integer |
statsCorpus health snapshot: chunk/doc counts, date coverage span, gap days (a broken archiver shows here), per-source sizes.| Parameter | Type | Description |
|---|---|---|
| corpus * | string |
summarize_corpusRollup of a corpus (optionally time-windowed): speaker tally, date span, top sources, evenly-spaced sample of chunks to theme. Sampling is explicit, never silent.| Parameter | Type | Description |
|---|---|---|
| after | string | |
| before | string | |
| corpus * | string | |
| sample | integer |
timeline'What happened?' mode: reconstructs the event sequence around an incident — contiguous chronological slices grouped by source file, speakers + timestamps preserved. Use for narrative/incident questions instead of piecing together ranked chunks.| Parameter | Type | Description |
|---|---|---|
| corpus | string | |
| filters | array | |
| max_groups | integer | |
| mode | string | |
| query * | string | |
| top_k | integer |
unretireReturn a retired entry to search. Clears the retirement and keeps the body. Works until the retention sweep removes it.| Parameter | Type | Description |
|---|---|---|
| doc_id * | string |
writeWRITE a new entry immediately — no human confirm needed. Lands in the single corpus the operator opened up for direct writes; there is no corpus parameter, and this tool cannot edit or delete anything. For a dated snapshot, a point-in-time read, or an imported or generated document, written once with a dated title. Not the home for 'remember this': a durable fact goes to the operator's memory store and a record the team made goes to its journal. For any other corpus, use propose_write.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| source_kind | string | |
| tags | array | |
| title | string |
write_tempWRITE a short-lived entry that expires on its own -- no human confirm. Lands in the operator's temp corpus. `expires` is required: 3d, 12h, 2w or an ISO date, capped by the operator (default 90 days). `until` optionally names the event that would make it stale. Search drops the entry once it expires. Use it for facts that are true for now (a current release, a workaround, a degraded host); durable facts belong in a permanent corpus.| Parameter | Type | Description |
|---|---|---|
| content * | string | |
| expires * | string | |
| tags | array | |
| title | string | |
| until | string |
Security checks
6 checks have not been run yet.