Claude Data Buddy
Enables conversational analysis of CSV and Parquet files through natural language, providing statistics, summaries, data type information, and comprehensive multi-step data analysis.
README
Claude Data Buddy
Your friendly data analysis assistant powered by Claude!
A Model Context Protocol (MCP) server for analyzing CSV and Parquet files with natural language interface support. Claude Data Buddy makes data analysis conversational and accessible through Claude Desktop integration - just ask questions about your data!
Features
- CSV Analysis: Summarize, describe, and analyze CSV files
- Parquet Support: Full support for Parquet file format
- Comprehensive Analysis: Multi-step analysis including statistics, data types, null counts, and sample data
- Natural Language Interface: Works seamlessly with Claude Desktop for conversational data analysis
- MCP Client: Full-featured asynchronous client with demo and interactive modes
- Error Handling: Robust error handling and validation
Requirements
- Python 3.8+
- CUDA-compatible GPU (optional, for certain operations)
Installation
- Clone the repository:
git clone <repository-url>
cd claude-data-buddy
- Install dependencies:
pip install -r requirements.txt
Usage
Running the MCP Server
The server can be run directly or integrated with Claude Desktop.
Direct Execution:
python main.py
Claude Desktop Integration:
- Use the provided launcher script:
./run_mcp_server.sh
- Configure Claude Desktop by adding to your
claude_desktop_config.json:
{
"mcpServers": {
"claude-data-buddy": {
"command": "python",
"args": ["/path/to/claude-data-buddy/main.py"]
}
}
}
Using the MCP Client
Demo Mode:
from client import MCPFileAnalyzerClient
async def main():
client = MCPFileAnalyzerClient()
await client.connect()
await client.demo_mode()
await client.disconnect()
asyncio.run(main())
Interactive Mode:
from client import MCPFileAnalyzerClient
async def main():
client = MCPFileAnalyzerClient()
await client.connect()
await client.interactive_mode()
await client.disconnect()
asyncio.run(main())
Project Structure
claude-data-buddy/
├── main.py # MCP server implementation
├── client.py # MCP client with demo/interactive modes
├── requirements.txt # Python dependencies
├── run_mcp_server.sh # Server launcher script
├── claude_desktop_config.json # Claude Desktop configuration example
├── data_files/ # Sample data files
│ ├── sample.csv
│ ├── sample.parquet
│ └── ...
└── README.md # This file
Available Tools
list_data_files
Lists all available CSV and Parquet files in the data directory.
summarize_csv
Provides a comprehensive summary of a CSV file including:
- Row and column counts
- Column names and data types
- Sample data (head)
- Basic statistics
summarize_parquet
Similar to summarize_csv but for Parquet files.
analyze_csv
Performs various analysis operations:
describe: Statistical summaryhead: First few rowscolumns: Column informationinfo: Dataset informationshape: Dimensionsnulls: Null value counts
comprehensive_analysis
Performs a complete multi-step analysis including:
- Summary statistics
- Data types
- Null value analysis
- Sample data
- Memory usage
MCP Integration
This server implements the Model Context Protocol, allowing it to work with:
- Claude Desktop
- Custom MCP clients
- Any MCP-compatible application
Example Usage
Via Claude Desktop:
User: "Summarize sample.csv as a CSV file"
Claude: [Calls summarize_csv tool and returns results]
Via Python Client:
result = await client.call_tool("summarize_csv", {"file_name": "sample.csv"})
print(result)
Acknowledgments
- Built with FastMCP
- Uses Model Context Protocol
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。