Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

esmole

MCP server by ed-smartass Community

Lets AI agents add, edit and remove Elasticsearch 7.x and 8.x connections at runtime, including SSH tunnels and a readonly mode. Built for people who want an assistant to query clusters without editing client configs.

  • Score 65
  • 1 stars
  • 52 a week
  • MIT
  • Updated

Install esmole

Built from the published package, never by AI.

claude mcp add esmole -- npx -y esmole-mcp

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install esmole in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the esmole block.

About

esmole-mcp is a stdio MCP server for Elasticsearch 7.x and 8.x. An agent can add, edit and remove named clusters through MCP tools. Connections are stored per project in a .esmole.json file or in a global store. Both files are re-read on every tool call, so changes apply on the next call without restarts. Connections can use an API key or basic auth, and SSH tunnels support password, key or agent auth.

Readonly connections allow only an allowlist of read endpoints. Requests have absolute timeouts, responses are capped at 10 MB and results at 40 KB. SSH host keys are checked against known_hosts or a pinned fingerprint. The project suits developers and operators who want an assistant to inspect logs and indices through a bastion host.

Written from the project's README and checked against it.

Tools it gives your assistant

  • add_connectionAdds a named Elasticsearch connection to the global store or a project file.
  • update_connectionPatches an existing connection in the layer where it lives.
  • remove_connectionDeletes a connection from its layer and reports any same-name entry it uncovers.
  • list_connectionsLists connections with scheme, host, auth kind, readonly flag and source, without credentials.
  • test_connectionChecks that a configured connection can be reached.
  • es_list_indicesLists indices on a connected Elasticsearch cluster.
  • es_requestSends a raw request to Elasticsearch, subject to readonly checks where enabled.

What you need

  • Node.js 22 or newer
  • An Elasticsearch 7.x or 8.x cluster
  • An API key or basic auth user
  • Docker, optional, for the container setup

Try asking

  • Add a readonly connection called logs through my bastion host.
  • Show the five biggest indices on the logs cluster.
  • Remove the staging connection from this project.

Good to know

  • Readonly connections refuse any method or path outside the read allowlist.
  • No ProxyJump, ~/.ssh/config or SSH certificate support.
  • No trust-on-first-use: unknown SSH host keys fail the connection.
  • Credentials typed in chat pass through the model's context.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to esmole

All alternatives →
Supabase supabase
97

Connects Supabase projects to AI assistants such as Cursor, Claude and Windsurf over the Model Context Protocol. It lets assistants manage tables, fetch config and query data in a Supabase project.

AAA Local and remote 172k/wk
ArcadeDB MCP Server ArcadeData
94

ArcadeDB MCP Server is the built-in Model Context Protocol server of the ArcadeDB multi-model database. It lets AI assistants and LLMs work with ArcadeDB's graph, document, time-series, vector and other data models. It suits people who already run ArcadeDB and want assistant access to it.

AAA Local 1.3k
DBHubbytebase
94

Connects MCP clients such as Claude Desktop, Cursor and VS Code to PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, ClickHouse and SQLite. It exposes two tools by default, with read-only mode and query timeouts available as guardrails.

AAA Local 343k/wk
MCP Toolbox for Databasesgoogleapis
94

MCP Toolbox for Databases is an open source MCP server that connects AI agents, IDEs and applications to enterprise databases. It provides prebuilt tools for exploring schemas and running queries, plus a framework for custom tools. It is aimed at developers building agents that need database access.

AAA Local 17k
MCP Toolbox for Databasesgoogleapis
94

Connects AI agents, IDEs and applications to enterprise databases through the Model Context Protocol. Offers prebuilt database tools for MCP clients and a framework for building custom tools for production agents.

AAA Local 17k
mongodb-mcp-servermongodb-js
94

MongoDB MCP Server lets AI assistants interact with MongoDB databases and MongoDB Atlas. It is an official server from mongodb-js, run locally with npx or Docker. It works with self-managed deployments and Atlas clusters.

AAA Local 203k/wk

Compare with Supabase, ArcadeDB MCP Server or DBHub

esmole: common questions

Can the assistant change data in Elasticsearch?

With readonly set to true, only allowlisted read endpoints are sent. Other methods and paths are refused before any request is made.

Do I need to restart the server after editing connections?

No. The project and global files are re-read on every tool call, so changes apply on the next call.

How are SSH host keys verified?

The key must match a pinned hostKey or an entry in known_hosts. An unknown key fails the connection and shows its fingerprint so you can check it.

How do I install esmole?

In Claude Code run claude mcp add esmole -- npx -y esmole-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is esmole the official server?

esmole is a community project by ed-smartass, not verified by a company domain.

Is esmole free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is esmole safe to use?

It scores 65 of 100. Grades: maintenance B, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to esmole?

Similar MCP servers: Supabase, ArcadeDB MCP Server, DBHub, MCP Toolbox for Databases.

Does esmole work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

esmole Install

Add to stack

Loading.