VISTA Data MCP Server
Read-only MCP server for querying ClickHouse (product telemetry) and Elasticsearch (download analytics), built for Percona VISTA.
README
VISTA Data MCP Server
Read-only MCP server for querying ClickHouse (product telemetry) and Elasticsearch (download analytics). Built for Percona VISTA.
Install
curl -fsSL https://raw.githubusercontent.com/Percona-Lab/vista-data-mcp/main/install-vista-data-mcp | bash
The installer will:
- Install
uvif needed - Ask you to choose Remote (default) or Local mode
- Configure Claude Desktop and Claude Code automatically
- Install the VISTA plugin
Remote mode — connects to the shared Percona server over VPN. No credentials, no clone, no local install. Most users choose this.
Local mode — for users with their own ClickHouse or Elasticsearch credentials who want to run off-VPN (development, custom data sources).
Re-run the same command to update or change mode.
Tools
ClickHouse (telemetry)
| Tool | Description |
|---|---|
query_clickhouse |
Run any read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN) |
ch_list_databases |
Show all accessible databases |
ch_list_tables |
Show tables in a database |
ch_describe_table |
Show column names, types, and comments |
ch_sample_data |
Get sample rows from a table |
Elasticsearch (downloads)
| Tool | Description |
|---|---|
search_elasticsearch |
Run an Elasticsearch query (JSON DSL) |
es_list_indices |
Show all indices with doc counts and sizes |
es_get_mapping |
Show field mapping (schema) for an index |
es_sample_data |
Get sample documents from an index |
All results are returned as Markdown tables. Only read-only queries are allowed.
Manual Install (alternative)
If you prefer not to use the installer:
Claude Code (CLI)
claude mcp add vista-data \
-e CLICKHOUSE_HOST=your-ch-host \
-e CLICKHOUSE_PORT=8443 \
-e CLICKHOUSE_USER=default \
-e CLICKHOUSE_PASSWORD=your-ch-password \
-e CLICKHOUSE_DATABASE=default \
-e CLICKHOUSE_SECURE=true \
-e ES_HOST=your-es-host \
-e ES_PORT=9200 \
-e ES_USER=your-es-user \
-e ES_PASSWORD=your-es-password \
-e ES_SECURE=true \
-- uvx --from git+https://github.com/Percona-Lab/vista-data-mcp vista-data-mcp
Development
git clone https://github.com/Percona-Lab/vista-data-mcp.git
cd vista-data-mcp
cp .env.example .env
# Edit .env with your credentials
uv run mcp_server.py
Safety
- Read-only: ClickHouse allows only
SELECT,SHOW,DESCRIBE,EXPLAIN. Elasticsearch uses search API only (no indexing). - Mutation blocking:
INSERT,UPDATE,DELETE,DROP,ALTER,CREATE,TRUNCATEare rejected - Row/hit limits: Results capped at 500 (configurable via
CLICKHOUSE_MAX_ROWS/ES_MAX_HITS) - Query timeout: 30 seconds default (configurable via
CLICKHOUSE_QUERY_TIMEOUT/ES_QUERY_TIMEOUT) - Identifier sanitization: Database and table names validated against injection
Environment Variables
ClickHouse
| Variable | Required | Default | Description |
|---|---|---|---|
CLICKHOUSE_HOST |
Yes* | — | ClickHouse server hostname |
CLICKHOUSE_PORT |
No | 8443 |
HTTP(S) port |
CLICKHOUSE_USER |
No | default |
Username |
CLICKHOUSE_PASSWORD |
No | "" |
Password |
CLICKHOUSE_DATABASE |
No | default |
Default database |
CLICKHOUSE_SECURE |
No | true |
Use HTTPS |
CLICKHOUSE_QUERY_TIMEOUT |
No | 30 |
Timeout in seconds |
CLICKHOUSE_MAX_ROWS |
No | 500 |
Max rows per query |
Elasticsearch
| Variable | Required | Default | Description |
|---|---|---|---|
ES_HOST |
Yes* | — | Elasticsearch hostname |
ES_PORT |
No | 9200 |
Port |
ES_USER |
No | "" |
Username (for basic auth) |
ES_PASSWORD |
No | "" |
Password |
ES_SECURE |
No | true |
Use HTTPS |
ES_VERIFY_CERTS |
No | true |
Verify SSL certificates |
ES_QUERY_TIMEOUT |
No | 30 |
Timeout in seconds |
ES_MAX_HITS |
No | 500 |
Max hits per search |
*Only required if you want to use that data source. Tools for unconfigured sources return a helpful message.
Part of the Alpine Toolkit
License
Apache 2.0
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。