opensearch-dashboard-mcp
Exposes OpenSearch Dashboards API to manage saved objects (e.g., dashboards), list tenants and index patterns, and perform searches like the Discover app for log querying.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@opensearch-dashboard-mcplist dashboards"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
opensearch-dashboard-mcp
MCP server that exposes OpenSearch Dashboards to an LLM client over stdio. Read saved objects, list tenants and index patterns, and query logs like the Discover app — all through the Dashboards API, so it works even when the raw OpenSearch REST API isn't exposed.
Run
uvx opensearch-dashboard-mcp(After publishing to PyPI. For local dev use uvx --from . opensearch-dashboard-mcp.)
Related MCP server: Kibana Dashboard Builder
Configure
Environment variables:
Variable | Default | Purpose |
|
| Base URL |
| — | Basic auth / session-login user |
| — | Basic auth / session-login password |
|
| Verify TLS certs |
| — | If set (e.g. |
| auto | Local port for the tunnel; a free port is picked when unset |
SSH tunnel
When SSH_PROXY_TO is set, the server spawns ssh -N -D <port> <host> before
serving and routes HTTP through the resulting socks5h:// proxy. DNS is resolved
on the remote side, so this reaches targets only visible from a remote network
(e.g. a VPN living inside a container). Requires key-based SSH auth (runs with
BatchMode=yes). The tunnel lives exactly as long as the server.
Use in an MCP client
{
"mcpServers": {
"opensearch-dashboards": {
"command": "uvx",
"args": ["opensearch-dashboard-mcp"],
"env": {
"OPENSEARCH_DASHBOARDS_URL": "http://localhost:5601",
"OPENSEARCH_DASHBOARDS_USERNAME": "admin",
"OPENSEARCH_DASHBOARDS_PASSWORD": "admin"
}
}
}
}Tools
ping()— check connectivity + auth. Hits the security authinfo endpoint; on a 401 with credentials set, performs a session login and re-checks. Returns{connected, authenticated, user, tenants}or the error reason.list_saved_objects(type_="dashboard", per_page=20, tenant=None)— saved objects viasaved_objects/_find, returned as compact{id, title, type}.tenantselects the multi-tenancy tenant (name,"__user__"for the private tenant, orNonefor the user default).get_tenants()— multi-tenancy tenants via the security plugin config API, as{name, description, reserved, hidden}.get_index_patterns(per_page=50)— index patterns (saved objects of typeindex-pattern), as{id, title, time_field}.discover_search(index, query=None, time_from=None, time_to=None, time_field="@timestamp", size=10, fields=None, tenant=None)— fetch documents like the Discover app through the internal search API (/internal/search/opensearch).queryis a Lucene query_string;time_from/time_tofilter a range (now-15m, ISO, …);fieldstrims_sourceto avoid flooding context. Returns{index, total, count, hits}.
Multi-tenancy note: saved objects are stored per tenant. Discover available tenant
names with get_tenants, then pass one as tenant to the other tools.
Develop
uv sync --group dev
uv run opensearch-dashboard-mcp # starts on stdio; Ctrl-D to exit
uv run pytest # tests (add --cov for the 100% gate)Layout: config.py (env → Settings), client.py (async httpx wrapper),
tools.py (tool registrations), server.py (entry point + tunnel), tunnel.py
(SSH SOCKS5 tunnel). See CLAUDE.md for the architecture in depth.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/danilin-em/opensearch-dashboard-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server