Cursor Elasticsearch MCP by usefulapi Prompt/count_documents_that_match_a_condition
How to: Cursor Elasticsearch MCP by usefulapi count_documents_that_match_a_condition
Add Elasticsearch MCP by usefulapi to Cursor
-
01
Open ~/.cursor/mcp.json and merge this in. Keep any servers already there.
{
"mcpServers": {
"elasticsearch": {
"url": "https://elasticsearch.usefulapi.io/mcp"
}
}
}
-
02
Save the file and restart Cursor.
-
03
count_documents_that_match_a_condition is surfaced in the client's prompt or command menu. Unlike a tool, you invoke it deliberately — Cursor will not call it for you.
-
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.
Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor 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.