# 三头鲸电商分析服务器
## 基本信息
- Slug: `triple-whale-mcp-server-triplewhale`
- Source: modelscope
- Publisher: @Triple-Whale/mcp-server-triplewhale
- Categories: ecommerce-and-retail / 金融
- Hosted: No
- License: MIT License
- Source URL: https://www.modelscope.cn/mcp/servers/@Triple-Whale/mcp-server-triplewhale
## 简介
Model Context Protocol（MCP）的实现，允许用户通过Claude Desktop使用自然语言查询与TripleWhale的电子商务分析平台进行交互。
## 安装提示

```bash
npx -y @smithery/cli install triplewhale --client claude
```

## MCP Server 详情

# Triplewhale MCP 服务器

[![npm 版本](https://img.shields.io/npm/v/@triplewhale/mcp-server-triplewhale)](https://www.npmjs.com/package/@triplewhale/mcp-server-triplewhale)
[![npm 下载量](https://img.shields.io/npm/dt/@triplewhale/mcp-server-triplewhale)](https://www.npmjs.com/package/@triplewhale/mcp-server-triplewhale)
[![许可证: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![smithery 徽章](https://smithery.ai/badge/triplewhale)](https://smithery.ai/server/triplewhale)

模型上下文协议（MCP）是一个用于管理大型语言模型（LLMs）和外部系统之间上下文的[新标准化协议](https://modelcontextprotocol.io/introduction)。在这个仓库中，我们提供了一个安装程序以及一个针对[Triplewhale](https://triplewhale.com)的MCP服务器。

这使您可以使用Claude Desktop或任何MCP客户端通过自然语言与Triplewhale进行交互，例如：

- `上个月我的净利润是否为正？`
- `按上一季度的订单收入和新用户对国家进行排名。`
- `给我过去7天的广告ROAS，并按归因模型细分？`

# Claude 设置

### 通过Smithery安装

要通过[Smithery](https://smithery.ai/server/triplewhale)自动安装Triplewhale MCP服务器到Claude Desktop：

```bash
npx -y @smithery/cli install triplewhale --client claude
```


## 要求

- Node.js >= v18.0.0
- Claude Desktop
- Triplewhale API密钥 - 您可以通过Triplewhale控制台生成一个。[了解更多](https://kb.triplewhale.com/en/articles/8116412-creating-and-managing-api-keys) 或 [点击这里](https://app.triplewhale.com/api-keys) 快速访问。

## 如何本地使用

1. 运行 `npx -y @triplewhale/mcp-server-triplewhale init $TRIPLEWHALE_API_KEY`
2. 重启Claude Desktop
3. 现在您应该能够尝试简单的命令，如 `过去7天我的Meta支出是多少？`

## 支持的工具

- `moby`

## 使用Claude Desktop开发

```bash
npm install
npm run build
npm run watch # You can keep this open.
node dist/index.js init $TRIPLEWHALE_API_KEY
```

然后，每次想要测试更改时都**重新启动Claude**。

# 测试

要运行测试，您需要根据`.env.example`文件设置`.env`文件。

```bash
npm run test
```

