mcp-server
v1.18.0Sprigr MCP server — local AI agent search with WASM-powered full-text search and hybrid semantic search.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
signup
Get instructions for creating a Sprigr account and API key. Accounts are created at the Sprigr Platform (platform.sprigr.com), not through this tool. No authentication required.
list_indexes
List all search indexes in your Sprigr account. Shows index names, object counts, descriptions, and when they were last updated.
create_index
Create a new search index and configure its settings. Specify which attributes should be searchable (for full-text queries) and which should be available as facets (for filtering and counting). You MUST declare attributes_for_faceting here before you can use filters in search.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Name for the index (e.g. "products", "articles"). Use lowercase with underscores. |
attributes_for_faceting | array | Attributes that can be used as filters in search and for facet counts. Example: ["genre", "year", "status"]. After setting this, you can search with filters like "genre:Sci-Fi". IMPORTANT: you must li… |
custom_ranking | array | Custom ranking attributes in order (e.g. ["desc(popularity)", "asc(price)"]). |
description | string | Human-readable description of what this index stores and what data should be saved to it. Shown in list_indexes to help users understand the purpose of each index. |
searchable_attributes | array | Attributes to include in full-text search, in priority order (e.g. ["title", "description", "_keywords"]). Include "_keywords" if your objects have a _keywords field for semantic search. Defaults to [… |
semantic_search | boolean | Enable semantic (vector) search for this index. When true, embeddings are generated automatically at import time using AI. Enables hybrid keyword + semantic search with RRF scoring. Default: false. |
update_settings
Update settings for an existing search index. Change searchable attributes, faceting, ranking, or synonyms. MIGRATION: re-applying semantic_search: true also re-embeds any long documents still carrying a single pre-chunking vector, upgrading them to chunked embeddings (response reports _embeddings_rechunked; if _embeddings_deferred appears, call again to continue).
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Name of the index to update |
attributes_for_faceting | array | Attributes available as filters/facets |
custom_ranking | array | Custom ranking attributes (e.g. ["desc(popularity)"]) |
description | string | Human-readable description of what this index stores. Shown in list_indexes. |
searchable_attributes | array | Attributes to include in search, in priority order |
semantic_search | boolean | Enable or disable semantic (vector) search. When enabled, embeddings are generated on import. |
synonyms | object | Synonym groups as key-value pairs (e.g. {"hoodie": ["sweater", "jumper"]}) |
import_objects
Import (upsert) JSON objects into a search index. Each object must have a unique objectID. If an object with the same objectID already exists, it is replaced. The index is created automatically if it does not exist. Maximum 1000 objects per call. Imports are accepted asynchronously: the result carries a taskID and the write is usually visible within seconds. To confirm a write landed, poll GET /1/indexes/:index/task/:task_id (REST) for status "published". TIP: Include a "_keywords" string field with comma-separated semantic tags, synonyms, and related concepts to make objects findable by meani…
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Target index name |
objects * | array | Array of JSON objects to import. Each MUST have an "objectID" field with a unique string identifier. |
smart_import
Dedup-aware insert for AI-AGENT MEMORY. Before storing a fact, it checks the target index for an existing near-duplicate and either merges the fact into that record (duplicate), updates it with newer info and keeps the prior text in _history (supersede), or inserts a new record (independent). A duplicate or supersede is a MERGE onto the matched record, not a replace: the fields you send are written onto it and every field you omit (subjects, createdAt, _history, ...) is kept. An insert writes your object as sent. Use this for memory/notes/context indexes where saving the same fact under a new…
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Target memory index |
object * | object | A single JSON object to store. MUST have an "objectID". Include title/summary/content/_keywords as applicable. |
dry_run | boolean | If true, return the dedup decision and would-be write WITHOUT importing. |
filters | string | Optional facet filter to scope dedup candidates (e.g. "project:sprigr-team"). Narrows what counts as a near-duplicate. |
k | number | Max dedup candidates to consider (default 5). |
search
Search an index with full-text search, optionally with semantic (vector) search. Supports facet filtering, facet counts, and pagination. Use filters to narrow results by attribute values (e.g. "genre:Sci-Fi"). Use facets to get value counts for attributes (e.g. see how many hits per genre). Set semantic: true for hybrid keyword + semantic search (requires semantic_search enabled on the index). Hybrid search uses Reciprocal Rank Fusion to combine keyword and vector results. The response's semantic_search is true only when vector scoring actually ran; when a semantic request ran keyword-only, se…
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Index to search |
aggregations | array | Server-side aggregations computed over the matching result set (the same docs that feed `facets`/`nb_hits`, after `filters`). Each spec folds a numeric `field` with an `op` (sum/avg/min/max/count), op… |
attributes_to_highlight | array | Only include highlights for these attributes in _highlightResult (e.g. ["title"]). Reduces response size. Returns all highlights if omitted. |
attributes_to_retrieve | array | Only return these attributes in each hit (e.g. ["title", "objectID"]). Reduces response size for large objects. Returns all attributes if omitted. |
facets | array | Attributes to return facet value counts for. Only attributes declared in the index's `attributesForFaceting` are counted: an undeclared one is left out of `facets` and named in the response's `dropped… |
filters | string | Facet filter expression in `attribute:value` form, comma-separated for AND. Empty string when no filters. |
hits_per_page | integer | Results per page (1-100). Defaults to 20 when omitted. |
match_mode | Keyword matching strictness. `Exact` disables prefix + Levenshtein scoring (precision over recall). When omitted, the engine falls back to the index-level `match_mode` setting, then to `Fuzzy`. | |
min_vector_similarity | number | null | Cosine-similarity floor (0..1) applied to vector hits before RRF in semantic mode. Drops the long tail of low-confidence semantic matches. `None` = no floor (every cosine>0 hit kept). Has no effect ou… |
page | integer | Page number for pagination (0-indexed). Default 0. |
query | string | Search query text. Empty string browses/lists matching filters. At most 8192 bytes of UTF-8; a longer query is a 400. |
semantic | boolean | Enable hybrid keyword + semantic (vector) search via RRF. Requires `semantic_search: true` in index settings. Default false. |
sort_by | string | Query-time sort override. Comma-separated `desc(field)` / `asc(field)`. Overrides the index-level `customRanking` for this query. At most 8 sort terms; more is a 400. |
strict_filters | boolean | Opt-in strict mode (sprigr-search#581). When true, a `filters` term or a `facets` entry whose attribute is not declared in the index's `attributesForFaceting` is refused with a 400 naming the attribut… |
get_stats
Get statistics for your Sprigr account: index count, total objects, storage used.
delete_objects
Delete objects from an index by their objectIDs. Maximum 1000 IDs per call.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Index to delete from |
object_ids * | array | Array of objectIDs to delete |
get_object
Fetch a single object from an index by its objectID. Useful for retrieving a specific record without searching.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Index to fetch from |
object_id * | string | The objectID of the object to retrieve |
delete_index
Permanently delete an entire index, including all its objects, facet data, and settings. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Name of the index to delete |
clear_index
Remove all objects from an index but keep the index settings (searchable attributes, facets, etc.). Useful for rebuilding data without reconfiguring the index.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Name of the index to clear |
export_objects
Export (download) all objects from an index as JSON. Supports pagination for large indexes. Returns up to 1000 objects per page. Use page parameter to iterate through all data.
| Parameter | Type | Description |
|---|---|---|
index_name * | string | Index to export from |
page | number | Page number (0-indexed, default 0). Each page returns up to 1000 objects. |
per_page | number | Objects per page (default 1000, max 1000) |
multi_search
Search across multiple indexes in a single call. Returns results from each index tagged with their source. Useful for searching across all your data at once instead of making separate calls. Supports semantic, match_mode, and min_vector_similarity (same semantics as single-index search). An index whose search failed (refused, missing, or a filter the engine cannot parse) carries an "error" in its entry instead of reading as zero hits.
| Parameter | Type | Description |
|---|---|---|
index_names * | array | List of index names to search across |
filters | string | Facet filter expression in `attribute:value` form, comma-separated for AND. Empty string when no filters. |
hits_per_page | integer | Results per page (1-100). Defaults to 20 when omitted. |
match_mode | Keyword matching strictness. `Exact` disables prefix + Levenshtein scoring (precision over recall). When omitted, the engine falls back to the index-level `match_mode` setting, then to `Fuzzy`. | |
min_vector_similarity | number | null | Cosine-similarity floor (0..1) applied to vector hits before RRF in semantic mode. Drops the long tail of low-confidence semantic matches. `None` = no floor (every cosine>0 hit kept). Has no effect ou… |
query | string | Search query text. Empty string browses/lists matching filters. At most 8192 bytes of UTF-8; a longer query is a 400. |
semantic | boolean | Enable hybrid keyword + semantic (vector) search via RRF. Requires `semantic_search: true` in index settings. Default false. |
set_alias
Point an alias name at a real index. After setting, you can use the alias name anywhere you would use an index name (search, import, get_object, etc.). Useful for zero-downtime reindexing: build a new index, then swap the alias.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The alias name (e.g. "products_live") |
index_name * | string | The real index name the alias should point to |
delete_alias
Remove an index alias. After deleting, the alias name will no longer resolve to any index.
| Parameter | Type | Description |
|---|---|---|
alias * | string | The alias name to delete |
list_aliases
List all index aliases in your account. Shows which alias points to which real index.
create_api_key
Create a new API key for your Sprigr account. Use this to create restricted keys for sub-agents or integrations that should only access specific indexes. Requires an admin-level API key.
| Parameter | Type | Description |
|---|---|---|
key_type * | string | Permission level: "search" (read-only, safe for frontend), "write" (can import/delete objects), "admin" (full access including settings/deletion) |
allowed_indexes | array | Restrict this key to only these index names. Omit or pass empty array for access to all indexes. Example: ["products", "categories"]. If the key creates a new index, that index is automatically added… |
description | string | Human-readable label for the key (e.g. "Agent search key for products") |
create_secured_key
Mint a SECURED (scoped) API key from your SEARCH key. A secured key carries a locked filter that the engine AND-s into every query the key makes, and the holder cannot remove or alter it. Use it for per-end-user authorization: give an AI agent a key whose filter restricts results to rows that one user is allowed to see (e.g. document ACLs). The engine refuses (400) a filter it cannot read as a lock, and mints nothing. Without filters the key has NO row restriction: it reads every row its parent search key can, in the allowed indexes. The key is stateless (nothing is stored), so revoke it by ro…
| Parameter | Type | Description |
|---|---|---|
filters | string | Locked filter expression, AND-ed into every query. Grammar: terms written "attr:value" (split on the first colon, so values may contain colons), joined by " OR " (alternatives within a clause) and " A… |
restrictIndices | array | Restrict the key to these indexes: a non-empty subset of the parent search key's own allowed indexes. Omit it to inherit the parent key's index access. |
userToken | string | Opaque per-end-user identifier carried for analytics / rate limiting (e.g. the user id or email). |
validUntil | integer | Expiry as a Unix timestamp in seconds. After this the key is rejected. Omit for no expiry. |
list_api_keys
List all API keys in your account with their types and index restrictions. Shows masked key previews (last 4 characters). Requires admin-level API key.