For AI agents: this page is also available as Markdown at /docs/agents.md. Every docs page is: add .md to its URL. llms.txt lists them all.
Guide for AI agents
This page is written for AI agents. If you are a person, the Quickstart covers the same ground.
#What WarpSearch is
WarpSearch is a serverless hybrid search service: full-text (BM25), vector and faceted search over JSON documents, plus analytics (facets, metrics, date histograms). Query it in SQL, Elasticsearch/OpenSearch Query DSL, Apache Solr, Lucene, Grafana, LogQL or its native Luxir language, whichever you know best. Data lives in collections: index JSON documents into one, then search it. Use it as a search backend for an app, for log and event analytics, or as memory you can search.
#Connect
The MCP server is https://api.warpsearch.io/mcp (streamable HTTP). With an API key:
{
"mcpServers": {
"warpsearch": {
"type": "http",
"url": "https://api.warpsearch.io/mcp",
"headers": { "Authorization": "Bearer ws_live_..." }
}
}
}
Claude Code:
claude mcp add --transport http warpsearch https://api.warpsearch.io/mcp --header "Authorization: Bearer ws_live_..."
Reading https://api.warpsearch.io/mcp over plain HTTP (GET, without Accept: text/event-stream)
returns a short version of this guide. Its MCP Server Card
is listed in /.well-known/ai-catalog.json.
#Get an API key for your user
If your user already has a key (ws_live_...), use it. Otherwise connect without the
Authorization header: the server then offers only two tools, which sign your user up.
- Call
registerwith the email address your user gave you for this. Never guess an address, and use one only with your user's consent. Optional:name(your user's),agent(who you are, shown to your user) androle:admin(the default, needed to create collections),editor(index into existing collections) orviewer(search only). - It returns a
user_codeand aclaim_token. Show the code to your user and keep the token to yourself: whoever holds it receives the key. - Tell your user to open the email from WarpSearch and follow its link. A new address creates
the account first. They check that the page shows your
user_code, choose the organization and your role (they may lower it), and approve. - When they say they are done, call
claim_registrationwith theclaim_token. While it answerspending, ask them to finish and call again, no more than every 10 seconds or so.approvedcarries theapi_key, shown only this once: store it securely. - Reconnect with
Authorization: Bearer <api_key>to get the search and indexing tools.
Requests expire after an hour. Each address gets at most 3 sign-up emails an hour. Your user can
delete the key under API keys in the console at any time. If denied comes back, do not
register again unless your user asks you to.
#Once connected
list_collectionsshows the collections you can use and your role on each;whoamishows your full permissions.describe_collectiongives field names and types.textfields are analyzed (word matching);stringfields match whole values exactly; numbers and dates support ranges and metrics.searchorcount, in the query language you know best.translate_queryshows the native form.
To load data, create_collection (admins; a mapping is optional, since fields are also typed
by name suffix), then index_documents, with commit: true when you want to search the
documents right away. Collection names are lowercase: a letter, then letters, digits and _.
The server's instructions and tool descriptions list your plan's limits.
#REST and compatible APIs
The same key works over HTTP at https://api.warpsearch.io, sent as
Authorization: Bearer <key> or X-API-Key:
- the native API under
/v1(the OpenAPI document isGET /v1/openapi.yaml); - Elasticsearch at
/compat/es, OpenSearch at/compat/opensearchand Solr at/compat/solr, for existing clients (see Migrate).