Back to MCP directory
publicPublicdnsLocal runtime

mcp-analyst

MCP Analyst是一个MCP服务器,支持Claude分析本地的CSV或Parquet文件,适用于处理超出上下文窗口限制的大型数据集或需要优化成本的场景。

article

README

🚀 MCP 分析师

MCP 分析师是一款 MCP 服务器,它能够赋能 Claude 对本地的 CSV 或 Parquet 文件进行分析。当您面临数据集大小超出上下文窗口,或者希望避免上传完整文件以节省成本的情况时,这款服务器将是您的理想选择。

🚀 快速开始

📦 安装指南

安装 uv

uv 是运行 MCP 服务器必不可少的工具,以下是不同系统的安装命令:

  • Mac
brew install uv
  • Windows
winget install --id=astral-sh.uv  -e

添加服务器到 MCP 中

若要在 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>"
      ]
    }
  }
}

💻 使用示例

如何提供多个 CSV 文件?

该服务器支持在文件位置中使用通配符。例如,如果您的 data 目录中有多个 csv 文件,则可以将文件位置指定为 <数据目录的父路径>/data/*.csv

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client