Typesense MCP Server

Typesense MCP Server

typesense-mcp-server•byavarant

A Model Context Protocol server that interfaces with Typesense, offering tools for server health, collection management, document operations, and keyword or vector search.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Manages Typesense collections, including describing schemas, creating, deleting, truncating, listing, and exporting collections.
  • •Performs document operations such as creating, upserting, batch indexing, deleting, and importing from CSV.
  • •Supports keyword search and vector similarity search on a specific collection.
  • •Runs over three MCP transports: STDIO by default, plus SSE and Streamable HTTP for remote or web clients.

BEST FOR

  • •Managing Typesense collections and documents from an MCP client.
  • •Running keyword and vector searches against Typesense collections.
  • •Connecting browser-based or remote clients to Typesense via Streamable HTTP.

ABOUT TYPESENSE-MCP-SERVER

Typesense MCP Server is cataloged as an MCP server attributed to avarant. A Model Context Protocol server that interfaces with Typesense, offering tools for server health, collection management, document operations, and keyword or vector search. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Typesense MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which MCP transports does the server support?

It supports STDIO (the default), legacy SSE, and Streamable HTTP transports.

How is HTTP access secured?

HTTP transports bind to loopback by default, enforce host/origin checks, and require a bearer token when listening on a non-loopback address.

Upstream README

View this exact version on GitHub

README.md · 995ad514e56a · Fetched 2026-11-13 10:23:10 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Typesense MCP Server

A Model Context Protocol (MCP) Server that interfaces with Typesense

Installation

Install uv

Requires Python 3.11 or higher.

On Mac you can install it using homebrew

brew install uv

Clone the package

git clone git@github.com:avarant/typesense-mcp-server.git ~/typesense-mcp-server

Add the server to your MCP client config. Most clients (Cursor at ~/.cursor/mcp.json, Claude Desktop at ~/Library/Application Support/Claude/claude_desktop_config.json, Windsurf, Zed, VS Code, etc.) accept the same mcpServers shape:

{
  "mcpServers": {
    "typesense": {
      "command": "uv",
      "args": ["--directory", "~/typesense-mcp-server", "run", "mcp", "run", "main.py"],
      "env": {
        "TYPESENSE_HOST": "",
        "TYPESENSE_PORT": "",
        "TYPESENSE_PROTOCOL": "",
        "TYPESENSE_API_KEY": ""
      }
    }
  }
}

Refer to your client's MCP documentation for the exact config file location.

Transports

The server supports three MCP transports. STDIO is the default and is what most desktop clients (Claude Desktop, Cursor, etc.) use. For remote clients or web UIs, you can run it as an HTTP server using either the legacy SSE transport or the newer Streamable HTTP transport.

STDIO (default)

TYPESENSE_API_KEY=xyz uv run python main.py

Single endpoint at /mcp. Works with browser-based clients like the llama.cpp web chat. Set MCP_TRANSPORT=streamable-http (or pass --http):

TYPESENSE_API_KEY=xyz \
MCP_TRANSPORT=streamable-http \
MCP_STATELESS_HTTP=true \
MCP_CORS_ORIGINS='*' \
uv run python main.py
  • Stateless mode (MCP_STATELESS_HTTP=true) is required for clients that don't keep an MCP session across requests.
  • CORS must be enabled (MCP_CORS_ORIGINS) for browser clients. Use a specific origin like http://localhost:8080 in production rather than *.

HTTP security

The HTTP transports give full access to your Typesense instance using the configured API key, so they are locked down by default:

  • Loopback only. The server listens on 127.0.0.1 unless you set MCP_HOST.
  • Host/Origin checks. Requests must address the server as localhost, 127.0.0.1 or [::1] (plus anything in MCP_ALLOWED_HOSTS), and browser requests must come from a localhost page or an origin listed in MCP_CORS_ORIGINS. This blocks DNS-rebinding attacks from websites you visit. With MCP_CORS_ORIGINS='*', only localhost pages are allowed.
  • Token required for remote access. To accept connections from other machines, set MCP_HOST=0.0.0.0, MCP_AUTH_TOKEN, and MCP_ALLOWED_HOSTS to the hostname/IP clients use. Clients must then send Authorization: Bearer <token>. The server refuses to start on a non-loopback address without a token unless MCP_ALLOW_UNAUTHENTICATED=true (only for setups that enforce auth elsewhere, e.g. a reverse proxy).
TYPESENSE_API_KEY=xyz \
MCP_TRANSPORT=streamable-http \
MCP_HOST=0.0.0.0 \
MCP_AUTH_TOKEN="$(openssl rand -hex 32)" \
MCP_ALLOWED_HOSTS=mcp.example.com \
uv run python main.py

When running the HTTP transport in Docker, set MCP_HOST=0.0.0.0 inside the container (plus a token), since connections from the host aren't loopback from the container's point of view.

SSE (legacy)

Two endpoints, GET /sse for the event stream and POST /messages/ for JSON-RPC. Set MCP_TRANSPORT=sse (or pass --sse):

TYPESENSE_API_KEY=xyz MCP_TRANSPORT=sse uv run python main.py

Configuration

Env varDefaultDescription
MCP_TRANSPORTstdiostdio, sse, or streamable-http
MCP_HOST127.0.0.1Bind address for HTTP transports
MCP_PORT8000Bind port for HTTP transports
MCP_AUTH_TOKEN(empty)Bearer token required on HTTP requests. Required when MCP_HOST is not loopback.
MCP_ALLOWED_HOSTS(empty)Extra accepted Host values, comma-separated (localhost is always allowed). No port = any port.
MCP_ALLOW_UNAUTHENTICATEDfalseAllow a non-loopback MCP_HOST without MCP_AUTH_TOKEN (auth enforced elsewhere).
MCP_STATELESS_HTTPfalseStateless mode for HTTP transports (required for some web clients)
MCP_CORS_ORIGINS(empty)Comma-separated allowed origins. Empty disables CORS. * = any.
CSV_IMPORT_DIR(empty)Directory import_documents_from_csv may read files from. Empty disables file-path imports (inline CSV only).

Available Tools

The Typesense MCP Server provides the following tools:

Server Management

  • check_typesense_health - Checks the health status of the configured Typesense server
  • list_collections - Retrieves a list of all collections in the Typesense server

Collection Management

  • describe_collection - Retrieves the schema and metadata for a specific collection
  • export_collection - Exports all documents from a specific collection
  • create_collection - Creates a new collection with the provided schema
  • delete_collection - Deletes a specific collection
  • truncate_collection - Truncates a collection by deleting all documents but keeping the schema

Document Operations

  • create_document - Creates a single new document in a specific collection
  • upsert_document - Upserts (creates or updates) a single document in a specific collection
  • index_multiple_documents - Indexes (creates, upserts, or updates) multiple documents in a batch
  • delete_document - Deletes a single document by its ID from a specific collection
  • import_documents_from_csv - Imports documents from inline CSV data, or from a CSV file inside CSV_IMPORT_DIR, into a collection

Search Capabilities

  • search - Performs a keyword search on a specific collection
  • vector_search - Performs a vector similarity search on a specific collection

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Typesense MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/typesense-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage