Connect to AI
Database & Search API Key

Elasticsearch REST API

Distributed search and analytics engine for real-time data

Elasticsearch is a distributed, RESTful search and analytics engine built on Apache Lucene. It enables full-text search, log analytics, application monitoring, and real-time data analysis at scale. Developers use Elasticsearch to power search functionality, analyze massive datasets, and build observability solutions with lightning-fast query performance.

Base URL https://localhost:9200

API Endpoints

MethodEndpointDescription
GET/_cluster/healthGet cluster health status and metadata
PUT/{index}Create a new index with optional mappings and settings
GET/{index}Get information about an index including mappings and settings
DELETE/{index}Delete an index and all its documents
POST/{index}/_docIndex a document with auto-generated ID. Returns the generated _id and index result status.
PUT/{index}/_doc/{id}Index or update a document with a specific ID. Creates new document or replaces existing.
GET/{index}/_doc/{id}Retrieve a document by its ID. Returns _source and metadata fields.
DELETE/{index}/_doc/{id}Delete a document by its ID. Returns deletion result and version number.
POST/{index}/_searchExecute a search query and return matching documents. Requires query DSL in request body.
POST/{index}/_update/{id}Partially update a document using a script or partial document
POST/_bulkPerform multiple index, update, or delete operations in a single request
POST/{index}/_refreshRefresh the index to make recent changes searchable. Returns shard count and status.
GET/{index}/_mappingGet the mapping definitions for an index. Returns field types and properties.
PUT/{index}/_mappingAdd new fields or update mapping for an existing index
POST/{index}/_countGet the document count matching a query. Accepts query DSL in request body.

Code Examples

curl -X POST "https://localhost:9200/products/_search?pretty" \
  -H 'Authorization: ApiKey YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "query": {
      "match": {
        "name": "laptop"
      }
    },
    "size": 10,
    "from": 0
  }'

Use Elasticsearch from Claude / Cursor / ChatGPT

Get a hosted MCP endpoint for Elasticsearch. Paste your Elasticsearch API key, copy back one URL, drop it into Claude Desktop, Cursor, or any AI client that supports remote MCP. Your AI calls Elasticsearch directly with your credentials — no local install, works on mobile.

search_documents Search Elasticsearch indices using natural language queries, automatically converting to Query DSL and returning relevant results
index_document Index a new document into Elasticsearch with automatic field mapping and validation
aggregate_data Perform aggregations on Elasticsearch data to generate analytics, metrics, and summaries
update_mappings Modify index mappings to add new fields or adjust data types for evolving schemas
analyze_logs Query and analyze log data stored in Elasticsearch to identify patterns, errors, and anomalies

Connect in 60 seconds

Paste your Elasticsearch key → get an MCP URL → paste into Claude/Cursor. Hosted by IOX, encrypted at rest.

Connect Elasticsearch to your AI →

Related APIs