Kimi K2 Heavy Processor MCP
Enables heavy computation and data processing tasks in Claude Desktop, including complex SQL operations, large-scale data transformations, and resilient batch processing with automatic retry mechanisms.
README
Kimi K2 Heavy Processor MCP
Heavy computation and data processing MCP for Claude Desktop. Handle complex SQL operations, large-scale data transformations, and resilient batch processing with automatic retry mechanisms.
🌟 Features
- SQL Processing: Full SQLite support with complex queries
- Batch Operations: Process millions of records efficiently
- Resilient Execution: Automatic retry with exponential backoff
- Data Pipelines: ETL operations with streaming support
- Memory Management: Smart chunking for large datasets
- Progress Tracking: Real-time status updates
- Error Recovery: Checkpoint-based resumption
🚀 Core Capabilities
SQL Operations
- Complex JOIN operations across multiple tables
- Window functions and CTEs
- Bulk inserts and updates
- Transaction management
- Index optimization
Data Processing
- CSV/JSON/XML parsing and generation
- Data validation and cleansing
- Format conversions
- Aggregation pipelines
- Statistical computations
Resilience Features
- Automatic retry on failure (3 attempts)
- Exponential backoff (1s, 2s, 4s)
- Transaction rollback on error
- Progress checkpointing
- Partial result recovery
📦 Installation
Via NPM (Recommended)
npm install -g kimi-k2-heavy-processor-mcp
Manual Installation
git clone https://github.com/justmy2satoshis/kimi-k2-heavy-processor-mcp.git
cd kimi-k2-heavy-processor-mcp
pip install -r requirements.txt
🔧 Configuration
Add to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"kimi-k2-heavy-processor": {
"command": "python",
"args": ["C:\\path\\to\\kimi-k2-heavy-processor-mcp\\src\\server.py"],
"env": {
"DB_PATH": "C:\\Users\\username\\AppData\\Local\\kimi-k2\\data.db",
"MAX_MEMORY_MB": "2048",
"CHUNK_SIZE": "10000"
}
}
}
}
📖 Usage Examples
Execute SQL Query
result = await execute_sql({
"query": "SELECT * FROM users WHERE created_at > ?",
"params": ["2024-01-01"],
"database": "main.db"
})
Batch Data Processing
processed = await process_batch({
"input_file": "data.csv",
"operations": [
{"type": "filter", "condition": "amount > 100"},
{"type": "transform", "mapping": "amount * 1.1"},
{"type": "aggregate", "group_by": "category"}
],
"output_format": "json"
})
Resilient Operation
result = await resilient_execute({
"operation": "complex_etl",
"source": "raw_data.csv",
"max_retries": 3,
"checkpoint_interval": 1000
})
Data Pipeline
pipeline = await create_pipeline({
"stages": [
{"name": "extract", "source": "database"},
{"name": "transform", "rules": "business_logic.json"},
{"name": "load", "target": "warehouse.db"}
],
"parallel": true
})
💡 Use Cases
Data Analysis
- Large CSV file processing
- Statistical computations
- Data aggregation and grouping
- Time series analysis
ETL Operations
- Database migrations
- Data warehouse loading
- Format conversions
- Data cleansing pipelines
Batch Processing
- Bulk email processing
- Log file analysis
- Report generation
- Data validation
SQL Operations
- Complex reporting queries
- Database maintenance
- Index optimization
- Performance analysis
🏗️ Architecture
kimi-k2-heavy-processor-mcp/
├── src/
│ ├── server.py # Main MCP server
│ ├── sql_processor.py # SQL execution engine
│ ├── batch_processor.py # Batch operations
│ ├── resilient.py # Retry mechanisms
│ └── pipeline.py # Data pipelines
├── examples/ # Usage examples
├── tests/ # Test suite
└── requirements.txt
📊 Performance Metrics
| Operation | Records/Second | Memory Usage |
|---|---|---|
| CSV Read | 100,000 | <500MB |
| SQL INSERT | 50,000 | <200MB |
| JOIN Query | 1M rows/sec | <1GB |
| Aggregation | 500,000 | <300MB |
| Transform | 75,000 | <400MB |
🧪 Testing
pytest tests/
Tests cover:
- SQL operation accuracy
- Retry mechanism validation
- Memory management
- Performance benchmarks
- Error recovery
🤝 Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines.
Priority Areas
- Additional data formats
- Performance optimizations
- New SQL functions
- Pipeline templates
🔒 Security
- SQL injection prevention
- Input sanitization
- Secure file operations
- Memory limit enforcement
- Process isolation
📝 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
- Anthropic for Model Context Protocol
- SQLite team for embedded database
- Python community for data tools
- Contributors and testers
📧 Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
🚦 Status
- ✅ Production Ready
- ✅ Resilient execution
- ✅ Large-scale processing
- ✅ Comprehensive testing
- ✅ Claude Desktop compatible
⚡ Quick Start
# 1. Load CSV data
await load_csv("sales_data.csv", "sales_table")
# 2. Process with SQL
await execute_sql("""
SELECT
category,
SUM(amount) as total,
AVG(amount) as average
FROM sales_table
GROUP BY category
HAVING total > 10000
""")
# 3. Export results
await export_results("summary.json", format="json")
Note: Requires Claude Desktop with MCP support enabled.
Built with ❤️ for data engineers and analysts
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。