MCP 分析师是一款MCP服务器,它使Claude能够分析本地的CSV或Parquet文件。
当您的数据集大小超过上下文窗口,或者您不想上传整个文件以优化成本时,请使用此服务器。
运行MCP服务器需要 uv。
Mac
brew install uv
Windows
winget install --id=astral-sh.uv -e
要在Claude中使用该服务器,您需要更新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>"
]
}
}
}
该服务器支持在文件位置使用通配符。例如,如果您的目录data中有多个csv文件,则可以将文件位置设置为<parent_path_to_data>/data/*.csv