内容
# MCP Analyst
MCP Analyst 是一个 MCP server,它使 Claude 能够分析本地 CSV 或 Parquet 文件。
当您的数据集大小大于上下文窗口,或者您不想上传完整文件以优化成本时,请使用此 server。
# Installation
## Install uv
运行 MCP server 需要 [uv](https://docs.astral.sh/uv/)。
**Mac**
```
brew install uv
```
**Windows**
```
winget install --id=astral-sh.uv -e
```
## Add servers in MCP
要在 Claude 中使用该 server,您需要更新 Claude 配置。
在 MacOS 上:`~/Library/Application Support/Claude/claude_desktop_config.json` 在 Windows 上:`%APPDATA%/Claude/claude_desktop_config.json`
```
{
"mcpServers": {
"analyst": {
"command": "uvx",
"args": [
"mcp-analyst",
"--file_location",
"<replace_this_with_path_to_csv_or_parquet_files_on_your_machine>"
]
}
}
}
```
# How do I provide more than one CSV file?
该 server 支持在文件位置中使用 globs。因此,例如,如果您的目录 `data` 包含多个 csv 文件,那么您可以将文件位置指定为 `<parent_path_to_data>/data/*.csv`。