Data Analysis MCP (Python)
一个基于 Model Context Protocol 的数据分析服务器,使用 Python 开发。
功能特性
- 📊 数据统计分析(均值、中位数、标准差等)
- 📈 数据可视化(生成图表)
- 🔍 数据探索(查看数据摘要、缺失值等)
- 📉 趋势分析
- 📋 支持 CSV、Excel、JSON 等格式
技术栈
- Python 3.8+
- pandas
- numpy
- matplotlib
- seaborn
快速开始
安装依赖
pip install -r requirements.txt
运行
python main.py
MCP 工具列表
1. load-data
加载数据文件
- 支持 CSV、Excel、JSON 格式
2. describe-data
获取数据摘要统计
- 行列数
- 数据类型
- 缺失值统计
- 基本统计量
3. analyze-column
分析特定列的数据
- 唯一值数量
- 频率分布
- 数值统计
4. correlation-analysis
相关性分析
- 计算变量间相关系数
- 生成相关性矩阵
5. generate-chart
生成数据可视化图表
- 柱状图
- 折线图
- 散点图
- 箱线图
开发
python main.py
许可证
MIT
Metadata
Release files for mcp-data-analysis-server 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_data_analysis_server-1.0.0.tar.gz | 2.3 kB | Without provenance | Details for mcp_data_analysis_server-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_data_analysis_server-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mcp_data_analysis_server-1.0.0-py3-none-any.whl |
Total release size: 4.3 kB
Release files / mcp_data_analysis_server-1.0.0.tar.gz
| Download URL | mcp_data_analysis_server-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
780fe8356feadf346b962ea721f0eee2d9b63821728d26d485cc755335516026
|
|
BLAKE2b-256 checksum How to use checksums |
b1d6ef774724a7297c087236185e32f0e8350a642ee834897824c47b6f56aea2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / mcp_data_analysis_server-1.0.0-py3-none-any.whl
| Download URL | mcp_data_analysis_server-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97a29459fde0daf15d897607ef5916523fe438be80276b3a4918c104e8c57dc8
|
|
BLAKE2b-256 checksum How to use checksums |
244ce95d04f35f611c3a07d773c0ed44aab2ef8cdfda9bc68d3e8b629b067538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for mcp-data-analysis-server 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.