# TypesenseKit

> TypesenseKit is an open-source MCP server for databases. Typesense MCP server with 98 typed operations that starts read-only by default. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/typesensekit/typesensekit/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.typesensekit/typesensekit
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-15

## About

This package puts search, schema inspection, collection work and cluster administration behind typed MCP tools. Out of the box it only exposes read operations; setting TYPESENSEKIT_READ_ONLY=false adds the write, delete and admin tools, which is the main safety decision to make before pointing it at a live cluster.

It connects with a Typesense URL and API key and runs over stdio via npm, or as a stateless Streamable HTTP server through a second binary. Much of the README is about keeping agent context small: collections.list accepts compact:true to return per-collection counts, aliases, text fields and short field strings, and search accepts compact:true with params.include_fields to drop highlights and scores. Tool listings leave out repeated schema boilerplate, while calls are still validated against the full input schemas.

Error messages about facet, sort or index flags list the collection's fields, so an agent can fix a request without another lookup.

## Features

- **Read-only default:** Write, delete and admin tools stay hidden until you turn them on.
- **98 typed operations:** Covers search, schemas, collections and cluster administration.
- **Compact collection listing:** Short field strings keep schema output small.
- **Compact search:** Optional field selection and no highlights for lighter results.
- **Stdio and HTTP:** Runs locally over stdio or as a stateless Streamable HTTP server.
- **Helpful errors:** Failed requests list the collection's fields and text fields.

## Good for

- Let an agent inspect a Typesense collection schema
- Run searches against a collection from a chat
- Review cluster state without write access
- Administer collections when writes are enabled

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add typesensekit --env TYPESENSE_URL='<TYPESENSE_URL>' --env TYPESENSE_API_KEY='<TYPESENSE_API_KEY>' -- npx -y @typesensekit/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add typesensekit --env TYPESENSE_URL='<TYPESENSE_URL>' --env TYPESENSE_API_KEY='<TYPESENSE_API_KEY>' -- npx -y @typesensekit/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.typesensekit]
command = "npx"
args = ["-y", "@typesensekit/mcp"]
env = { TYPESENSE_URL = "<TYPESENSE_URL>", TYPESENSE_API_KEY = "<TYPESENSE_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e TYPESENSE_URL='<TYPESENSE_URL>' -e TYPESENSE_API_KEY='<TYPESENSE_API_KEY>' typesensekit npx -- -y @typesensekit/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "typesensekit": {
      "command": "npx",
      "args": [
        "-y",
        "@typesensekit/mcp"
      ],
      "env": {
        "TYPESENSE_URL": "<TYPESENSE_URL>",
        "TYPESENSE_API_KEY": "<TYPESENSE_API_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 4 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `collections.list` (name suggests: reads): Lists collections, with a compact mode.
- `collections.retrieve` (name suggests: reads): Returns full field definitions for a collection.
- `search` (name suggests: reads): Searches documents, with an optional compact mode.
- `documents.search` (name suggests: reads): Equivalent alias of search.

## FAQ

### Can TypesenseKit change my data?

Not by default; set TYPESENSEKIT_READ_ONLY=false to expose write, delete and admin tools.

### What does TypesenseKit need?

A Typesense URL and API key, passed as TYPESENSE_URL and TYPESENSE_API_KEY.

### How do I run TypesenseKit?

With pnpm dlx @typesensekit/mcp for stdio, or the typesensekit-mcp-http binary for Streamable HTTP.

### How do I reduce context size?

Use collections.list with compact:true and search with compact:true plus params.include_fields.

### Is TypesenseKit free?

Yes. TypesenseKit is open source, so you can use and self-host it for free.

### How do I add TypesenseKit to Claude Code?

Run this command in your terminal: claude mcp add typesensekit --env TYPESENSE_URL='<TYPESENSE_URL>' --env TYPESENSE_API_KEY='<TYPESENSE_API_KEY>' -- npx -y @typesensekit/mcp

### What are the best alternatives to TypesenseKit?

The closest alternatives to TypesenseKit are Lens MCP, Vectros, Mongodb MCP Server, AdoMcp and Typeship.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [Vectros](https://ai-powered.com/mcp/vectros): Vectros is a paid MCP server for databases.
- [Mongodb MCP Server](https://ai-powered.com/mcp/mongodb-mcp-server): Mongodb MCP Server is an open-source MCP server for databases.
- [AdoMcp](https://ai-powered.com/mcp/adomcp): AdoMcp is an open-source MCP server for databases.
- [Typeship](https://ai-powered.com/mcp/typeship): Typeship is a freemium MCP server for developer tools.
- [Metabase MCP (headless)](https://ai-powered.com/mcp/metabase-mcp-headless): Metabase MCP (headless) is an open-source MCP server for browser automation.
- [MCP Server Template](https://ai-powered.com/mcp/mcp-server-template): MCP Server Template is an open-source MCP server for developer tools.
- [Deixis](https://ai-powered.com/mcp/deixis): Deixis is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/typesensekit
