Typesense MCP by usefulapi
Search collections, read and write documents, and inspect synonyms and aliases in Typesense.
Sollte ich dies verwenden
Qualität und Sicherheit
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"typesense": {
"url": "https://typesense.usefulapi.io/mcp"
}
}
}Remote-Endpunkte
https://typesense.usefulapi.io/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (16)
🟢typesense_get_health
Check whether the Typesense server is ready to accept requests. Typesense API: GET /health.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_list_collections
List all collections with their names, field schemas, document counts and default sorting field. Good first call to see what is searchable. Typesense API: GET /collections.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_get_collection(collection)
Get one collection: its field schema, document count and settings. Typesense API: GET /collections/{collectionName}.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
}
},
"required": [
"collection"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_search(collection, q, query_by, filter_by, sort_by, ...)
Search one collection with typo-tolerant full-text search, filters, sorting, facets and pagination. Returns hits, found count and facet counts. Typesense API: GET /collections/{collectionName}/documents/search.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"q": {
"type": "string",
"minLength": 1,
"description": "Search text. Use \"*\" to match all documents, for example with filter_by only."
},
"query_by": {
"type": "string",
"minLength": 1,
"description": "Comma-separated text fields to match, for example title,description. Typesense requires it."
},
"filter_by": {
"description": "Filter expression, for example \"price:<100 && in_stock:true\".",
"type": "string"
},
"sort_by": {
"description": "Sort expression, for example \"price:asc\" or \"_text_match:desc,rating:desc\".",
"type": "string"
},
"facet_by": {
"description": "Comma-separated fields to count values for, for example brand,category.",
"type": "string"
},
"include_fields": {
"description": "Comma-separated fields to return in each hit.",
"type": "string"
},
"exclude_fields": {
"description": "Comma-separated fields to leave out of each hit.",
"type": "string"
},
"prefix": {
"description": "Prefix matching per query field, for example \"true\" or \"true,false\".",
"type": "string"
},
"num_typos": {
"description": "Typo tolerance per query field, for example \"2\" or \"1,2\".",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Hits per page (Typesense maximum 250).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 250
}
},
"required": [
"collection",
"q",
"query_by"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_multi_search(searches)
Run up to 10 searches in one request, each on its own collection, and return one result per search. Typesense API: POST /multi_search.
Eingabe-Schema
{
"type": "object",
"properties": {
"searches": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"q": {
"type": "string",
"minLength": 1,
"description": "Search text. Use \"*\" to match all documents, for example with filter_by only."
},
"query_by": {
"type": "string",
"minLength": 1,
"description": "Comma-separated text fields to match, for example title,description. Typesense requires it."
},
"filter_by": {
"description": "Filter expression, for example \"price:<100 && in_stock:true\".",
"type": "string"
},
"sort_by": {
"description": "Sort expression, for example \"price:asc\" or \"_text_match:desc,rating:desc\".",
"type": "string"
},
"facet_by": {
"description": "Comma-separated fields to count values for, for example brand,category.",
"type": "string"
},
"include_fields": {
"description": "Comma-separated fields to return in each hit.",
"type": "string"
},
"exclude_fields": {
"description": "Comma-separated fields to leave out of each hit.",
"type": "string"
},
"prefix": {
"description": "Prefix matching per query field, for example \"true\" or \"true,false\".",
"type": "string"
},
"num_typos": {
"description": "Typo tolerance per query field, for example \"2\" or \"1,2\".",
"type": "string"
},
"page": {
"description": "Page number (default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"per_page": {
"description": "Hits per page (Typesense maximum 250).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 250
}
},
"required": [
"collection",
"q",
"query_by"
]
},
"description": "The searches to run. Each item has a collection and the same fields as typesense_search."
}
},
"required": [
"searches"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_get_document(collection, document_id)
Get one document from a collection by its id. Typesense API: GET /collections/{collectionName}/documents/{documentId}.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"document_id": {
"type": "string",
"minLength": 1,
"description": "Document id (a string)."
}
},
"required": [
"collection",
"document_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_list_synonym_sets
List all synonym sets (words treated as equal in search). Typesense API: GET /synonym_sets.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_get_synonym_set(name)
Get one synonym set and its items. Typesense API: GET /synonym_sets/{synonymSetName}.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Name of the synonym set, curation set or alias."
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_list_curation_sets
List all curation sets (pinned and hidden results rules). Typesense API: GET /curation_sets.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_list_aliases
List all collection aliases. An alias points to a collection, so an app can switch collections without a code change. Typesense API: GET /aliases.
Eingabe-Schema
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_get_alias(name)
Get one alias and the collection it points to. Typesense API: GET /aliases/{aliasName}.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Name of the synonym set, curation set or alias."
}
},
"required": [
"name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢typesense_list_analytics_rules(rule_tag)
List analytics rules that count searches or clicks into popular-query collections. Optionally filter by rule_tag. Typesense API: GET /analytics/rules.
Eingabe-Schema
{
"type": "object",
"properties": {
"rule_tag": {
"description": "Only rules with this tag.",
"type": "string"
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴typesense_create_collection(name, fields, default_sorting_field)
Create a new collection with a field schema. Fails with HTTP 409 if the name already exists. Writes data structure only: it stores no documents. Typesense API: POST /collections.
Eingabe-Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "New collection name."
},
"fields": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Field name."
},
"type": {
"type": "string",
"minLength": 1,
"description": "Typesense field type, for example string, string[], int32, int64, float, bool, geopoint or auto."
},
"optional": {
"description": "true if documents may omit this field.",
"type": "boolean"
},
"facet": {
"description": "true to allow facet_by on this field.",
"type": "boolean"
},
"index": {
"description": "false to store the field without indexing it.",
"type": "boolean"
},
"sort": {
"description": "true to allow sort_by on this field.",
"type": "boolean"
}
},
"required": [
"name",
"type"
]
},
"description": "The field schema. Each field needs a name and a type."
},
"default_sorting_field": {
"description": "A numeric field used as the default sort. Must be one of the fields.",
"type": "string"
}
},
"required": [
"name",
"fields"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴typesense_upsert_document(collection, document)
Create a document, or replace it when a document with the same id exists. The document must include its id, so a retry replaces the same document. Typesense API: POST /collections/{collectionName}/documents?action=upsert.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"document": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The whole document as a JSON object. It must include a string id field."
}
},
"required": [
"collection",
"document"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴typesense_update_document(collection, document_id, fields)
Change some fields of an existing document and keep the rest. Only the given fields change. Calling it twice with the same data gives the same result. Typesense API: PATCH /collections/{collectionName}/documents/{documentId}.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"document_id": {
"type": "string",
"minLength": 1,
"description": "Document id (a string)."
},
"fields": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "The fields to change, with their new values."
}
},
"required": [
"collection",
"document_id",
"fields"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴typesense_delete_document(collection, document_id)
Delete one document by id. This tool cannot restore a deleted document. Typesense API: DELETE /collections/{collectionName}/documents/{documentId}.
Eingabe-Schema
{
"type": "object",
"properties": {
"collection": {
"type": "string",
"minLength": 1,
"description": "Collection name, for example products (from typesense_list_collections)."
},
"document_id": {
"type": "string",
"minLength": 1,
"description": "Document id (a string)."
}
},
"required": [
"collection",
"document_id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}Community
Nachweis