Does the official OpenSearch MCP server meet our enterprise setup requirements?
When an AI client is asked to reach an OpenSearch cluster, the first check is identity. The standalone opensearch-mcp-server-py supports basic authentication, IAM roles, AWS credentials, header-based authentication and mutual TLS, but the documentation pages reviewed do not describe built-in OAuth or SSO login for it. Single sign-on therefore has to come from the cluster's own security configuration or from a gateway placed in front of the server. The in-cluster endpoint at /_plugins/_ml/mcp, introduced in version 3.3, is a separate option. It uses Streamable HTTP, must be switched on with the plugins.ml_commons.mcp_server_enabled setting, and sits in the experimental ML Commons plugin, so it needs its own review before production use.
This page helps security, identity and platform leaders decide which path fits their requirements. It covers how to confirm that a server is the official package rather than a community copy, which authentication methods the documentation describes for each mode, and how the server is launched and connected to clients such as Claude Desktop. The official package is published in the opensearch-project GitHub organization under the Apache-2.0 license, and the user guide describes single mode and multi mode, where each cluster in a multi mode YAML file can carry its own credentials. Confirm which server version and deployment type your team will run, since the standalone server and the in-cluster endpoint have different authentication and logging surfaces.
Before approving the setup, ask the platform team to record three things: the identity the client will use on the cluster, the owner of SSO enforcement, and the logging path. The server's own logging is documented in a Structured Logging section of the user guide, but cluster audit logging is configured separately in OpenSearch. Confirm with your cluster administrator whether audit logging is enabled and where those logs are retained. Also confirm that SSL certificate verification stays on, since the repository says only the OPENSEARCH_SSL_VERIFY environment variable can disable it and that an agent cannot turn verification off per call.
Authentication, transport and deployment options by server option
This table compares each authentication, transport and deployment option in the OpenSearch MCP server by server type and by whether the reviewed documentation shows it as built in, as depending on an outside component, or as not described. Check the status column first when a control is required by policy. The reviewed docs do not describe paid editions or licensing tiers, so confirm those with OpenSearch or your AWS account before approving a rollout.
| Server option | Server type | Status |
|---|---|---|
| Basic authentication | Standalone | Built in. Set OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD |
| IAM role and AWS credentials | Standalone | Built in. Listed in the user guide with region and profile settings |
| Header-based authentication | Standalone | Built in per the user guide. Confirm header handling in your environment |
| Mutual TLS | Standalone | Built in. Uses CA certificate, client certificate and client key path variables |
| OAuth or SSO login | Standalone and in-cluster | Needs outside component. Not described for the server; handled by the cluster or a gateway |
| SSL certificate verification | Standalone | Built in. Only the OPENSEARCH_SSL_VERIFY environment variable can disable it, not an agent call |
| STDIO and streaming (SSE and HTTP) | Standalone | Built in. SSE is being deprecated in favor of streaming for new integrations |
| In-cluster endpoint at /_plugins/_ml/mcp | In-cluster, version 3.3 or later | Built in to ML Commons. Streamable HTTP, off until plugins.ml_commons.mcp_server_enabled is set |
| Single and multi mode | Standalone | Built in. Single mode is the default; multi mode uses a YAML file with per-cluster authentication |
How the server turns AI tool calls into OpenSearch requests
The request path is short, and each hop is a control point. The AI client sends an MCP tool call to the server. The server translates that call into an OpenSearch REST API request, sends it using the credentials it was started with, and returns the result to the client as structured output. The server never acts under the identity of the person using the AI client. Whatever the cluster allows for the configured credentials is what the agent can do, so the identity in the server configuration is the real authorization boundary. Before approving a rollout, confirm which OpenSearch user, IAM role or client certificate each configuration uses, and what that identity can read and write in the cluster's security settings.
Enforcement sits in two layers. The OpenSearch cluster security layer decides what the credentials may do, through index, cluster and document permissions. The server decides which tools and transports exist at all, and which of them are offered to the client. Those are separate questions. A tool the server exposes can still fail if the identity lacks permission, and a permission the identity holds is still reachable through any tool the server offers. Review both layers together, and confirm in the user guide and the repository how the server's own options are set, rather than assuming the cluster policy covers the server's tool list.
The standalone server and the in-cluster endpoint differ in where that path runs. The standalone package, opensearch-mcp-server-py, runs outside the cluster as a process the client launches over STDIO or a streaming transport. The in-cluster endpoint at /_plugins/_ml/mcp is served by the cluster itself, uses Streamable HTTP, and must be enabled with plugins.ml_commons.mcp_server_enabled. Each option has its own network exposure, logging location and upgrade path, so confirm which one your teams will run. Because every client launched from one configuration shares that single identity, one shared file can give all AI assistants on a team the same access. Ask whether separate identities per client or per group are feasible for your cluster.
Decisions to make before choosing an authentication method
The standalone OpenSearch MCP server acts with the identity it is configured with, so most of the access decisions are made before any AI client connects. Each card below is a choice that changes who the agent appears as, how it signs in, which clusters it reaches and where evidence of its actions ends up.
Identity the server acts as
The server sends every request to OpenSearch under one configured identity, not the identity of the person using the AI client. A dedicated service user with only the roles the assistant needs keeps the audit trail readable and the blast radius small. Per-person credentials are possible only if each engineer runs their own server instance with their own configuration, which multiplies the places secrets live. Confirm with the cluster administrator which roles the chosen identity holds before the first connection.
Using the MCP serverAuthentication method
The documentation pages describe basic authentication with OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD, mutual TLS with CA certificate, client certificate and client key paths, and the IAM role, AWS credential and header-based options in the user guide. Basic credentials are the simplest to rotate badly, while mutual TLS and IAM roles tie access to certificates or AWS identities your team already manages. Choose one method per identity and document where its secret is stored.
Where SSO sits
The documented authentication methods for the standalone server do not include OAuth or SSO login. Interactive sign-in therefore has to be provided by the OpenSearch cluster's own security configuration or by a gateway placed in front of it, and the server then uses a machine identity. Ask who owns that gateway, how it maps corporate users to cluster roles, and whether the AI client can reach the cluster without passing through it.
Single or multi-cluster scope
Single mode is the default and connects the server to one cluster. Multi mode reads a YAML file that defines several clusters, and each cluster can carry its own authentication, such as basic credentials, an IAM role ARN with region and profile, or an OpenSearch Serverless collection. One file that reaches production and development clusters widens what a single AI session can touch, so keep those clusters in separate server instances unless there is a clear reason to combine them.
User guide multi modeTransport on the workstation or shared host
STDIO runs the server as a process on the developer's machine, so credentials and the cluster connection live on that laptop. The streaming transport, which supports SSE and HTTP streaming, runs as a network service on a shared host, which centralizes configuration and logs but needs its own access controls and TLS. The user guide notes that the older SSE server will be deprecated in favor of streaming for new integrations, so new deployments should start from streaming if they will be shared.
Log destination and retention
The server's own logging options are documented in the Structured Logging section of the user guide, while cluster audit logging is configured in OpenSearch itself. These record different things: one shows what the MCP server was asked to do, the other shows what the cluster accepted under which identity. Decide which system is the record of truth, where each log is shipped, who can read it and how long it is kept. Confirm retention with your own log platform, since no default retention period is stated in the sources reviewed.
How the answer changes by cluster type and identity provider
For a cluster you run yourself, the standalone server connects with the credentials and certificates you configure. The Using the OpenSearch MCP Server page lists basic authentication through OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD, and mutual TLS through CA certificate, client certificate and client key path variables. The user guide also names header-based authentication. The documentation pages reviewed do not describe OAuth or SSO login for the standalone server, so any single sign-on for people sits outside it.
- Basic authentication: the username and password come from environment variables. Confirm which account they belong to and what role it holds.
- Mutual TLS: the server presents a client certificate. Confirm who issues it and how it is rotated.
- In-cluster endpoint: from version 3.3, the endpoint at /_plugins/_ml/mcp uses Streamable HTTP and needs the plugins.ml_commons.mcp_server_enabled setting. Confirm whether it is enabled on your cluster.
- Certificate verification: only OPENSEARCH_SSL_VERIFY can disable it. Confirm no client configuration sets it to false.
- Identity layer: any SSO requires a reverse proxy or gateway in front of the cluster.
Check with the cluster owner which account the server uses, its role mappings, and whether certificate verification is on.
The OpenSearch documentation says the server works with Amazon OpenSearch Service. The user guide lists IAM roles and AWS credentials among the supported methods, and multi mode accepts an IAM role ARN with an AWS region and profile for each cluster. Access is therefore decided mainly by IAM identities and the domain's access controls, not by a username stored in a configuration file.
- IAM role ARN: multi mode takes a role ARN, region and profile. Confirm the role is limited to the intended domain.
- AWS credentials on laptops: confirm who holds the profile on developer machines and whether it is short-lived.
- Domain access policy: confirm it allows only the intended role and actions.
- Fine-grained access control: if the domain uses it, confirm the mapped role has only the index permissions the use case needs.
- Audit trail: confirm the cluster's audit and AWS account logs are enabled. The server's own Structured Logging is a separate record.
For Okta or Entra ID sign-in, the identity has to come through AWS federation or a gateway, because the server does not perform that login itself. Confirm that design with the cluster owner before any client connects.
The docs say the server works with Amazon OpenSearch Serverless collections, and the user guide's multi mode example lists a Serverless collection as an option for each cluster entry, with its own authentication. The pages reviewed do not spell out every Serverless-specific setting, so the reviewer should get those details from the collection owner rather than assume them.
- Collection as its own entry: each collection in multi mode carries its own credentials, so review each one separately.
- Data access policies: confirm the policy grants the server's principal only the collections and index permissions it needs.
- Network access: confirm the collection's network setting reaches the machines that run the server, and no wider.
- Separation between entries: confirm no entry reuses an administrative role from another collection.
- Write permissions: confirm the principal cannot create or delete indexes unless the use case requires it.
Serverless collections have no separate SSO login for the standalone server in the pages reviewed. Any Okta or Entra ID requirement needs the same gateway or federation design described for Amazon OpenSearch Service, and the owner of the collection should sign off on it.
The documentation pages reviewed describe basic, IAM, AWS credential, header-based and mutual TLS authentication. They do not describe OAuth or SSO login for the standalone server. Okta or Entra ID cannot sign a person into the server directly, so the identity layer must be added around it. A common pattern, which the reviewer should confirm rather than assume, is a gateway that authenticates users with the provider and then calls the cluster with a service credential or a forwarded header. The user guide is where to check which headers and credentials the server accepts.
- Header-based authentication: the user guide documents it, so confirm the exact header name and that clients cannot set it themselves.
- Shared service account: if the gateway uses one cluster credential, cluster audit logs will show that account instead of the person. Confirm whether that attribution is acceptable.
- Session and removal: confirm how often provider sessions are checked and how quickly access ends when someone leaves.
- Client configuration: confirm staff cannot start the server with a personal administrative password.
- Ownership: agree in writing who runs the gateway, its logs and its change control.
Ask for the gateway design in writing, including its failure behavior, before any client is allowed to connect.
What the team has to configure and confirm in its own environment
The organization owns most of the settings that decide what this server can do, so the review should start with those settings rather than with the vendor's feature list. The standalone server takes its cluster credentials from environment variables. For basic authentication these are OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD, and for mutual TLS the CA certificate, client certificate and client key paths are set the same way. Confirm where those values are stored on each developer workstation, who can read the MCP client configuration file that holds them, and whether the account behind them is a dedicated, least-privilege OpenSearch user rather than an administrator. Also confirm which authentication method applies to each environment, because the vendor pages describe basic, IAM, AWS credential, header-based and mutual TLS options that carry different identity and audit consequences.
Keep SSL certificate verification on. The repository documents an SSL verification parameter and states that only the OPENSEARCH_SSL_VERIFY environment variable can disable it, which means an agent cannot switch verification off during a session. That protection holds only if the environment variable is not set to disable verification in a shared profile or script. Multi mode adds a second place to check. Its YAML file defines several clusters, each with its own authentication, such as basic credentials, an IAM role ARN with region and profile, or a Serverless collection. Treat that file as a secrets document: restrict file permissions, keep it out of source control, decide whether it should reference secret stores instead of holding values, and confirm which clusters any one user can reach through it.
Finally, decide what the server records and where those records go. The user guide has a Structured Logging section that documents the server's own logging options, so confirm the log level, the destination, and whether log lines could contain query text or returned documents that hold sensitive data. Check retention and access to those logs on the workstation or host where the server runs, and compare them with the audit logging the OpenSearch cluster itself provides under its security plugin. Because the server is a self-managed process on each client, ask the team that owns the rollout to write down the configuration baseline, approve it with the security reviewer, and retest it after any upgrade. For exact keys and current options, use the opensearch-mcp-server-py user guide and the OpenSearch documentation pages rather than relying on a copied configuration.
Order of work before the OpenSearch MCP server goes into production
This sequence confirms which server you are running, fixes the identity it uses against your cluster, and sets transport, certificate checks, logging and retesting before any staff member connects an AI client. Each step ends with a check you can record for your security review.
Confirm the server is the official package
The platform or security engineer who will install the server checks that the package comes from the opensearch-project GitHub organization, specifically the opensearch-mcp-server-py repository, and that its license is Apache-2.0. Forks under personal accounts are community copies and do not count as the official server, even if they are functionally similar. Record the exact version or commit you will deploy and pin it so that installs do not float to newer code. The step is done when the source, license and pinned version are written into your change record and a reviewer has confirmed them against the repository.
Choose and document the identity model
Before any credentials are created, the security lead and the cluster owner decide who the AI agent acts as: a shared service identity, one identity per team, or one identity per user. Decide whether you will use the standalone server, which supports several connection options, or the in-cluster MCP endpoint, which the OpenSearch documentation describes for version 3.3 and later and which requires the plugins.ml_commons.mcp_server_enabled setting. Write down which mode applies, since single mode connects to one cluster by default and multi mode uses a YAML file for several clusters. The step is done when a one-page identity note names the owner, the cluster list and the chosen deployment mode.
Select authentication and create a least-privilege identity
The cluster or security administrator chooses one authentication method that your cluster and policy allow: basic authentication with OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD, mutual TLS with CA certificate, client certificate and client key paths, or the IAM and AWS credential options the user guide describes for managed AWS deployments. Create a dedicated cluster user or role for the agent, grant only the index and cluster permissions it needs, and keep it separate from administrator accounts. Confirm with your identity team that OAuth or SSO login is not expected from the standalone server itself. The step is done when the identity exists, its permissions are listed in a review, and a test request shows it cannot reach indices outside its scope.
Keep certificate verification on and check the environment
The platform engineer confirms that SSL certificate verification stays enabled. The repository documents the OPENSEARCH_SSL_VERIFY environment variable as the only setting that can disable verification, and an agent cannot turn it off per call, so the deployment configuration is where this control lives. Check that the CA certificate used by the server matches the cluster's trust chain and that secrets are supplied through the environment or a secret store rather than written into shared client configuration files. The step is done when a configuration review shows verification enabled, the credential source documented, and a connection test succeeds against the intended cluster only.
Decide the transport and host
The platform team chooses how clients reach the server. The user guide supports STDIO and a streaming transport, and it notes that the older SSE server will be deprecated in favor of streaming for new integrations, so new deployments should plan around streaming. For a local STDIO setup, the server runs on the developer's machine under that user's rights, which changes what it can reach and where logs sit. For a shared host, decide the network path, restrict which clients can connect, and confirm that the host sits inside the network boundary your cluster policy allows. The step is done when the transport, host location and allowed network paths appear in the architecture note, and the reviewer has accepted them.
Set up a gateway or cluster control for SSO if required
If your policy requires users to sign in with corporate SSO before reaching data, the identity or platform team puts a gateway or access proxy in front of the cluster or the server, since the documentation pages reviewed describe no OAuth or SSO login for the standalone server. Confirm which system maps a person's SSO identity to the agent's cluster role, and whether that mapping is reviewable. If SSO is not required by policy, record that decision and the reason for it. The step is done when the authentication path from user to cluster is drawn end to end and the owner of each hop is named.
Confirm log destinations and retention
The engineer reads the Structured Logging section of the user guide and decides which server log output is captured, where it is written, and who can read it. Compare that with the cluster's own audit logging, because the server's logs alone do not show every action taken on the cluster. Set a retention period that matches your policy and confirm that log lines do not contain credentials or sensitive query content beyond what your rules allow. The step is done when a sample log entry from a test query has been reviewed, the destinations and retention owner are recorded, and the security team has signed off on what is captured.
Retest after every upgrade
Each time the server package, the OpenSearch cluster version or the MCP client changes, the platform team repeats the checks from the earlier steps: source and version, identity permissions, certificate verification, transport, authentication path and log output. Treat a version change as a new configuration review rather than a routine patch. The step is done when a dated retest record shows that every control still holds on the new versions and that the record is filed with the rollout documentation.
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, the place each item comes from, and who holds it. Use it as a request list before approval, since several items sit with the cluster team or the gateway team rather than with the server's documentation. The main takeaway is that the repository and user guide establish what the server is, while the cluster, gateway and audit configuration decide what an agent can actually do.
| Evidence | Where it comes from | Who provides it |
|---|---|---|
| Source provenance (repository organization and license) | opensearch-project GitHub organization, repository license file (Apache-2.0 listed for opensearch-mcp-server-py) | Engineering team confirms the exact repository and package name in use |
| Authentication method per cluster | USER_GUIDE authentication section; per-cluster entries in the multi mode YAML file | Platform team exports the config actually deployed for each cluster |
| Certificate verification setting | README SSL verification parameter; OPENSEARCH_SSL_VERIFY environment variable value at runtime | Platform team confirms the variable is not set to disable verification |
| Transport and endpoint exposure | USER_GUIDE transport options (STDIO, SSE, HTTP streaming); in-cluster endpoint /_plugins/_ml/mcp if used | Platform team documents where the process runs and which ports or hosts accept connections |
| Logging configuration | USER_GUIDE Structured Logging section and the server's logging settings | Engineering team shows the enabled options and where log output is shipped |
| Version and upgrade record | Release tags of the repository, and the OpenSearch version and plugin settings of the cluster (in-cluster endpoint requires 3.3 or later) | Platform team keeps the pinned package version and cluster version history |
| Identity provider or gateway configuration | Gateway or reverse proxy configuration in front of the cluster, since the standalone server's documented methods do not include OAuth or SSO login | Identity or network team provides the gateway and SSO configuration |
| Cluster audit log | OpenSearch security plugin audit settings on the cluster, which record requests the cluster receives | Cluster administrators enable and export the audit log to the security team |
Questions procurement and security reviewers ask before approval
Is the OpenSearch MCP server official, and what license does it use?
The official standalone server is the Python package opensearch-mcp-server-py, published in the opensearch-project GitHub organization, and its repository lists the Apache-2.0 license. Copies under personal accounts, such as forks, are community copies and are not the official server, so check the repository owner before approving any install. The OpenSearch blog also describes a built-in experimental MCP server in the ML Commons plugin starting in OpenSearch 3.0, and an in-cluster endpoint at /_plugins/_ml/mcp introduced in version 3.3 that must be enabled with plugins.ml_commons.mcp_server_enabled. Ask your engineering team which option you run, because each has its own setup and review path.
Does the OpenSearch MCP server support SSO?
The documentation pages reviewed for the standalone server describe basic, IAM, AWS credential, header-based and mutual TLS authentication. They do not describe OAuth or SSO login for the standalone server. If your policy requires staff to sign in through your identity provider, that sign-in has to be handled by the OpenSearch cluster or by a gateway placed in front of it. Confirm with the OpenSearch project and your own environment how any gateway would pass identity to the cluster, and record that design in your review, since the server itself will not enforce it.
Which authentication methods does the OpenSearch MCP server document?
The user guide describes several methods: IAM roles, basic authentication, AWS credentials and header-based authentication. The Using the OpenSearch MCP Server page lists basic authentication through OPENSEARCH_USERNAME and OPENSEARCH_PASSWORD, and mutual TLS through CA certificate, client certificate and client key path variables. In multi mode, each cluster can carry its own method, such as basic credentials, an IAM role ARN with region and profile, or an OpenSearch Serverless collection. Review where those credentials are stored on the client machine and who can read the configuration file, because the AI client launches the server with the values it is given.
Can we require mutual TLS for the OpenSearch MCP server?
The documentation supports mutual TLS for the standalone server through the CA certificate, client certificate and client key path variables, so the server can present a client certificate to the cluster. Whether your cluster rejects connections without one depends on how you configure the cluster's own TLS and security settings, which the MCP server does not control. The repository README also says that certificate verification is controlled only by the OPENSEARCH_SSL_VERIFY environment variable, and an agent cannot turn verification off per call. Confirm in a test cluster that a connection without the client certificate is refused, and keep the setting under your configuration management.
What logging does the OpenSearch MCP server provide?
The user guide contains a Structured Logging section, which documents the server's own logging options. Ask your engineering team to turn those options on and send the output to the log store your security team already monitors. Logs from the server show what the server did, but they do not replace the cluster's audit records, so confirm which events your OpenSearch security configuration records for the identity the server uses. Also confirm how the AI client's own tool-call history is kept, because that record sits outside the server and cluster.
What drives the cost and effort of an enterprise rollout?
The OpenSearch project does not publish a price for the server, and the server is open source, so the main costs are the work to set it up and the time to review it. Effort rises with the number of clusters, because multi mode needs a separate authentication entry for each cluster, and with the size of any gateway layer you add for SSO, logging or policy. Testing for prompt injection, file and tool permissions, and credential handling adds further work. Ask for a quote that lists each cluster in scope, the authentication method for each, whether a gateway is included, and the testing and retest steps. DeployOpen does not publish a price list, and a quote follows from the written scope.
What can our own team do without outside help?
Your team can verify the repository owner, pin the version it installs, set up one cluster with a least-privileged account, and confirm the TLS and logging settings in a test environment. Those checks use the documentation pages and the repository's own README and user guide. Outside help is more useful for work that needs design decisions, such as a gateway for SSO, multi-cluster credential handling, or a formal security test of prompt injection and tool permissions. DeployOpen plans, implements and tests self-hosted platforms in your infrastructure and delivers findings with fixes and a retest, usually under a fixed scope agreed in writing.
How DeployOpen works on this
DeployOpen treats the OpenSearch MCP server as a self-hosted component inside your own infrastructure, so the work starts with which server version, transport and authentication path your cluster actually uses. We scope, build and test the setup, then document it so your security and compliance teams can review it.
How we scope
- Confirm the OpenSearch version and whether the built-in ML Commons server or the standalone server fits your deployment.
- Identify which clusters, indexes and operations the AI client is expected to reach, in writing.
- Agree the authentication path (basic, IAM, mutual TLS or a gateway in front of the cluster) before any build begins.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing. Ongoing support is available as a retainer.
How we build
- Verify the server source is the opensearch-project package and pin the version your team will run.
- Configure single or multi cluster mode, with each cluster's credentials kept out of client config files.
- Enable the cluster-side permissions and read-only limits that the scoped use case requires.
- Confirm SSL certificate verification stays on and that the logging options are switched on before go-live.
How we hand over
- Test the setup for prompt injection, tool misuse, credential exposure and over-broad permissions, then report the findings.
- Deliver a written configuration record covering authentication, enabled tools, transports and logging settings.
- Provide fixes for each finding and retest them so the final state is documented.
- Document where logs are written and how your team can review them during a security assessment.
How we support
- Review the configuration again when the OpenSearch version, the MCP server or a connected client changes.
- Run continuous testing of the AI connection as part of a retainer, if your organization wants it.
- Prepare evidence on controls and settings for your compliance assessment. DeployOpen does not issue audit reports or certifications.
- Support the rollout to a wider group of staff with the same scoped configuration and review steps.

