> ## Documentation Index
> Fetch the complete documentation index at: https://docs.asktable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 通过 MCP 使用 AskTable

> AskTable 的 MCP server 把问数和管理能力按 Model Context Protocol 暴露给 AI agent。本页介绍接入方式和鉴权。

AskTable 提供官方 **MCP server**，把问数和管理能力按 [Model Context Protocol](https://modelcontextprotocol.io) 暴露成工具，让 Claude 等支持 MCP 的 AI agent 直接操作 AskTable。单一 server，共 43 个工具。

## 接入方式

MCP server 通过 Streamable HTTP 提供服务，使用独立子域名：

* 地址：`https://mcp.asktable.com/`
* 鉴权：请求头 `Authorization: Bearer <api_key>`（必传）

在 MCP 客户端里配置（以 Claude 系列的 `mcpServers` 为例）：

```json theme={null}
{
  "mcpServers": {
    "asktable": {
      "type": "http",
      "url": "https://mcp.asktable.com/",
      "headers": {
        "Authorization": "Bearer <你的 API Key>"
      }
    }
  }
}
```

具体字段名以你的 MCP 客户端为准。

## 后续步骤

* [命令行工具（CLI）](/how-to/cli) — 在终端里直接操作 AskTable
* [在扣子（Coze）中使用](/how-to/connect-coze) — 把 AskTable 接进扣子机器人
