Skip to content

the Search tool needs some improvement #182

@tybalex

Description

@tybalex

I've tried to use elasticsearch MCP with Cursor as client, and I think the search tool needs better description (especially for the queryBody arg). I ingested a few text files in my es index, and asked my agent to:

find main characters of `reunion under sky` story, search in my Elasticsearch indexes

Claude4.0 was able to figure out the correct search query after 5 tries, and gpt4.1 got completely lost.
the search method should just be straightforward enough instead of the current form.

BTW here is my cursor setup:

    "Elasticsearch": {
      "command": "npx",
      "args": [
        "-y",
        "@elastic/mcp-server-elasticsearch"
      ],
      "env": {
        "ES_URL": "https://my-elasticsearch-project-xxxx.es.us-central1.gcp.elastic.cloud:443",
        "ES_API_KEY": "xxxx"
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions