For the complete documentation index, see llms.txt. This page is also available as Markdown.

ThorData MCP 快速启动

这份文档面向第一次接入thordata-mcp的使用者,目标是用最少步骤完成:

  1. 本地启动服务

  2. 在MCP Client中接入

1

环境要求

开始前请确认:

2

本地启动

在项目根目录执行:

go mod tidy
go run .

启动成功后,默认服务地址为:

http://127.0.0.1:8800
3

鉴权方式

支持以下两种方式传用户token:

  • 推荐:Authorization: Bearer <user-token>

  • 兼容:/{user-token}/mcp

4

在 MCP Client 中接入

方式一:推荐,使用header

适合支持自定义 headers 的 MCP Client。

{
"mcpServers": {
"thordata": {
"url": "http://127.0.0.1:8800/mcp",
"headers": {
"Authorization": "Bearer YOUR_USER_TOKEN"
}
}
}
}

方式二:不支持header时,使用路径token

{
"mcpServers": {
"thordata": {
"url": "http://127.0.0.1:8800/YOUR_USER_TOKEN/mcp"
}
}
}

Last updated

Was this helpful?