Typesense MCP Server
The Typesense MCP Server is a tool for managing and interacting with a Typesense search engine server through a Model Context Protocol (MCP) interface. It provides:
Server Management: Check health status of the Typesense server and list all available collections.
Collection Management: Describe, export, create, delete, or truncate collections.
Document Operations: Create, upsert, index multiple, or delete individual documents, as well as import documents from CSV data.
Search Capabilities: Perform keyword searches with filtering, sorting, and pagination, and execute vector similarity searches for advanced querying.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Typesense MCP Serversearch for customer support articles about billing issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Typesense MCP Server
A Model Context Protocol (MCP) Server that interfaces with Typesense
Installation
Installing via Smithery
To install Typesense Server Integration for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @avarant/typesense-mcp-server --client claudeManual Installation
Install uv
On Mac you can install it using homebrew
brew install uvClone the package
git clone git@github.com:avarant/typesense-mcp-server.git ~/typesense-mcp-serverUpdate your .cursor/mcp.json to use in Cursor
{
"mcpServers": {
"typesense": {
"command": "uv",
"args": ["--directory", "~/typesense-mcp-server", "run", "mcp", "run", "main.py"],
"env": {
"TYPESENSE_HOST": "",
"TYPESENSE_PORT": "",
"TYPESENSE_PROTOCOL": "",
"TYPESENSE_API_KEY": ""
}
}
}
}Related MCP server: SearXNG Model Context Protocol Server
Transports
The server supports two MCP transports. STDIO is the default and is what most desktop clients (Claude Desktop, Cursor, etc.) use. For remote clients, web UIs, or stateless tools like llama.cpp chat, you can run it as an HTTP SSE listener instead.
STDIO (default)
TYPESENSE_API_KEY=xyz uv run python main.pyHTTP / SSE
Set MCP_TRANSPORT=sse (or pass --sse) and optionally override host/port:
TYPESENSE_API_KEY=xyz \
MCP_TRANSPORT=sse \
MCP_HOST=0.0.0.0 \
MCP_PORT=8000 \
uv run python main.pyThe server then exposes:
GET http://<host>:<port>/sse— SSE event stream (clients connect here)POST http://<host>:<port>/messages/— JSON-RPC message endpoint
Env var | Default | Description |
|
|
|
|
| Bind address for SSE mode |
|
| Bind port for SSE mode |
Available Tools
The Typesense MCP Server provides the following tools:
Server Management
check_typesense_health- Checks the health status of the configured Typesense serverlist_collections- Retrieves a list of all collections in the Typesense server
Collection Management
describe_collection- Retrieves the schema and metadata for a specific collectionexport_collection- Exports all documents from a specific collectioncreate_collection- Creates a new collection with the provided schemadelete_collection- Deletes a specific collectiontruncate_collection- Truncates a collection by deleting all documents but keeping the schema
Document Operations
create_document- Creates a single new document in a specific collectionupsert_document- Upserts (creates or updates) a single document in a specific collectionindex_multiple_documents- Indexes (creates, upserts, or updates) multiple documents in a batchdelete_document- Deletes a single document by its ID from a specific collectionimport_documents_from_csv- Imports documents from CSV data into a collection
Search Capabilities
search- Performs a keyword search on a specific collectionvector_search- Performs a vector similarity search on a specific collection
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/avarant/typesense-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server