typesense_collection_stats
Get statistics about a Typesense collection
Search a Typesense collection with filters and sorting, fetch the document behind a hit by ID, and have the client discover which collections exist and what fields they carry.
LABSCO SUMMARY
typesense_list_collections returns field definitions as well as names, which is what lets the same setup work when collections differ by environment, tenant or version — its description calls this zero-conf discovery and routing. The surface is narrow and entirely read-side: there is no document upsert, no collection creation and no schema change, so the server can point at a production index without being able to alter it.
A read-only client for a Typesense instance, with runtime schema discovery so collection names need not be known in advance.
A reachable Typesense host and an API key for it, given to the server at start along with the port and protocol to use.
One command — npx -y typesense-mcp-server --host <YOUR_TYPESENSE_HOST> --port 8108 --protocol http --api-key <YOUR_API_KEY>
USE CASES
Enumerate the collections and their field definitions, pick the one that carries the data, and search it with the fields, filters and sort that its schema actually supports.
Search returns the match; fetching the document by its ID gets the fields the search response left out.
Read the collection's statistics and its field definitions to confirm the shape and the volume, rather than inferring both from the first page of results.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
typesense_collection_statsGet statistics about a Typesense collection
typesense_get_documentRetrieve a specific document by ID from a Typesense collection
typesense_list_collectionsList all available Typesense collections with their schemas. Allows zero-conf discovery and routing - the LLM can enumerate collections at runtime and pick the right one(s) before searching. Useful when collections vary by environment, tenant, or version. Returns field definitions for schema inference.
typesense_querySearch for relevant documents in the TypeSense database based on the user's query.
BEFORE YOU INSTALL
4 tools when we connected.
npx on PATH
CONTEXT COST
Rated by the size of the 4 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"typesense-mcp-server": {
"command": "npx",
"args": [
"-y",
"typesense-mcp-server",
"--host",
"<YOUR_TYPESENSE_HOST>",
"--port",
"8108",
"--protocol",
"http",
"--api-key",
"<YOUR_API_KEY>"
]
}
}
}npx -y typesense-mcp-server --host <YOUR_TYPESENSE_HOST> --port 8108 --protocol http --api-key <YOUR_API_KEY>