opensearch-dashboard-mcp
Enables LLM clients to interact with OpenSearch Dashboards, including reading saved objects, listing tenants and index patterns, and querying logs through the Dashboards API.
README
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.)
Configure
Environment variables:
| Variable | Default | Purpose |
|---|---|---|
OPENSEARCH_DASHBOARDS_URL |
http://localhost:5601 |
Base URL |
OPENSEARCH_DASHBOARDS_USERNAME |
— | Basic auth / session-login user |
OPENSEARCH_DASHBOARDS_PASSWORD |
— | Basic auth / session-login password |
OPENSEARCH_DASHBOARDS_VERIFY_TLS |
true |
Verify TLS certs |
SSH_PROXY_TO |
— | If set (e.g. user@host), route all requests through an embedded SSH SOCKS5 tunnel to that host |
SSH_PROXY_PORT |
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。