AskTable MCP Server
Enables interaction with AskTable's data analytics platform through MCP protocol. Supports querying and analyzing data from connected datasources using natural language, available via both SaaS and self-hosted deployments.
README
Asktable-MCP-Server

asktable-mcp-server 是为 AskTable 提供的 MCP 服务,支持通过 Stdio 或 SSE 协议与 AskTable SaaS 或本地部署服务交互。

用户配置指南
方式一:SaaS SSE 模式(推荐新用户)
如果您使用的是 AskTable SaaS 服务,推荐使用 SSE 方式,无需安装任何软件。
-
获取 API 密钥和数据源 ID
- 登录 AskTable
- 在设置中获取您的 API 密钥(api_key)
- 选择要连接的数据源,获取数据源 ID(datasource_id)
-
配置 MCP 客户端(推荐 SSE 方式)
{ "mcpServers": { "asktable": { "type": "sse", "url": "https://mcp.asktable.com/sse/?api_key=ASKER_8H8DRJCH6LT8HCJPXOH4&datasource_id=ds_6iewvP4cpSyhO76P2Tv8MW", "headers": {}, "timeout": 300, "sse_read_timeout": 300 } } }注意: 上述 URL 中的 api_key 和 datasoruce_id 是在 AskTable.com 官网的演示项目和数据,可以直接拿来测试。比如问,总共多少学生?
-
开始使用
- 重启您的 MCP 客户端
- 现在可以使用 AskTable 的所有功能了!
方式二:SaaS Stdio 模式(需要安装包)
如果您使用 SaaS 服务但希望使用 Stdio 模式,需要本地安装包。
1. 安装包
# 使用 uv 安装
uvx asktable-mcp-server@latest
2. 配置 MCP 客户端
{
"mcpServers": {
"asktable": {
"command": "uvx",
"args": ["asktable-mcp-server@latest"],
"env": {
"API_KEY": "ASKER_8H8DRJCH6LT8HCJPXOH4",
"DATASOURCE_ID": "ds_6iewvP4cpSyhO76P2Tv8MW"
}
}
}
}
环境变量说明:
API_KEY:AskTable API 密钥(必需)DATASOURCE_ID:数据源ID(必需)
方式三:本地部署 SSE 模式
如果您使用 AskTable 本地部署版本,推荐使用 SSE 方式,在 AskTable 的 All-in-One 镜像中已经包含了 MCP SSE Server,默认地址是http://your_local_host:port/mcp/sse。
配置 MCP 客户端
{
"mcpServers": {
"asktable": {
"type": "sse",
"url": "http://your_local_host:port/mcp/sse/?api_key=your_api_key&datasource_id=your_datasource_id",
"headers": {},
"timeout": 300,
"sse_read_timeout": 300
}
}
}
参数说明:
api_key:AskTable API 密钥(必需)datasource_id:数据源ID(必需)
方式四:本地部署 Stdio 模式(需要安装包)
如果您使用本地部署但希望使用 Stdio 模式,需要本地安装包并配置 base_url。
1. 安装包
# 使用 uv 安装
uvx asktable-mcp-server@latest
2. 配置 MCP 客户端
{
"mcpServers": {
"asktable": {
"command": "uvx",
"args": ["asktable-mcp-server@latest"],
"env": {
"API_KEY": "your_api_key",
"DATASOURCE_ID": "your_datasource_id",
"BASE_URL": "http://your_local_host:port/api"
}
}
}
}
环境变量说明:
API_KEY:AskTable API 密钥(必需)DATASOURCE_ID:数据源ID(必需)BASE_URL:本地部署服务地址(必需)
自建 SSE 服务(高级用户)
Docker 部署(推荐)
使用官方镜像
# 拉取镜像
docker pull registry.cn-shanghai.aliyuncs.com/datamini/asktable-mcp-server:latest
# 运行容器
docker run -d \
--name asktable-mcp-server \
-p 8095:8095 \
-e API_KEY=your_api_key \
-e DATASOURCE_ID=your_datasource_id \
-e BASE_URL=http://your_local_ip:port/api \
registry.cn-shanghai.aliyuncs.com/datamini/asktable-mcp-server:latest
如需进一步帮助,请查阅官方文档或联系我们。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.