Data Analysis Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Data Analysis Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
一个基于 Model Context Protocol 的数据分析服务器,使用 Python 开发,支持 SSE (Server-Sent Events) 传输模式。
pip install -r requirements.txt#### 方式 1: stdio 模式(用于 supergateway/Claude Desktop)
# 使用 uvx (推荐)
uvx bachai-data-analysis-mcp
# 或使用 pip 安装后运行
pip install bachai-data-analysis-mcp
bachai-data-analysis-mcpstdio 模式通过标准输入输出进行通信,适合与 supergateway 或 Claude Desktop 集成。
#### 方式 2: SSE 模式(独立 HTTP 服务器)
# 直接运行
python main.py
# 或使用命令
bachai-data-analysis-mcp-sse服务器将在 http://localhost:8000 启动。
启动后访问:
GET http://localhost:8000/返回服务器信息和可用端点
GET http://localhost:8000/sse建立 Server-Sent Events 连接,接收服务器推送的消息
POST http://localhost:8000/messages
Content-Type: application/json发送 MCP JSON-RPC 请求
#### 示例请求:
初始化
{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {}
}列出工具
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/list",
"params": {}
}调用工具
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "load_data",
"arguments": {
"filepath": "data.csv",
"dataset_name": "my_data"
}
}
}加载数据文件
获取数据摘要统计
分析特定列的数据
相关性分析
列出已加载的数据集
1. 列出可用工具
curl -X POST http://localhost:8000/messages \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}'2. 加载数据
curl -X POST http://localhost:8000/messages \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "load_data",
"arguments": {
"filepath": "data.csv",
"dataset_name": "sales"
}
}
}'3. 获取数据描述
curl -X POST http://localhost:8000/messages \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "describe_data",
"arguments": {
"dataset_name": "sales"
}
}
}'在 Claude Desktop 的配置文件中添加:
{
"mcpServers": {
"data-analysis": {
"url": "http://localhost:8000/sse",
"transport": "sse"
}
}
}python main.pypytest tests/MIT
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.