Hosted MCP quickstart

Hosted OpenSearch MCP quickstart

Logit.io hosts a read-only OpenSearch MCP server (opens in a new tab) for OpenSearch stacks and Logs stacks running an OpenSearch version. It is a standard MCP server, so you can connect any MCP-compatible AI client or model over HTTPS without running MCP locally. This guide uses Cursor and Claude Desktop as examples.

Public URL:

@mcp.endpointAddress

The MCP URL is https://{stack-id}-mcp.logit.io/mcp. Include the /mcp path in your client config.

Related product pages: Hosted OpenSearch MCP (opens in a new tab), Hosted OpenSearch (opens in a new tab).

Included in the 14-day free trial (opens in a new tab) (no credit card required) and on the Business and Custom plans. Logs stacks running Elasticsearch (ELK 6.8 or 7.x) cannot use Hosted MCP. MCP uses a dedicated API key, separate from your OpenSearch HTTP API key on {stack-id}-es.logit.io.

When signed in with MCP enabled on your selected stack, examples auto-fill @mcp.endpointAddress, @mcp.username, @mcp.apiKey, and @mcp.base64encodedAuthString. If placeholders remain, enable MCP under stack Settings → Access, then refresh docs.

MCP is not a substitute for the full OpenSearch REST API. For programmatic write access or stack-key automation, use Connect to Your Cluster. For role-scoped human/CI API access, use OpenSearch API (user credentials).

Prerequisites

  1. A Logit.io account on the 14-day free trial, Business or Custom plan.
  2. An OpenSearch stack or a Logs stack running an OpenSearch version, with data you can search.
  3. Permission to enable MCP on the stack (stack administrator or account owner/admin).
  4. The stack in Basic authentication mode (how to switch).
  5. An AI client that supports remote MCP over HTTPS with custom headers (for example Cursor or Claude Desktop).

1. Enable on a stack

⚠️

Your stack must be in Basic authentication mode before you enable Hosted MCP. See Switching authentication mode.

  1. Sign in to the Logit.io Dashboard (opens in a new tab).
  2. Open the stack Settings page (Overview).
  3. In Access, find OpenSearch MCP.
  4. Select Enable.

Logit.io provisions https://{stack-id}-mcp.logit.io/mcp and generates a dedicated MCP API key.

Disable from the same Access card to remove the public MCP route for that stack. Enable separately on each stack you want clients to reach.

2. Copy connection details

Open Settings → Endpoints. The OpenSearch MCP (read-only) section shows:

FieldValue
MCP URL@mcp.endpointAddress
Username@mcp.username
API KeyDedicated MCP key (not the OpenSearch -es key) — @mcp.apiKey when signed in
Example configJSON ready to paste into your MCP client (for example Cursor or Claude Desktop)

Rotate the MCP API key from the Endpoints page when you need to invalidate a previous key. Do not reuse your OpenSearch -es stack API key for MCP.

3. Example: connect Cursor

  1. Copy the example MCP config from Settings → Endpoints, or use the auto-filled example below when signed in.
  2. In Cursor, open Settings → MCP (or edit your MCP config file, for example .cursor/mcp.json).
  3. Add a server entry, or merge the logit-opensearch block into an existing mcpServers object.
  4. Save, then confirm the server connects and tools are listed.
{
  "mcpServers": {
    "logit-opensearch": {
      "url": "@mcp.endpointAddress",
      "headers": {
        "Authorization": "Basic @mcp.base64encodedAuthString"
      }
    }
  }
}

The Endpoints page also provides a ready-to-copy block with the correctly encoded Authorization header. Prefer that over encoding credentials by hand.

4. Example: connect Claude Desktop

Claude Desktop uses the same JSON shape. Paste the config from Settings → Endpoints (or the example above when signed in) into Claude's MCP server settings, then restart Claude Desktop if your client version requires it. Confirm the Logit.io server appears and tools are listed.

If your Claude build does not support remote HTTPS MCP with custom headers yet, check Claude's MCP docs for the transport your version supports, or use another MCP-compatible client.

Other clients: any MCP client that supports remote MCP over HTTPS with custom headers can use the same URL, username and API key.

5. First successful query

Once tools are listed:

  1. Ask the client to list indexes on the connected stack.
  2. Pick an index name from the response.
  3. Ask it to search that index for something you expect in the data — for example a recent timeout, 5xx, or service name.

You should see tool calls against the stack and either matching hits or an empty result set. Either way, the connection is working.

Hosted MCP is read-only. Write tools are not available. For writes and admin automation, use the OpenSearch REST API or the Developer API.

Limitations

TopicBehaviour
Write operationsNot available — MCP is always read-only
CredentialsDedicated {stack-id}-mcp username + MCP API key; do not reuse the -es stack API key
Plan14-day free trial, Business and Custom
Stack typesOpenSearch stacks and Logs stacks running an OpenSearch version only
ScopeOne MCP endpoint per stack; enable separately on each stack you need

Troubleshooting

SymptomWhat to check
401 UnauthorizedUsing the MCP username (@mcp.username) and MCP API key from Endpoints? Key recently rotated? Accidentally using the -es stack key?
404 / connection failedMCP enabled on the stack? URL exact (@mcp.endpointAddress)? DNS may take a short time after enable.
Client cannot list toolsConfirm the client supports remote MCP over HTTPS with custom headers; re-paste the dashboard config; restart the client after saving.
Tools listed but queries failConfirm the stack has indexes and data; list indexes first, then search a known index name.
Expected write tool missingBy design — hosted MCP does not expose write tools.
Docs still show placeholdersSelect a stack with MCP enabled under Settings → Access, then refresh.

Next steps