{
  "info": {
    "name": "Elasticsearch — mcp.ai",
    "description": "REST API for the Elasticsearch MCP. Set {{apiKey}} to a workspace key (sk_live_…) created at https://mcp.ai/settings/api-keys.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{apiKey}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.mcp.ai/api/elasticsearch",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "sk_live_...",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "elasticsearch_get_index_schema",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/get/index/schema",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "get",
            "index",
            "schema"
          ]
        },
        "description": "Tool to get the complete schema/mapping of a specific Elasticsearch index. Use when you need to understand the structure, field types, and mappings of an index.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"index_name\": \"\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "elasticsearch_list_indices",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/list/indices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "list",
            "indices"
          ]
        },
        "description": "Tool to list all available Elasticsearch indices. Use when you need to get a list of indices in your Elasticsearch cluster, optionally filtering by pattern, health status, or other criteria.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"index\": \"\",\n  \"health\": \"\",\n  \"sort_by\": \"\",\n  \"expand_wildcards\": \"\",\n  \"include_primary_shards_only\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "elasticsearch_ping_cluster",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/ping/cluster",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "ping",
            "cluster"
          ]
        },
        "description": "Tool to ping the Elasticsearch cluster and check if it is running. Use when you need to verify cluster connectivity and health status before performing operations.",
        "body": {
          "mode": "raw",
          "raw": "{}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    },
    {
      "name": "elasticsearch_query_index",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/query/index",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "query",
            "index"
          ]
        },
        "description": "Tool to query an Elasticsearch index with various filters, time ranges, and pagination support. Use when you need to search for documents in an index with complex filtering criteria.",
        "body": {
          "mode": "raw",
          "raw": "{\n  \"from\": 0,\n  \"size\": 0,\n  \"sort\": \"\",\n  \"query\": \"\",\n  \"fields\": \"\",\n  \"highlight\": false,\n  \"index_name\": \"\",\n  \"time_filter\": {},\n  \"term_filters\": \"\",\n  \"range_filters\": \"\",\n  \"include_aggregations\": false\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        }
      }
    }
  ]
}