Skip to main content
Glama
esmole-mcp

esmole-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ESMOLE_STORENoPath to the global store file (default `~/.config/esmole/connections.json`). The global store holds connections shared across projects; the server needs no configuration to start.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_connectionsA

List Elasticsearch connections with the layer each comes from: project (.esmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted.

add_connectionA

Add a named Elasticsearch connection. scope "global" (default) saves it to the user store; "project" saves it to .esmole.json in the project root. Auth via user/password or apiKey; optional ssh tunnel, readonly flag, scheme and verifyTls.

update_connectionA

Patch an ES connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. "ssh": null); an ssh object is merged field by field, e.g. { "ssh": { "hostKey": "SHA256:..." } }. queryTimeoutMs sets the per-request deadline (null restores the 60 s default).

remove_connectionA

Remove an ES connection by name from the layer it lives in (invalid entries too) and drop its cached client/tunnel.

test_connectionA

Verify an ES connection works end to end (including ssh tunnel). Reports server version and latency.

es_requestA

Generic Elasticsearch REST passthrough: any method, any path. Returns {status, body}. A 4xx/5xx answer is returned as an error: "HTTP : " plus the trimmed body. Use a string body for NDJSON (_bulk, _msearch). On readonly connections only reads pass: GET, HEAD, POST [/]/_search|_msearch|_count|_field_caps|_pit, POST /_search/scroll, DELETE /_pit and /_search/scroll.

es_searchA

Search an index. Wraps POST /{index}/_search. query is the query DSL only; sort, from, search_after, track_total_hits, highlight, script_fields and source (_source) map to the same-named body keys. size defaults to 10; with aggs and no query it is forced to 0. Page with from+size or sort+search_after. Use source to project fields and keep responses small. Returns {status, body}; a 4xx/5xx is an error with the ES root cause.

es_list_indicesB

List indices matching a pattern with health, doc count and store size. Wraps GET /_cat/indices.

es_get_mappingB

Return an index mapping as a flat field:type list (compact, token-cheap). Pass raw=true for the nested ES JSON.

es_cluster_healthB

Cluster health summary (status, node and shard counts). Wraps GET /_cluster/health.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 10 tools

Disambiguation4/5

The connection group (add/list/update/remove/test) is crisply separated, and the ES group mostly targets distinct facets (search, indices, mapping, health). The main overlap is es_request, a generic passthrough that can duplicate every specialized ES tool, but the descriptions frame it explicitly as the escape hatch and the others as convenience wrappers.

Naming Consistency4/5

Connection tools follow a clean verb_noun pattern, and the ES tools are consistently namespaced with an es_ prefix that clearly separates the two domains. Minor deviation: es_cluster_health is noun-only while es_list_indices and es_get_mapping include verbs, so ordering is not perfectly uniform.

Tool Count5/5

Ten tools is well within the sweet spot, split sensibly between five connection-management operations and five ES query operations. Each tool covers a distinct need and no obvious padding is present.

Completeness4/5

Connection lifecycle is fully covered (add, list, update, remove, test) with good detail on scopes and secrets. The ES side covers search, indices, mapping, and health, while document-level and index-level CRUD (get/put doc, create/delete index) exist only via the generic es_request escape hatch, which is workable but less discoverable.

Maintenance

ActivityMaintained
ResponsivenessOutdated data