Algolia MCP by usefulapi
Search indices, read records and synonyms, and add, change or delete records in Algolia.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"algolia": {
"url": "https://algolia.usefulapi.io/mcp"
}
}
}Puntos de conexión remotos
https://algolia.usefulapi.io/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (17)
🟢algolia_list_indices(page, hitsPerPage)
List the indices in the Algolia application with their entry counts, sizes and update times. Good first call. Algolia API: GET /1/indexes.
Esquema de entrada
{
"type": "object",
"properties": {
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"hitsPerPage": {
"description": "Results per page (0–1000; 0 returns counts only).",
"type": "integer",
"minimum": 0,
"maximum": 1000
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_search_index(indexName, query, filters, hitsPerPage, page, ...)
Search one index and return the matching records (hits) with highlights and facets when requested. Up to 1,000 hits; use paging for more. Algolia API: POST /1/indexes/{indexName}/query.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"query": {
"description": "Text to search for.",
"type": "string"
},
"filters": {
"description": "Filter expression, for example \"brand:Apple AND price < 500\".",
"type": "string"
},
"hitsPerPage": {
"description": "Results per page (0–1000; 0 returns counts only).",
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"params": {
"description": "Other Algolia search parameters as an object, for example { attributesToRetrieve, facets, facetFilters }.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"indexName"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_multi_search(requests, strategy)
Run one or more search queries across one or more indices in one call and return one result per query, in order. A hit query has indexName and query. A facet query has indexName, type "facet", facet and query. Algolia API: POST /1/indexes/*/queries.
Esquema de entrada
{
"type": "object",
"properties": {
"requests": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"query": {
"description": "Text to search for.",
"type": "string"
},
"type": {
"description": "\"default\" for hits, \"facet\" for facet values.",
"type": "string",
"enum": [
"default",
"facet"
]
},
"facet": {
"description": "Facet name when type is \"facet\".",
"type": "string"
}
},
"required": [
"indexName"
],
"additionalProperties": {}
},
"description": "The queries (hit or facet). Each has indexName, plus any search parameter at the top level."
},
"strategy": {
"description": "\"none\" runs all queries (default).",
"type": "string",
"enum": [
"none",
"stopIfEnoughMatches"
]
}
},
"required": [
"requests"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_search_facet_values(indexName, facetName, facetQuery, params)
Search the values of one facet in an index, for example brand names that start with "App". Algolia API: POST /1/indexes/{indexName}/facets/{facetName}/query.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"facetName": {
"type": "string",
"minLength": 1,
"description": "Facet attribute name, for example \"brand\"."
},
"facetQuery": {
"type": "string",
"description": "Text to match inside the facet values."
},
"params": {
"description": "Other Algolia search parameters as an object, for example { attributesToRetrieve, facets, facetFilters }.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"indexName",
"facetName",
"facetQuery"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_object(indexName, objectID, attributesToRetrieve)
Get one record by objectID, optionally with only some attributes. Algolia API: GET /1/indexes/{indexName}/{objectID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
},
"attributesToRetrieve": {
"description": "Attribute names to return (default: all).",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"indexName",
"objectID"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_objects(requests)
Get up to 1,000 records by objectID across indices in one call. Algolia API: POST /1/indexes/*/objects.
Esquema de entrada
{
"type": "object",
"properties": {
"requests": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
},
"attributesToRetrieve": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"indexName",
"objectID"
]
},
"description": "The records to fetch."
}
},
"required": [
"requests"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_settings(indexName)
Get an index's settings: searchable and facet attributes, ranking, typo tolerance and more. Algolia API: GET /1/indexes/{indexName}/settings.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
}
},
"required": [
"indexName"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_search_synonyms(indexName, query, type, page, hitsPerPage)
Search the synonyms of an index. Algolia API: POST /1/indexes/{indexName}/synonyms/search.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"query": {
"description": "Text to search for.",
"type": "string"
},
"type": {
"description": "Limit to one synonym type.",
"type": "string",
"enum": [
"synonym",
"onewaysynonym",
"altcorrection1",
"altcorrection2",
"placeholder"
]
},
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"hitsPerPage": {
"description": "Results per page (0–1000; 0 returns counts only).",
"type": "integer",
"minimum": 0,
"maximum": 1000
}
},
"required": [
"indexName"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_synonym(indexName, objectID)
Get one synonym by objectID. Algolia API: GET /1/indexes/{indexName}/synonyms/{objectID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
}
},
"required": [
"indexName",
"objectID"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_search_rules(indexName, query, anchoring, context, enabled, ...)
Search the query rules of an index (rules that change results for matching queries or contexts). Algolia API: POST /1/indexes/{indexName}/rules/search.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"query": {
"description": "Text to search for.",
"type": "string"
},
"anchoring": {
"description": "Match type of the rule's pattern.",
"type": "string",
"enum": [
"is",
"startsWith",
"endsWith",
"contains"
]
},
"context": {
"description": "Limit to rules with this context.",
"type": "string"
},
"enabled": {
"description": "Only enabled (true) or disabled (false) rules.",
"type": "boolean"
},
"page": {
"description": "Page number, starting at 0.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"hitsPerPage": {
"description": "Results per page (0–1000; 0 returns counts only).",
"type": "integer",
"minimum": 0,
"maximum": 1000
}
},
"required": [
"indexName"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_rule(indexName, objectID)
Get one query rule by objectID. Algolia API: GET /1/indexes/{indexName}/rules/{objectID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
}
},
"required": [
"indexName",
"objectID"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_task(indexName, taskID)
Check whether an index write (returned as taskID) is published yet. Algolia API: GET /1/indexes/{indexName}/task/{taskID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"taskID": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "string",
"minLength": 1
}
],
"description": "A taskID from a write response."
}
},
"required": [
"indexName",
"taskID"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢algolia_get_logs(offset, length, indexName, type)
Get the last seven days of API log entries (queries, indexing, errors), newest first. Needs a key with the logs permission. Algolia API: GET /1/logs.
Esquema de entrada
{
"type": "object",
"properties": {
"offset": {
"description": "First entry to return (newest is 0).",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"length": {
"description": "Number of entries (1–1000).",
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"indexName": {
"description": "Only logs for this index.",
"type": "string"
},
"type": {
"description": "Type of log entry (default all).",
"type": "string",
"enum": [
"all",
"query",
"build",
"error"
]
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴algolia_save_object(indexName, record)
Add a new record with an auto-generated objectID. Changes the index. Returns the new objectID and a taskID. Algolia API: POST /1/indexes/{indexName}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"record": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The record as a JSON object."
}
},
"required": [
"indexName",
"record"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴algolia_add_or_replace_object(indexName, objectID, record)
Add a record with this objectID, or replace the whole existing record. Replacing drops attributes not sent. Changes the index. Algolia API: PUT /1/indexes/{indexName}/{objectID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
},
"record": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The record as a JSON object."
}
},
"required": [
"indexName",
"objectID",
"record"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴algolia_partial_update_object(indexName, objectID, attributes, createIfNotExists)
Change only the given attributes of one record and keep the rest. Changes the index. Algolia API: POST /1/indexes/{indexName}/{objectID}/partial.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
},
"attributes": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The attributes to set, for example { price: 399 }."
},
"createIfNotExists": {
"description": "Create the record when it does not exist (default false).",
"type": "boolean"
}
},
"required": [
"indexName",
"objectID",
"attributes"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴algolia_delete_object(indexName, objectID)
Delete one record by objectID. The record is removed from search results after the returned taskID completes. Algolia API: DELETE /1/indexes/{indexName}/{objectID}.
Esquema de entrada
{
"type": "object",
"properties": {
"indexName": {
"type": "string",
"minLength": 1,
"description": "Index name (from algolia_list_indices)."
},
"objectID": {
"type": "string",
"minLength": 1,
"description": "The record's objectID."
}
},
"required": [
"indexName",
"objectID"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Comunidad
Evidencia