# Typesense Cloud MCP Server

Connect your AI agent to Typesense Cloud and it can create and configure clusters, build collections, index your data, tune search and read metrics, all from the conversation. You decide what it is allowed to do when you connect it, and you can disconnect it at any time.

# Step 1: Connect

Add the Typesense Cloud MCP server to your AI Agent:

https://cloud.typesense.org/mcp/v1

It is a remote MCP server over Streamable HTTP with OAuth, so any client that supports those works.

Here are instructions for common agents:

Claude Code:

claude mcp add --transport http typesense-cloud https://cloud.typesense.org/mcp/v1

Then open a new Claude Code session, type /mcp, select the typesense-cloud MCP you just added, and select "Authenticate"

Codex CLI:

codex mcp add typesense-cloud --url https://cloud.typesense.org/mcp/v1

Codex reads your project's AGENTS.md every turn. Add this line to it so Codex reaches for Typesense Cloud instead of asking you for keys:

For anything about my Typesense Cloud account, clusters or collections, use the typesense-cloud MCP tools.

Cursor (mcp.json, MCP setup docs (opens new window)):

{ "mcpServers": { "typesense-cloud": { "url": "https://cloud.typesense.org/mcp/v1" } } }

claude.ai and Claude Desktop (custom connector docs (opens new window)):

Go to Customize, then Connectors, then Add custom connector, and paste this URL: https://cloud.typesense.org/mcp/v1

ChatGPT (MCP setup docs (opens new window)):

In the ChatGPT desktop app, go to Settings, then Plugins, then MCP, then Add, then Add MCP Server. Name it "Typesense Cloud", set the type to Streamable HTTP and the URL to https://cloud.typesense.org/mcp/v1, and save.

Then ask: "Using Typesense Cloud MCP, show me my clusters."

Other Clients:

Any other client that supports MCP over Streamable HTTP with OAuth works the same way.

Once you add the MCP Server, follow your client's instructions to authenticate the MCP Server.

Your browser will open a Typesense Cloud consent page.

Sign in (or sign up), choose the account the agent should work on, choose what permissions it has, and click Connect.

If you're part of a team account, the permissions in the consent screen will be capped at permissions your RBAC role in your team account already gives you. So for eg: someone on your team with a curator role, connecting their agent, will only be able to add permissions for searching and curation, and not any of the other permissions.

TIP

  • A connection is tied to one account. To work on another account, add the MCP server again with the same URL as above, but give it a different name.
  • The account owner receives an email whenever a new connection is approved, and every connection is listed under Account, then Connected apps, where you can disconnect it.
  • If Cursor does not show the tools after connecting, restart it. Cursor caches a server's tool list until it restarts.

# Step 3: Start with a prompt

Once connected, paste this into your agent:

