npm @typesensekit/mcpstdioMITupdated 1mo ago
TypesenseKit gives humans and AI agents the same 95 typed Typesense operations through a human-friendly CLI and secure MCP server. MCP access is read-only by default; write, delete, key-management, and raw API tools require explicit opt-in.
What can you do with TypesenseKit?
Operate Typesense from your terminal or AI agent
TypesenseKit gives humans and AI agents the same 95 typed Typesense operations through a human-friendly CLI and secure MCP server. MCP access is read-only by default; write, delete, key-management, and raw API tools require explicit opt-in.
Website ยท Typesense CLI ยท Typesense MCP ยท Guides
pnpm add -g @typesensekit/cli
# Securely prompts for the API key
tsk profile add local --url http://localhost:8108
tsk profile use local
# Discover the input, then run the operation
tsk documents.search --examples
tsk documents.search --input '{"collection":"products","params":{"q":"oak chair","query_by":"title"}}' --json
Why TypesenseKit
Typesense work often jumps between dashboards, one-off scripts, local curl commands, and agent experiments. TypesenseKit keeps those workflows on one predictable surface:
- Use the same operation names from the CLI and MCP server.
- Validate structured inputs before requests reach Typesense.
- Get readable terminal output or stable, redacted JSON for scripts.
- Keep secrets out of shell history with secure prompts, stdin, or macOS Keychain profiles.
- Confirm destructive CLI operations before they run.
- Give AI clients read-only tools by default, then opt in to writes deliberately.
- Reach newer or uncommon endpoints through the raw
api.callescape hatch.
| One-off scripts | Typesense client | Basic MCP wrapper | TypesenseKit | |
|---|---|---|---|---|
| Terminal-first workflow | Manual | โ | โ | Built in |
| MCP tools | โ | โ | Yes | Yes |
| Shared CLI/MCP operations | โ | โ | Varies | Yes |
| Safe operational defaults | You build them | Application-owned | Varies | Read-only + confirmations |
Use the official Typesense client in application code. Use TypesenseKit when humans, scripts, and agents need to perform the same operational work.
CLI
Install the public CLI package:
pnpm add -g @typesensekit/cli
Create a profile interactively, pipe a key over stdin for automation, or use macOS Keychain:
# Interactive secure prompt
tsk profile add local --url http://localhost:8108
# Scripted setup without putting the key in argv or shell history
printf '%s' "$TYPESENSE_API_KEY" | tsk profile add ci \
--url https://search.example.com --api-key-stdin
# Keychain-backed profile on macOS
tsk profile add production --url https://search.example.com --keychain
Every operation supports generated schemas and examples. Common results render as tables; pass --json for stable automation output.
tsk operations
tsk collections.list --input '{}'
tsk documents.search --schema
tsk documents.search --examples
tsk collections.list --input '{}' --json
Enable shell completion:
source <(tsk completion zsh)
source <(tsk completion bash)
tsk completion fish | source
See the Typesense CLI overview or read the complete CLI guide for profiles, environment-only use, JSON input, completion, and destructive-operation behavior.
MCP Server
Run the stdio server directly. It exposes search, reads, collection metadata, configuration reads, and system status operations by default.
TYPESENSE_URL=http://localhost:8108 \
TYPESENSE_API_KEY=xyz \
pnpm dlx @typesensekit/mcp
Write, delete, key-management, and raw API tools stay hidden unless full access is explicitly enabled:
TYPESENSEKIT_READ_ONLY=false \
TYPESENSE_URL=http://localhost:8108 \
TYPESENSE_API_KEY=xyz \
pnpm dlx @typesensekit/mcp
Generate client configuration from the CLI:
tsk skills mcp
tsk skills claude-desktop
tsk skills claude-code
tsk skills hermes
See the Typesense MCP overview, MCP guide, and client setup guide for Claude Desktop, Claude Code, Codex, Cursor, generic MCP clients, Streamable HTTP, and Docker.
MCP resources
| Resource | Purpose |
|---|---|
typesensekit://operations |
Operations exposed by the current MCP mode |
typesensekit://read-only-tools |
Tools included in the default read-only mode |
typesense://collections/{collection}/schema |
Collection schema lookup |
typesense://collections/{collection}/documents/{id} |
Document lookup |
What You Can Operate
TypesenseKit targets the Typesense v30.2 API for current first-class operations:
- Collections, schema changes, documents, imports, exports, search, multi-search, facets, and suggestions
- Aliases, presets, global synonym and curation sets, stopwords, stemming dictionaries, and legacy collection configuration
- API keys, analytics rules and events, natural-language search models, conversations, and conversation history
- Health, metrics, stats, debug information, snapshots, slow-request logging, database maintenance, and other system operations
The generated API coverage inventory is the source of truth for operation names and compatibility notes. Use api.call for endpoints that are new, uncommon, or not yet wrapped.
Security
Typesense administration touches data and credentials. Keep the MCP server read-only for assistant-facing deployments, use narrowly scoped Typesense keys, and protect any Streamable HTTP deployment with authentication and network controls.
Development
corepack enable
pnpm install
pnpm check
Run a local Typesense server:
docker run -p 8108:8108 \
-e TYPESENSE_API_KEY=xyz \
-e TYPESENSE_DATA_DIR=/data \
typesense/typesense:30.2 --enable-cors
Run the landing page locally:
pnpm dev:web
See CONTRIBUTING.md for development and release rules.
License
Install
Add TypesenseKit to your client. Pick the one you use.
claude mcp add mcp -- npx -y @typesensekit/mcpcodex mcp add mcp -- npx -y @typesensekit/mcpamp mcp add mcp -- npx -y @typesensekit/mcp{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mcp","command":"npx","args":["-y","@typesensekit/mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@typesensekit/mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"@typesensekit/mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @typesensekit/mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance16/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 46 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 1.4.3Latest | Jul 12, 2026 |
| 1.4.2 | Jul 12, 2026 |