Can an OpenSearch MCP server be locked down to read-only for AI agents?
A team that wants AI assistants to query an OpenSearch cluster can partly lock the official server down with built-in tool filters, the OPENSEARCH_SETTINGS_ALLOW_WRITE setting and cluster-side OpenSearch security permissions. It does not, by itself, provide SSO, per-user audit or role-based control of individual tools. Read-only use is therefore a combination of settings that the operator must set and verify, not a single switch. The standalone server is the Python package opensearch-mcp-server-py, published under the Apache-2.0 license in the opensearch-project GitHub organization. The in-cluster endpoint at /_plugins/_ml/mcp was introduced in version 3.3 and must be enabled with the plugins.ml_commons.mcp_server_enabled setting. With the Security plugin, callers need the cluster:admin/opensearch/ml/mcp/server permission.
For the standalone server, start with the write setting. The user guide lists OPENSEARCH_SETTINGS_ALLOW_WRITE with a default of "true", so writes stay allowed until an operator sets it to "false". Next, tool filters (OPENSEARCH_ENABLED_TOOLS, OPENSEARCH_DISABLED_TOOLS, OPENSEARCH_ENABLED_CATEGORIES and OPENSEARCH_DISABLED_CATEGORIES) can remove tools by name, category or operation type. A tool that is both enabled and disabled is disabled, which favors the restrictive choice. Filters apply only in single mode, so a multi-mode deployment cannot use them and must rely on cluster permissions. Also confirm that dynamic connection parameters are off with OPENSEARCH_DYNAMIC_CONNECTION=false, so the model cannot supply its own URL or credentials.
The cluster itself is the control that a reviewer should trust most, because it applies no matter which client connects. Create a dedicated OpenSearch Security role for the agent's credentials that grants only read privileges on the indexes it needs, and test that write and index-management requests fail with those credentials. Confirm which tool categories the deployed version exposes, since the README separates core tools that are on by default from additional tools that are off by default. Before approving the setup, the reviewer must confirm the server version and source, the effective values of each setting in the actual runtime, the role mapping in the Security plugin, and the test results from a deliberate write attempt, using the OpenSearch MCP Server documentation and the user guide as the reference.
Which controls exist in each OpenSearch MCP option
This table compares the standalone opensearch-mcp-server-py server with the in-cluster ML Commons endpoint across tools, write behavior, connection handling, transports and access. Read the middle columns for what is built in or needs a setting, and the last column for what to verify in your own version and environment before approving either option.
| Capability | Standalone server (opensearch-mcp-server-py) | In-cluster server (ML Commons endpoint) | What the reader must confirm |
|---|---|---|---|
| Default core tools | Built in and enabled by default | Tool list not described in the supplied material | Which operations each option exposes in your OpenSearch version |
| Additional tools | Disabled by default; turned on through Tool Filter settings | Not described in the supplied material | Whether the in-cluster endpoint has an off-by-default tool group |
| Tool filters by name or category | Needs OPENSEARCH_ENABLED_TOOLS, OPENSEARCH_DISABLED_TOOLS and category variables; single mode only | Not described in the supplied material | Whether any filter exists on the in-cluster endpoint and how a disabled tool is resolved |
| Write setting | OPENSEARCH_SETTINGS_ALLOW_WRITE defaults to true; set to false to block writes | Not described in the supplied material | Default write behavior, and whether OpenSearch Security roles are needed to limit writes |
| Multi mode | Model must supply opensearch_cluster_name; all tools available regardless of version; tool filtering not available | Not described in the supplied material | Whether multi mode is used at all, and how cluster selection is limited for each agent |
| Zero-config dynamic connection | With no OPENSEARCH_URL, URL and credential fields appear in every tool schema; OPENSEARCH_DYNAMIC_CONNECTION=false removes them | Not applicable; the endpoint is part of the cluster it serves | Whether the agent can ever supply its own credentials, and that the setting is applied |
| Transports | STDIO and streaming (SSE and HTTP streaming); SSE will be deprecated in favor of streaming for new integrations | Streamable HTTP endpoint at /_plugins/_ml/mcp, introduced in version 3.3; enable with the MCP server setting | Which transport each client uses and how the endpoint is exposed on the network |
| Access permission | Limited by the OpenSearch credentials the server is configured with | Caller needs cluster:admin/opensearch/ml/mcp/server when the Security plugin is active | Which roles hold the permission and which indexes those roles can reach |
How a tool call from an AI client reaches the cluster and where limits apply
The AI client sends an MCP tool call to the OpenSearch MCP server, the server translates that call into OpenSearch REST API calls, and the cluster returns results that the server hands back as structured output. Limits can sit at three points along that path: the server's own tool list and write setting, the connection credentials the server uses to reach the cluster, and the cluster's security permissions applied to those credentials. A reviewer should map each of the three to a named owner before approval, because a control at one point does not configure the others.
The tool filter variables in the standalone server, such as OPENSEARCH_ENABLED_TOOLS and OPENSEARCH_DISABLED_TOOLS, decide which tools the model is offered, and OPENSEARCH_SETTINGS_ALLOW_WRITE (default "true") governs whether write operations are permitted at all. Those settings shape what the agent is able to ask for. They do not, on their own, stop a request that reaches the cluster under credentials with broader rights. Treat the cluster role mapped to the credentials as the final gate, and confirm with the vendor documentation for your deployed version how the tool filter and write setting interact with the in-cluster endpoint, which uses the cluster:admin/opensearch/ml/mcp/server permission when the Security plugin is active.
Before go-live, ask the team running the deployment to show three things: the exact credentials the server uses in each mode, the role those credentials hold on each index pattern, and a test where a disabled tool or a write is attempted with those credentials and the result is logged on the cluster side. In multi mode, also confirm that each named cluster uses its own credentials, since tool filtering does not apply there and the model chooses the target through opensearch_cluster_name. Where the test shows the agent can still reach data its role should block, the fix belongs in the cluster permissions, not in the tool list.
Request path from AI client to OpenSearch cluster
The diagram starts at the AI client, which sends an MCP tool call to the standalone opensearch-mcp-server-py. Before any request reaches the cluster, the server applies its tool filter and the OPENSEARCH_SETTINGS_ALLOW_WRITE setting, then translates the call into an OpenSearch REST API request. The cluster's Security plugin then checks the caller's permissions. The in-cluster endpoint at /_plugins/_ml/mcp is shown as a separate path that skips the standalone server and is checked against the cluster:admin/opensearch/ml/mcp/server permission. Confirm which path your team uses, and test both filters and permissions in your own environment.
Two paths from an AI client to an OpenSearch cluster, with the checks each one applies.
Design decisions that set how far the server can reach
Six choices decide what an AI assistant can touch once it connects to an OpenSearch cluster. Each one sets a boundary on tools, cluster targets, credentials or transport, and several interact, so review them together rather than one at a time.
Standalone server or in-cluster endpoint
The standalone opensearch-mcp-server-py runs outside the cluster as a separate process and connects with its own credentials. The in-cluster endpoint at /_plugins/_ml/mcp, introduced in version 3.3, runs inside OpenSearch and must be enabled with plugins.ml_commons.mcp_server_enabled. With the Security plugin, callers need the cluster:admin/opensearch/ml/mcp/server permission. Confirm which path your team uses, because the access controls, logging and upgrade path differ between them.
Single mode or multi mode
Single mode is the default and connects to one cluster. Multi mode reads a YAML file that defines several clusters, and the model must supply an opensearch_cluster_name parameter to pick one. Tool filtering works only in single mode, and all tools are available in multi mode regardless of version. An agent that can choose its target cluster can also reach clusters you meant to keep out of its scope, so keep multi mode off unless each cluster entry has its own lockdown review.
Write setting and tool lists
OPENSEARCH_SETTINGS_ALLOW_WRITE defaults to true, so write operations are permitted unless an operator sets it to false. Core tools are on by default, while additional tools stay off until the Tool Filter variables enable them. Tool filters can act on names, categories or operation types through OPENSEARCH_ENABLED_TOOLS, OPENSEARCH_DISABLED_TOOLS, OPENSEARCH_ENABLED_CATEGORIES and OPENSEARCH_DISABLED_CATEGORIES. A tool listed as both enabled and disabled is disabled. Set the write flag and the lists explicitly in configuration rather than relying on defaults.
Zero-config or fixed connection
With no OPENSEARCH_URL set, the server runs in zero-config mode and places URL and credential fields in every tool schema, so the connecting client can supply its own endpoint and secrets. Setting OPENSEARCH_DYNAMIC_CONNECTION=false removes those fields. For a governed deployment, fix the cluster URL and credentials in server configuration and turn dynamic connection off, so the AI client cannot point the server at a different host or supply new credentials.
Credential model for the cluster user
Every tool call runs as the OpenSearch identity the server authenticates with, so that identity sets the real ceiling on reads and writes. Ask which role is mapped to it, whether it can write indexes, change mappings or manage other security roles, and whether it can read sensitive indexes. Create a dedicated service user with index-level read privileges only where the assistant needs them, and rotate its secret on a schedule your team sets. Tool filters limit what the server exposes, but the cluster user's permissions still decide what OpenSearch allows.
Transport choice: STDIO, streaming or SSE
The standalone server supports STDIO and a streaming transport covering SSE and HTTP streaming. STDIO runs as a local child process of the AI client, which keeps the connection on one machine but gives the client's host process the server's configuration and secrets. Streaming transports listen on a network address, which means someone must control who can reach that port and how the connection is authenticated. The older SSE server is slated for deprecation in favor of streaming for new integrations, so avoid building new setups on SSE and confirm the current transport options in the user guide.
How the lockdown changes by deployment situation
Single mode is the default and connects the server to one cluster, which makes it the simplest case to review. Tool filtering is available here, so the reviewer can shape the surface the agent sees before any request reaches the cluster. The server turns MCP tool calls into OpenSearch REST API calls, so the cluster's own permissions remain the final limit on what the agent can do.
- Tool filters apply: Core tools are enabled by default, and additional tools stay off until the Tool Filter variables turn them on. Confirm the effective list in the deployed configuration, not only in the intended one.
- Write setting:
OPENSEARCH_SETTINGS_ALLOW_WRITEdefaults to "true", so set it to "false" explicitly for any read-only use. - Conflicting filters: A tool that is both enabled and disabled ends up disabled, which helps when a broad enable list is combined with a narrow deny list.
- Connection fields: Without
OPENSEARCH_URL, zero-config mode places URL and credential fields in every tool schema. SetOPENSEARCH_DYNAMIC_CONNECTION=falseto remove them.
Check that the account the server uses holds only the cluster roles that match the read-only or write scope you approved.
Multi mode reads a YAML file that defines several clusters, and the model chooses a target by supplying an opensearch_cluster_name parameter. Two controls from single mode do not carry over: tool filtering works only in single mode, and all tools are available regardless of version. The effective exposure is therefore the combined reach of every configured cluster, not the reach of any one of them.
- No tool filtering: Tool filter variables have no effect in multi mode, so tool-level restrictions must come from the cluster side, such as roles and permissions.
- Model-selected targets: A prompt can direct a call at any configured cluster name, so every entry in the file is a reachable target.
- Mixed versions: All tools are exposed regardless of version, so test each operation against each cluster version in the fleet before approving it.
- Per-entry credentials: Each cluster entry carries its own connection details, so confirm which account sits behind each name and remove entries that do not need to be reachable.
- Write setting scope: Confirm in the user guide how
OPENSEARCH_SETTINGS_ALLOW_WRITEapplies across entries in your release, and do not assume one value covers all of them.
Treat each cluster name as a separate trust boundary and review the YAML file as a privileged configuration document.
The OpenSearch documentation says the server works with Amazon OpenSearch Service and Amazon OpenSearch Serverless collections as well as self-managed clusters. The server-side controls, such as tool filters and the write setting, behave the same way. The identity, network path and audit records, however, are set in the AWS account, so the reviewer must verify those layers there and not only in the MCP configuration.
- Server controls carry over: Tool filters and the write setting are applied in the server configuration whichever service hosts the cluster.
- Identity in AWS: Confirm which IAM principal the server uses and that its policies allow only the indexes and actions you approved.
- Serverless collections: Confirm the access policies that govern each collection and that the server's identity cannot reach collections outside the approved scope.
- Network path: Confirm whether the domain or collection endpoint is public or private, and which network the server host uses to reach it.
- Audit records: Confirm which AWS logs capture the calls the server makes, who can read them and how long they are kept.
Ask the platform team for the exact policies attached to the server's identity and to each collection, and compare them line by line with the read-only or write scope you approved.
A self-managed cluster in a private or air-gapped network keeps every security decision inside your own infrastructure. That suits review, but it also means your team owns each layer. The OpenSearch documentation describes an in-cluster MCP endpoint at /_plugins/_ml/mcp, introduced in version 3.3, which must be enabled with plugins.ml_commons.mcp_server_enabled. With the Security plugin, the caller needs the cluster:admin/opensearch/ml/mcp/server permission.
- Built-in or standalone: The in-cluster endpoint applies from version 3.3, and the standalone server covers earlier versions or external deployments. Review whichever one runs in each environment on its own terms.
- Narrow permission grant: With the Security plugin, grant
cluster:admin/opensearch/ml/mcp/serveronly to the roles used by approved callers. - Feature setting: Confirm
plugins.ml_commons.mcp_server_enabledis set only in clusters where the endpoint is intended. - Isolated network paths: Confirm the server host can reach only the cluster and the approved AI client, and that the deployment needs no outside download or telemetry at run time.
- Official package: Install only the package from the opensearch-project organization, and check its version against the build your team approved.
Test the lockdown from inside the isolated network with the same client staff will use, and confirm that a denied action fails at the cluster.
Gaps the OpenSearch MCP server leaves for the organization to cover
The OpenSearch MCP server gives an AI client a route into the cluster, but it does not decide who the client acts for, which requests it may make per person, or how the activity is attributed. Each gap below needs a control in the cluster, in the server configuration or in the rollout process, and each control should be confirmed in your own environment before approval.
No built-in SSO for the AI client user
The standalone server connects with credentials that the operator configures, so a sign-in through your identity provider does not carry through to the OpenSearch request. Anyone who can reach the client may act with the permissions of the configured identity. Ask which authentication method your deployment uses (basic, IAM or mutual TLS, as the docs describe) and whether the credential is tied to a named person. Covering control: a dedicated least-privilege cluster role for the MCP client, with its own user and rotated credentials.
Using the MCP serverTool filters are not per user
The Tool Filter settings, such as OPENSEARCH_ENABLED_TOOLS and OPENSEARCH_DISABLED_TOOLS, apply to the whole server process, so every person who connects through that process gets the same tool set. Filtering also works only in single mode, not in multi mode. Covering control: run separate server instances with different filters for different teams, and let the OpenSearch role decide what each identity can actually do.
User guideDynamic credential fields in every tool schema
With no OPENSEARCH_URL set, the server runs in zero-config mode and exposes URL and credential fields in every tool schema. That lets the AI client supply its own cluster address and secrets, which can send data to a host you did not approve. Covering control: set a fixed connection configuration and set OPENSEARCH_DYNAMIC_CONNECTION=false so the fields are removed. Confirm this in a test before the setting reaches production clients.
Experimental in-cluster option
The built-in MCP server in the ML Commons plugin is described as experimental, and its endpoint at /_plugins/_ml/mcp was introduced in version 3.3 and must be enabled with plugins.ml_commons.mcp_server_enabled. Its behavior may change between releases. Covering control: keep the setting off unless your team has approved the version, and ask the vendor which release notes apply to your cluster before enabling it.
MCP Streamable HTTP APICommunity forks are not official
Personal forks of opensearch-mcp-server-py are community copies, not the official server, and they may carry changes you have not reviewed. A fork that looks like the project can run with different defaults or send data elsewhere. Covering control: an approved-server allowlist that names only the server published in the opensearch-project organization, with its version pinned and checked against your own build before deployment.
Official repositoryLimited audit attribution to a human user
Requests from a shared MCP connection usually arrive under one service identity, so the cluster log may show the server account rather than the person who asked the assistant to run a query or change an index. Ask which fields your OpenSearch audit logging records for each request. Covering control: give each person or team a distinct identity where possible, and collect the cluster audit log in a central store that your security team reviews.
Order of work before a read-only rollout is approved
This sequence confirms which server and version you are running, fixes the deployment and connection mode, and then narrows what the agent can see and change before anyone uses it. It ends with a recorded test that a write is refused, which is the evidence a security reviewer needs to approve a read-only rollout.
Confirm the server source and version
The platform or security engineer confirms that the server is the official opensearch-mcp-server-py package from the opensearch-project GitHub organization, or the in-cluster MCP endpoint in ML Commons, and not a personal fork or community copy. Record the package version or OpenSearch version, the license (Apache-2.0 for the standalone package), and the exact repository commit or release that was installed. Done means the approver can point to a source and version in the change record, and the team has checked the repository's Security tab and README for any open issues on that release.
Choose the deployment option
The platform owner decides between the standalone server and the in-cluster MCP endpoint at /_plugins/_ml/mcp, which requires OpenSearch 3.3 or later and must be enabled with the plugins.ml_commons.mcp_server_enabled setting. Confirm which transport the AI client will use, since the standalone user guide describes STDIO and streaming options, and note that the older SSE server is being deprecated for new integrations. Keep the decision and the reason for it. Done means the architecture note names where the server runs, which network path reaches the cluster, and which clients are approved.
Create a dedicated cluster role with minimal permissions
The OpenSearch security administrator creates a role used only by the MCP connection, granting read actions on the named indexes the assistant needs, such as search and mapping reads, and no cluster-wide admin or index management rights. Do not reuse an administrator account or a shared service user. If the in-cluster endpoint is used with the Security plugin, confirm the role includes cluster:admin/opensearch/ml/mcp/server. Done means the role definition, index patterns and the user mapping are exported and reviewed, and a reviewer has confirmed that no action outside the read scope is granted.
Set the tool filter and write setting
The platform engineer sets OPENSEARCH_SETTINGS_ALLOW_WRITE to "false", since its default is "true", and limits tools with OPENSEARCH_ENABLED_TOOLS, OPENSEARCH_DISABLED_TOOLS, OPENSEARCH_ENABLED_CATEGORIES or OPENSEARCH_DISABLED_CATEGORIES. Check the README to see which core tools are on by default and which additional tools must be turned on. Remember that a tool listed as both enabled and disabled is disabled, and that tool filtering only applies in single mode. Done means the effective configuration file is saved in version control and the list of exposed tools, read from the server, matches the approved list.
Disable zero-config credential fields
The platform engineer sets OPENSEARCH_DYNAMIC_CONNECTION to "false" and confirms OPENSEARCH_URL and the credential settings are provided by the operator. Without an OPENSEARCH_URL, the user guide says the server runs in zero-config mode and places URL and credential fields in every tool schema, which lets the model or the user supply connection details. Done means a schema listing from the client shows no URL or credential fields, and the stored credentials come from the secrets manager rather than from prompts or chat history.
Decide single or multi mode
The platform owner chooses single mode, the default that connects to one cluster and is the only mode where tool filtering applies, or multi mode, which reads a YAML file of several clusters. In multi mode the user guide says all tools are available regardless of version and the model must supply opensearch_cluster_name, so the restriction must come from the cluster role and the number of clusters configured. Done means the decision is recorded with the reason. If multi mode is chosen, the approver has accepted that tool filters will not limit the agent and that each cluster's role carries the full restriction.
Test that a write attempt is refused
The security engineer connects the approved client and runs a set of test prompts as the restricted role, including a request to create or update a document, delete an index, and change a setting, plus a read request that should succeed. Record the tool calls, the REST responses and the audit log entries for each attempt, and confirm the write is refused both by the server setting and by the cluster role. Done means the test record shows the refused writes, the successful read, and a retained evidence package that the approver signs before the rollout is approved.
What a security reviewer asks to see and where it comes from
This table lists the evidence a security reviewer should request for an OpenSearch MCP server rollout, where each item lives in the tool or cluster, and what it proves. Read each row as a question to answer with a screenshot, configuration file or log extract from the environment in use, not as a statement the vendor makes for you. The main takeaway is that tool filters and the write setting are client-side server configuration, while permissions and audit logs sit in the cluster.
| Evidence | Where it comes from | What it proves |
|---|---|---|
| Server source and license | Repository owner and LICENSE file in the opensearch-project GitHub organization for opensearch-mcp-server-py, which lists Apache-2.0 | The server is the official project and not a personal fork or community copy |
| OpenSearch version | Cluster version reported by the cluster root endpoint, and the ML Commons plugin version | Which MCP path applies: the built-in in-cluster endpoint from version 3.3 or the standalone server for other setups |
| Tool filter variables in effect | Environment variables such as OPENSEARCH_ENABLED_TOOLS, OPENSEARCH_DISABLED_TOOLS, OPENSEARCH_ENABLED_CATEGORIES and OPENSEARCH_DISABLED_CATEGORIES in the running server's configuration | Which tools the agent can call, given that a tool both enabled and disabled is disabled |
| Write setting value | The value of OPENSEARCH_SETTINGS_ALLOW_WRITE in the server configuration, where the documented default is true | Whether write operations are blocked or allowed for the connected cluster |
| Cluster role and permission mapping | Security plugin role mappings for the MCP caller, including cluster:admin/opensearch/ml/mcp/server for the in-cluster endpoint | Which identities can reach the MCP endpoint and which index actions those identities hold |
| Connection configuration | Whether OPENSEARCH_URL is set, whether OPENSEARCH_DYNAMIC_CONNECTION is false, and whether multi mode with a YAML cluster file is used | Whether the AI client can supply its own cluster address and credentials, or is bound to a fixed cluster |
| Cluster audit logs for MCP calls | OpenSearch audit log output for requests to the MCP endpoint, confirmed by a test call made under a named identity | Which user or service account made each MCP request, and whether the calls are attributable |
Questions buyers ask before approving the OpenSearch MCP server
Does the OpenSearch MCP server have built-in SSO?
The standalone server does not document its own SSO login flow. It connects to a cluster with the credentials that the server is configured with, and the user guide describes dynamic connection fields for URL and credentials in zero-config mode. Identity for a person therefore comes from the cluster side, so confirm with your own team whether your cluster's authentication (for example, the Security plugin or your managed service's identity controls) can tie each session to a named user. For the in-cluster endpoint at /_plugins/_ml/mcp, the OpenSearch documentation says that with the Security plugin the caller needs the cluster:admin/opensearch/ml/mcp/server permission, which gives you a permission boundary to review. Ask the vendor and your cluster administrators to confirm exactly which login path each deployment uses before you approve it.
Is there a read-only mode for the OpenSearch MCP server?
Yes, the standalone server has a write switch. The user guide lists OPENSEARCH_SETTINGS_ALLOW_WRITE with a default of "true", so write operations are allowed until an operator sets it to "false". Set it to "false" for any deployment where an assistant should only search, read mappings and check cluster health. Treat this as one layer, not the whole control: the setting limits what the server exposes, but the cluster's own role mappings decide what the underlying credentials may do. Pair the write setting with a read-only OpenSearch role so that a misconfigured client still cannot change data. Verify both settings in a test cluster before you rely on them.
What can a tool filter not stop on an OpenSearch MCP server?
Tool filters decide which MCP tools the client sees. They do not decide what the credentials can do on the cluster. The user guide says tool filtering works by name, category or operation type through variables such as OPENSEARCH_ENABLED_TOOLS and OPENSEARCH_DISABLED_TOOLS, and that a tool that is both enabled and disabled is disabled. A filter cannot stop an assistant from reading any index the credentials can reach, cannot restrict which documents are returned, and cannot protect against a prompt injection that asks an allowed tool to do something harmful. Filters also apply only in single mode. Use cluster roles with index-level and document-level restrictions as the enforcement layer, and treat tool filters as a reduction of attack surface.
How does multi mode change control over an OpenSearch MCP server?
Multi mode connects to several clusters defined in a YAML file, and the user guide says all tools are available regardless of version. The model must supply an opensearch_cluster_name parameter to choose which cluster a call reaches. This means a single assistant session can address every configured cluster, and tool filtering does not apply in this mode. Control therefore shifts from the tool list to the cluster definitions and their credentials. Keep the YAML file under configuration management, give each cluster its own least-privilege account, and do not place production credentials for a cluster in a file that an assistant can reach. Confirm this design with your engineers before you approve multi mode for a team.
What drives the cost and effort of locking down an OpenSearch MCP server?
The main cost is internal engineering time, because the lockdown is configuration work on your own systems. Cost components include designing cluster roles and index patterns, setting the write switch and tool filters, deciding single or multi mode, storing credentials in your secrets process, and testing that each control blocks what it should. Effort rises with the number of clusters, the number of distinct user groups, and how sensitive the indexes are. Effort falls when roles are already defined in your Security plugin or managed service. Costs recur when versions change, when new tools are enabled, or when teams add clusters. No duration is supplied in our research, so estimate effort from your own environment and ask your engineers to scope it.
What can our team do without outside help?
Most of the lockdown can be done in-house by a team that already runs OpenSearch. Your administrators can create read-only cluster roles, restrict index patterns, set OPENSEARCH_SETTINGS_ALLOW_WRITE to "false", apply tool filters in single mode, and turn off dynamic connection fields with OPENSEARCH_DYNAMIC_CONNECTION=false so that the server does not expose URL and credential fields to the model. Your security team can confirm the official source by checking the repository is in the opensearch-project organization, not a personal fork. External help is most useful for independent testing of prompt injection, permission boundaries and credential handling, and for a written retest after fixes. DeployOpen performs security testing of AI agent setups, but a fixed-scope engagement is only agreed in writing after your own scope is defined.
What should we request in a scoped quote for this work?
Ask for a written scope that names the server version and deployment type (standalone or in-cluster, single or multi mode), the clusters and environments in scope, and the tools that must stay on or off. Request a list of the roles, credentials and settings that will change, the test cases for write blocking, tool filtering, dynamic connection and credential exposure, and the format of the findings report. Ask whether a retest after fixes is included, what evidence you will receive, and what happens if scope changes. Also confirm who holds the cluster credentials during testing. DeployOpen agrees scope, deliverables and timelines in writing before work starts and does not publish a price list, so a quote follows from that written scope.
Which OpenSearch MCP server should we verify before approval?
Confirm that the server you approve is the official one. The official standalone server is the Python package opensearch-mcp-server-py in the opensearch-project GitHub organization, licensed under Apache-2.0. Personal forks of that package are community copies and are not the official server. For OpenSearch 3.0 and later, the ML Commons plugin includes a built-in experimental server, and from version 3.3 an in-cluster endpoint at /_plugins/_ml/mcp exists once the plugins.ml_commons.mcp_server_enabled setting is enabled. Check the version of your cluster and the server you deploy against the OpenSearch MCP server documentation, and record both in your approval.
How DeployOpen tests and locks down an OpenSearch MCP setup
DeployOpen plans, tests and hardens OpenSearch MCP server deployments inside the client's own infrastructure, so the tools, permissions and write settings an AI assistant can reach are reviewed before staff rely on them. The work covers the server, the cluster permissions behind it and the admin evidence that the client's security team can check.
How we scope
- Scope is agreed in writing before work starts, covering which server, mode and clients are in play
- Scope lists the tools to be enabled or disabled, including tool filters and the write setting
- Scope names the OpenSearch security roles and indexes the AI agent may reach, with the client's data owners
How we build
- Tool filters are configured in single mode, with multi mode reviewed separately because filtering does not apply there
- OpenSearch roles are set so the agent's credentials cover only the indexes and operations approved in scope
- Credentials, dynamic connection fields and transport settings are checked against the client's own standards
How we hand over
- Testing covers prompt injection, tool misuse, write attempts and credential exposure against the configured setup
- Findings are delivered as a written report with fixes, followed by a retest of the changed settings
- Documentation records each tool setting, role mapping and log source so reviewers can verify the configuration
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover
- Retainers can cover re-review when the OpenSearch server version, tool list or client changes
- Clients keep ownership of their clusters, roles and approval decisions throughout the engagement

