Typesense MCP by usefulapi
Search collections, read and write documents, and inspect synonyms and aliases in Typesense.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"typesense": {
"url": "https://typesense.usefulapi.io/mcp"
}
}
}リモートエンドポイント
https://typesense.usefulapi.io/mcpstreamable-httpできること
ツール一覧
ツール(16)
🟢typesense_get_health
Check whether the Typesense server is ready to accept requests. Typesense API: GET /health.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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.
入力スキーマ
{
"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}.
入力スキーマ
{
"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}.
入力スキーマ
{
"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"
}コミュニティ
エビデンス