Using MCP, set up Typesense Cloud for me: create a cluster, then index my data (it's in <describe or point to it>) and build a first search.

The agent creates a free-tier cluster, asks what your data looks like, proposes a schema, imports the data and runs a search you can check. From there, ask your agent for what you need. Here are some examples for inspiration:

Working with your data:

  • "Create a collection for my products and import them from products.jsonl"
  • "Show me the schema of the products collection and a few sample documents"
  • "How many documents are in each collection?"
  • "Add brand as a facet field to the products collection"
  • "Point the products_live alias at the products_v2 collection"
  • "Delete every document in orders where status:=cancelled"
  • "Export the orders collection to a file"

Searching:

  • "Search for running shoes under $100, sorted by rating"
  • "Search products and articles for trail running in one call and show me the top three of each"
  • "Run a hybrid search on articles for getting started with vector search"
  • "Group the results by brand and show me two per brand"

Tuning search results:

  • "Make in-stock products rank above out-of-stock ones"
  • "Boost newer products: sort by relevance first, then by created_at descending"
  • "Pin product 123 to the top when someone searches for sneakers"
  • "Add synonyms so that sneakers also matches trainers"
  • "Allow one typo on title but none on sku"
  • "Add the, a and an as stopwords for the articles collection"
  • "Save these search settings as a preset called storefront"
  • "Set up popular-queries analytics so I can see what people search for most"
  • "Set up natural language search on products so people can type cheap red shoes for kids"
  • "Add a conversation model so I can build a chat over the docs collection"

Search Typesense docs:

The MCP server will automatically query the docs for the version your Typesense Cloud cluster is running on

  • "How do I do geo search within 5 km of a point?"
  • "What does drop_tokens_threshold do and what should I set it to?"
  • "Which search parameters does my cluster's version support for vector search?"

Managing your cluster's infrastructure:

  • "Show CPU and memory for the last 24 hours"
  • "Upgrade my cluster to 4 GB of RAM"
  • "Turn on high availability and schedule the change for 2 am UTC"
  • "Upgrade my cluster to the latest Typesense version"
  • "Cancel the configuration change that is still pending"
  • "Set max-per-page to 500 on this cluster"
  • "Clone my production cluster into a staging cluster"
  • "Which regions and cluster sizes can I choose from?"
  • "Give me the search-only key for my web app"
  • "Terminate the staging-old cluster"

Analyzing your billing data:

  • "Show me my last three invoices?"
  • "What changed between my invoice from this week vs last week?"
  • "Based on my last 6 invoices, how much should I prepay for the credits to last a year?"

# What you can let the agent do

When you connect your agent, the permissions page shows five presets:

Preset The agent can
Search only Search collections and read schemas, list clusters.
Search and curate Search, plus synonyms, curation, presets and stopwords, plus list clusters.
Manage clusters Create, resize, rename and tune clusters. No access to the data inside them.
Build (default) Manage clusters and everything inside them. No terminating, cloning or billing; the only key it can create is a search-only cluster key for an app.
Everything Every capability your role allows, including terminating clusters.

You can also enable or disable individual permissions. Cluster permissions are the same ones a Cluster Management API key can carry:

  • clusters:read: list clusters and read their configuration, status, history and server parameters
  • metrics:read: read cluster metrics
  • clusters:create: create clusters (billed to the account)
  • clusters:configure: resize, change topology, rename and toggle auto-upgrade (billable changes)
  • cluster_parameters:manage: change Typesense server parameters (no billing impact)
  • clusters:clone: clone clusters
  • cluster_credentials:issue: issue cluster API keys
  • billing:read: read invoices
  • clusters:terminate: terminate clusters

Data permissions match the cluster UI dashboard's permissions:

  • data:view: read collections, schemas, documents and aliases
  • data:search: search, and create a search-only cluster key for an app (if your role manages keys)
  • data:full_access: create, change and drop collections; add, update and delete documents; manage aliases
  • data:manage_synonyms, data:manage_overrides (curation), data:manage_presets, data:manage_stopwords, data:manage_stemming
  • data:manage_analytics_rules, data:manage_conversation_models, data:manage_natural_language_models

Every tool is offered to every connection; but each tool call is checked against the permissions you granted, and a refused call tells the agent which permission it is missing so it can ask you for it. To widen a connection, disconnect the MCP Server from your agent, then re-add and re-authenticate. You'll see the consent screen again, where you'll be able to select the new set of permissions.

The tools that change things (manage_cluster, documents and change_cluster_data) are marked destructive, so clients that honor that annotation ask you before running them.

On a team account you can only grant what your own role allows. Options your role does not cover are greyed out with the reason.

# What the agent works with

These are the tools available for your agent to use once it is connected. Agents read the tool descriptions, so you do not need to name tools or actions in your prompts; this list is here so you know what is possible.

  • whoami: which account and permissions the connection has, the clusters on the account, and what to do with them first. Agents call it first.
  • search_typesense_docs: searches this documentation, matched to your cluster's Typesense version.
  • search_documents: searches a collection, including multi-search and vector or hybrid queries.
  • get_clusters: lists clusters and reads configuration, status, metrics, configuration-change and cloning history, server parameters and invoices, plus the regions, memory and vCPU options a cluster can be created with.
  • manage_cluster: creates, renames, resizes, tunes, clones and terminates clusters, and issues cluster API keys.
  • documents: indexes, updates, fetches, deletes, imports and exports documents.
  • read_cluster_data and change_cluster_data: everything else in the Typesense Server API by path: collections, aliases, synonyms, curation, presets, stopwords, stemming dictionaries, analytics, and conversation and natural language search models.

Typesense Cloud performs data operations against your cluster with a key it keeps server-side. The agent does not receive your cluster's admin key.

# Large imports and exports

The agent imports up to 1,000 documents or 10 MB in one call. For anything larger, and for every export, it receives a curl command to run on your machine instead, so the data moves directly between your machine and the cluster. The command uses a temporary key that Typesense Cloud creates for that one job: scoped to that collection and that action, valid for 24 hours, fetched once into a private file on your machine.

Browser-based assistants such as claude.ai and ChatGPT cannot run commands, so their imports stay within the inline limit.

# Free tier and billing

A new account can create a free-tier cluster (0.5 GB memory, 2 vCPU burst, one node) without a payment method. Creating anything beyond the free tier needs a payment method on the account, or enough prepaid credit for a new cluster. Changing a cluster's configuration or cloning it needs a payment method or a positive prepaid credit balance. Upgrading the Typesense server version is exempt, and free-tier clusters can always take it. The agent tells you when a payment method is needed and can offer to test with a subset of your data that fits the free tier.

# Rate Limits

Each connection gets 300 data calls (search, documents, reads and writes) per minute and 30 cluster-management actions per minute, the same as the Cloud Management API.

# Running without a browser

An agent on a server, in CI, or anywhere it cannot open a browser can use a Cluster Management API key as the bearer token on the same URL:

claude mcp add --transport http typesense-cloud https://cloud.typesense.org/mcp/v1 \
  --header "Authorization: Bearer ${TYPESENSE_CLOUD_MANAGEMENT_API_KEY}"

Use the key exactly as it was shown when you created it. A key unlocks the cluster tools (whoami, search_typesense_docs, get_clusters and manage_cluster) with the capabilities the key carries; the data tools act as a signed-in person, so they need the browser connection. A headless agent provisions the cluster and issues its keys over MCP, then works with the data through the Typesense Server API directly.

# Cluster API keys

manage_cluster can issue a cluster's admin key and search-only key, both covering every collection and neither expiring. The keys do not appear in the conversation: the agent receives a curl command that downloads them once, within five minutes, into a private file on your machine, and reads a key from that file when it needs one. An assistant with no shell, such as claude.ai or ChatGPT, can ask for the keys inline in the response instead.

Keep the admin key on your server and give applications the search-only key. A connection with data:search can also create a search-only key for an application directly on the cluster, if your role manages keys, so the Build preset covers "make my catalog searchable from my app" end to end without issuing an admin key.

For a key limited to certain collections, actions or an expiry, ask the agent to create one. If different users must see different parts of one collection, use a scoped search key.

This documentation site is open source. Found an issue? Edit this page (opens new window) and send us a Pull Request.

For AI Agents: View an easy-to-parse, token-efficient Markdown version of this page. You can also replace .html with .md in any docs URL. For paths ending in /, append README.md to the path.

Last Updated: 9/21/2026, 10:45:51 PM