Skip to content

Claude Code Elasticsearch MCP by usefulapi Prompt/count_documents_that_match_a_condition

How to: Claude Code Elasticsearch MCP by usefulapi count_documents_that_match_a_condition

client:Claude Code transport:streamable-http prompt:count_documents_that_match_a_condition

Add Elasticsearch MCP by usefulapi to Claude Code

  1. 01

    Run this in your project directory.

claude mcp add --transport http elasticsearch https://elasticsearch.usefulapi.io/mcp
  1. 02

    Restart your session so the server is picked up.

  2. 03

    count_documents_that_match_a_condition is surfaced as a slash command — type / and it is in the list. Unlike a tool, you invoke it deliberately — Claude Code will not call it for you.

  3. 04

    If it does not appear, check that Elasticsearch MCP by usefulapi is connected and that you are looking at its prompts rather than its tools.

Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs

Same prompt, other clients

Read from the server itself, by connecting to it and calling prompts/list on 3 December 2026. A listing does not declare its prompts, so asking is the only way to know them, and this is what the server actually offers rather than what its listing claims. Names only are stored; connect the server for each prompt's arguments.