Logit.io
Set up Hosted OpenSearch MCP: plans, auth and stack access
← Back to blog
11/6/2026 · 13 min read

Set up Hosted OpenSearch MCP: plans, auth and stack access

Logit.io Team
Logit.io Team
Technical Content Team

Last updated 11/16/2026

Log ManagementOpensearchHow To Guides

Before connecting any MCP-compatible AI client or model to your logs, check that your Logit.io plan, stack engine and authentication mode support Hosted OpenSearch MCP. Cursor and Claude Desktop are examples, not a limit. This guide covers enabling it from the stack, keeping its dedicated credentials separate from your OpenSearch API key and managing access afterwards.

Contents

The short answer

Hosted OpenSearch MCP works with any MCP-compatible AI client or model; Cursor and Claude Desktop are examples, not a limit. It is included in the full-access, no-credit-card 14-day free trial and, on paid plans, Business and Custom only, for OpenSearch stacks and Logs stacks running OpenSearch. It requires Basic (Username and Password) authentication mode; enable it through Dashboard → stack Settings (Overview) → Access → OpenSearch MCP → Enable. Connect using https://{stack-id}-mcp.logit.io/mcp, username {stack-id}-mcp and the dedicated MCP API key in a Basic Authorization header, never the OpenSearch -es key.

Check your plan first

Start with the logs you want to investigate, then check the plan covering that stack. The 14-day free trial includes full access, including Hosted OpenSearch MCP, with no credit card required. It lets you evaluate the connection with an eligible stack before choosing a paid plan.

On paid plans, MCP is available on Business and Custom only. A paid subscription alone does not establish eligibility. Check the actual plan before troubleshooting a missing Enable option or preparing client configurations for your team.

If you are evaluating MCP during the trial, include the eventual paid plan in your handover notes. A successful trial connection demonstrates the workflow, but your ongoing setup still needs Business or Custom. Make that decision alongside the stack and log environment you intend to use.

Plan eligibility is one check in the setup. You also need a supported stack engine and Basic authentication mode. The Hosted OpenSearch MCP feature page explains the capability, while the sections below cover the stack settings that make it usable.

Check which engine your logs use

Hosted MCP supports OpenSearch stacks and Logs stacks running OpenSearch. A Logs stack running Elasticsearch/ELK 6.8 or 7.x is not eligible. The Logs product name by itself does not tell you which engine is underneath it.

  1. Open the intended stack in the dashboard and confirm its stack ID.
  2. Check the stack overview and engine/version details. For a Logs stack, establish whether it runs OpenSearch or Elasticsearch/ELK.
  3. Review Settings → Endpoints for its connection details, then check Settings (Overview) → Access for OpenSearch MCP.

If the engine is unclear, resolve that before changing authentication. Switching an Elasticsearch/ELK stack to Basic does not make it an OpenSearch stack. For a team with several log environments, check each stack individually rather than assuming the same engine and settings across the account.

Hosted OpenSearch MCP eligibility checks for plan, stack engine and Basic authentication

Why MCP needs Basic authentication

Hosted OpenSearch MCP requires the stack to use Basic (Username and Password) authentication mode. An otherwise eligible stack using API key authentication mode must switch to Basic before MCP can be used. Supplying a Basic header in the AI client does not change the stack's authentication mode.

There are two settings to keep straight: the stack must be in Basic mode, and the MCP client must send its dedicated MCP credentials through a Basic Authorization header. Both matter. The MCP API key serves as the password for the MCP username; its name does not mean you should select API key authentication mode on the stack.

For a stack currently using API key authentication, follow the documented authentication mode switching procedure. Repeatedly replacing the client's key will not resolve an incompatible stack authentication mode.

Switch to Basic before enabling MCP

Treat an authentication change as a change to an existing connection contract. First identify applications, scripts and integrations that connect using the stack's current mode so you can update and verify them.

  1. Open the target stack's Settings → Endpoints page.
  2. Find Authentication Mode in the OpenSearch API details and check the current value.
  3. If it is API Key, switch to Basic (Username and Password) using the documented instructions.
  4. Allow the change to apply, then check that Endpoints shows Basic mode.
  5. Update clients relying on the old mode and verify their connections before proceeding.

Clients still configured for the old authentication mode may fail after the switch. Coordinate the change with the people responsible for those connections. Use the correct OpenSearch credentials for existing REST clients, then obtain the separate MCP credentials when you enable MCP. Do not replace every application's credentials with the MCP key.

For example, a script configured to send an API key using the previous mode needs reviewing when you move the stack to Basic. Include a known working request from an existing integration in your checks, so enabling AI access does not leave an established log workflow unverified.

Enable MCP from the stack's Access card

