mcp-server

v1.18.0
@sprigr/mcp-server Checked 4 days ago Published 2 months ago

Sprigr 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.

ParameterTypeDescription
index_name *stringName for the index (e.g. "products", "articles"). Use lowercase with underscores.
attributes_for_facetingarrayAttributes 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_rankingarrayCustom ranking attributes in order (e.g. ["desc(popularity)", "asc(price)"]).
descriptionstringHuman-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_attributesarrayAttributes 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_searchbooleanEnable 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).

ParameterTypeDescription
index_name *stringName of the index to update
attributes_for_facetingarrayAttributes available as filters/facets
custom_rankingarrayCustom ranking attributes (e.g. ["desc(popularity)"])
descriptionstringHuman-readable description of what this index stores. Shown in list_indexes.
searchable_attributesarrayAttributes to include in search, in priority order
semantic_searchbooleanEnable or disable semantic (vector) search. When enabled, embeddings are generated on import.
synonymsobjectSynonym 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…

ParameterTypeDescription
index_name *stringTarget index name
objects *arrayArray 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…

ParameterTypeDescription
index_name *stringTarget memory index
object *objectA single JSON object to store. MUST have an "objectID". Include title/summary/content/_keywords as applicable.
dry_runbooleanIf true, return the dedup decision and would-be write WITHOUT importing.
filtersstringOptional facet filter to scope dedup candidates (e.g. "project:sprigr-team"). Narrows what counts as a near-duplicate.
knumberMax dedup candidates to consider (default 5).

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.

ParameterTypeDescription
index_name *stringIndex to delete from
object_ids *arrayArray of objectIDs to delete

get_object

Fetch a single object from an index by its objectID. Useful for retrieving a specific record without searching.

ParameterTypeDescription
index_name *stringIndex to fetch from
object_id *stringThe 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.

ParameterTypeDescription
index_name *stringName 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.

ParameterTypeDescription
index_name *stringName 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.

ParameterTypeDescription
index_name *stringIndex to export from
pagenumberPage number (0-indexed, default 0). Each page returns up to 1000 objects.
per_pagenumberObjects per page (default 1000, max 1000)

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.

ParameterTypeDescription
alias *stringThe alias name (e.g. "products_live")
index_name *stringThe 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.

ParameterTypeDescription
alias *stringThe 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.

ParameterTypeDescription
key_type *stringPermission level: "search" (read-only, safe for frontend), "write" (can import/delete objects), "admin" (full access including settings/deletion)
allowed_indexesarrayRestrict 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…
descriptionstringHuman-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…

ParameterTypeDescription
filtersstringLocked 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…
restrictIndicesarrayRestrict 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.
userTokenstringOpaque per-end-user identifier carried for analytics / rate limiting (e.g. the user id or email).
validUntilintegerExpiry 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.