Once the plan, engine and Basic mode checks pass, enable access on the stack containing the logs you need:

  1. Sign in to the Dashboard and select the stack.
  2. Open stack Settings (Overview).
  3. Under Access, find OpenSearch MCP.
  4. Select Enable.

Logit.io provisions the stack's MCP endpoint and generates a dedicated MCP API key. The connection URL is https://{stack-id}-mcp.logit.io/mcp. Keep the /mcp path when copying or constructing it.

Enablement is per stack. Enabling MCP for a staging log stack does not enable it for production or another OpenSearch stack. Start with the stack you intend to evaluate, then repeat the checks for any additional stack. The Hosted MCP documentation provides the setup reference.

Copy connection details from Endpoints

Open Settings → Endpoints → OpenSearch MCP (read-only) on the same stack. Copy the MCP details from that section rather than the neighbouring OpenSearch API details.

FieldValueCheck
MCP URLhttps://{stack-id}-mcp.logit.io/mcpIncludes the final /mcp path.
Username{stack-id}-mcpIncludes the -mcp suffix.
API keyDedicated MCP API keyUsed as the MCP password, not the OpenSearch -es key.
AuthorizationBasic BASE64(username:password)Encodes the MCP username and dedicated key together.

A brief example shows the connection shape:

{
  "mcpServers": {
    "logit-opensearch": {
      "url": "https://YOUR_STACK_ID-mcp.logit.io/mcp",
      "headers": {
        "Authorization": "Basic BASE64(YOUR_STACK_ID-mcp:YOUR_MCP_API_KEY)"
      }
    }
  }
}

Replace YOUR_STACK_ID and the key, then Base64-encode the whole YOUR_STACK_ID-mcp:YOUR_MCP_API_KEY pair (not the key alone). Prefer the dashboard ready-to-copy block to avoid encoding mistakes.

Keep the URL, username and key together when checking a configuration. A valid key copied from another stack is still the wrong credential for this endpoint. Base64 is an encoding, not protection for the secret, so handle the complete Authorization value as a credential too.

Use any MCP-compatible AI client or model through a client supporting the remote HTTPS connection and custom Authorization header. Cursor and Claude Desktop are examples. For client setup, follow the Hosted MCP quickstart, which uses the /mcp path shown above.

Keep MCP credentials separate from the OpenSearch key

The same stack can have more than one access route. Copying a familiar OpenSearch key into an MCP configuration is an easy mistake, especially when both sets of details appear under Endpoints.

DetailHosted MCPOpenSearch stack API
Addresshttps://{stack-id}-mcp.logit.io/mcphttps://{stack-id}-es.logit.io, plus the required REST path
Basic username{stack-id}-mcpStack ID
KeyDedicated MCP API keyOpenSearch stack API key, often called the -es key
PurposeRead-only MCP toolsOpenSearch REST API access within applicable permissions and limitations

Never reuse the OpenSearch -es key for MCP. Basic mode does not make these credentials interchangeable. For role-scoped REST access using user credentials, consult the separate OpenSearch API user credentials guide.

Separate MCP and OpenSearch API routes with their usernames and keys

Disable access or rotate the MCP key

Rotate the dedicated MCP API key from Settings → Endpoints when replacing a shared configuration, responding to a disclosed secret or following your team's credential rotation process. Rotation invalidates the previous MCP key. Update every client using it, including the encoded Authorization value, then reconnect and verify access.

To stop MCP access for the stack, return to Settings (Overview) → Access → OpenSearch MCP and disable it from the same card used to enable it. Disabling removes the public MCP route for that stack.

Choose rotation when access should continue with a new secret and disablement when the stack should no longer be reachable through MCP. Record which clients use each stack so a rotation does not leave a colleague troubleshooting an obsolete configuration.

A practical rotation handover records the stack ID, the clients that need updating and who will verify reconnection. Keep the secret itself in the appropriate credential store rather than the handover note. If the aim is to end an evaluation, use Disable instead of leaving an enabled route behind.

Verify that the client can list tools

A tool-list check is enough to verify the connection before investigating logs:

  1. Save the configuration copied from the correct stack's Endpoints page.
  2. Connect or reconnect the MCP server in your client, restarting the client if required.
  3. Confirm that the server connects and its tools are listed.

This checks that the client can reach and authenticate to the enabled MCP service. It does not establish that a particular log index contains the records you expect. Keep connection verification separate from checking time ranges, index names and log contents.

Once tools are listed, use the first-search guide. For the subsequent investigation workflow, see investigating production logs with OpenSearch MCP.

Understand what Hosted MCP does and does not provide

Hosted MCP gives an AI client a read-only route to an eligible stack. Keep these boundaries in your rollout checklist:

  • Read-only: no write tools are exposed. It cannot index documents, delete records or make administrative changes through MCP.
  • Per stack: enable and configure each stack separately. One connection does not grant account-wide access to every log environment.
  • Plan: included in the full-access 14-day trial, then available on paid Business and Custom plans only.
  • Stack: OpenSearch stacks and Logs stacks running OpenSearch, excluding Elasticsearch/ELK 6.8 and 7.x Logs stacks.
  • Authentication: Basic (Username and Password) mode is required, with dedicated MCP credentials.

MCP is not a substitute for REST API writes. Use the appropriate OpenSearch REST API route for supported write operations and check the managed stack limitations. Read-only access still returns log information to the connected client, so choose the client with your team's data handling requirements in mind.

Read-only also describes the tools, not the accuracy of every explanation an AI model produces. Check an investigation's conclusions against the returned log evidence. Successful enablement establishes a connection; it does not guarantee that every question has enough data in that stack to answer it.

Troubleshoot setup before changing queries

401 Unauthorized

Check that the stack uses Basic (Username and Password) mode. Then verify the username is {stack-id}-mcp and the password is the current dedicated MCP API key. An OpenSearch -es key, a rotated key or an incorrectly encoded username/key pair can cause authentication failure. Re-copy the MCP configuration from Endpoints.

404 or connection failure

Confirm MCP is enabled on the intended stack. Compare the URL character for character with https://{stack-id}-mcp.logit.io/mcp, including /mcp. Check that the hostname belongs to the same stack as the credentials. If you have just enabled it, allow provisioning to complete before retrying.

The client cannot list tools

Confirm the client supports remote MCP over HTTPS with custom headers. Save the dashboard configuration again and reconnect or restart as required. A client configuration problem can prevent tool discovery even after dashboard enablement succeeds. A missing write tool is expected because the service is read-only.

When reporting a connection problem, include the stack ID, authentication mode, error status and whether tools ever appeared. Those details distinguish an enablement problem from a later log-search issue. Leave keys and Authorization values out of screenshots or shared troubleshooting notes.

The plan or stack does not match

Check trial status or the paid Business/Custom plan, then verify the stack engine. A missing option is not proof of a bad secret. If the stack uses API key authentication mode, follow the switch to Basic instructions before trying MCP again.

Upcoming dashboard improvements

The following dashboard improvements are coming soon. They are not presented here as live functionality. Continue to use the Access and Endpoints paths above for the current setup workflow.

  • Inline enablement without a popup.
  • An Overview tile for OpenSearch MCP.
  • Masked secrets with Show and Copy controls.
  • Confirmation steps for Rotate and Disable.
  • Clearer messaging on stacks using API key authentication, explaining that MCP requires Basic.

These changes will make the setup and credential controls easier to find. They do not change the eligibility checks or remove the Basic authentication requirement. For product context, read the Hosted OpenSearch MCP introduction and the broader guide to AI-assisted log investigation on Logit.io.

Frequently asked questions

Can I try MCP before moving to Business or Custom?

Yes. The 14-day free trial includes full access, including MCP, with no credit card required. Use a supported OpenSearch stack or Logs stack running OpenSearch. On paid plans, MCP is available on Business and Custom only.

Can I enable MCP on a Logs stack running ELK 7.x?

No. Logs stacks running Elasticsearch/ELK 6.8 or 7.x are not supported. Check the engine and version before changing authentication or configuring a client. The supported Logs stacks run OpenSearch.

Does having an MCP API key mean I should use API key mode?

No. MCP requires Basic (Username and Password) authentication mode. Use the dedicated MCP API key as the password for {stack-id}-mcp, sent in a Basic Authorization header. Do not substitute the OpenSearch -es key.

Do I need to update clients after rotating the MCP key?

Yes. Rotation invalidates the previous key. Replace it in every client using that stack's MCP endpoint and refresh the encoded Authorization header. Reconnect and check that tools are listed.

Is MCP limited to Cursor and Claude Desktop, and can it write logs?

It supports any MCP-compatible AI client or model through a suitable client connection. Cursor and Claude Desktop are examples. Hosted MCP is read-only and exposes no write tools, regardless of the client you choose.

Connect the right stack to your log workflow

Choose the stack holding the logs you need, confirm eligibility and Basic mode, then enable MCP from Access. Copy its dedicated credentials from Endpoints and verify tool discovery before starting an investigation.

Explore Hosted OpenSearch and Hosted OpenSearch MCP, keep the setup documentation nearby and follow the first-search walkthrough when you are ready to query logs. Start with the full-access 14-day free trial, with no credit card required.

Start Free Trial

Unlock complete visibility with hosted ELK, Grafana, and Prometheus-backed Observability

Start Free Trial

Get the latest Elastic Stack & logging resources when you subscribe

Want to see this in action?
Start a free trial and connect logs to your alert workflows.