@hangarx/helix-mcp
v1.0.3
Published
Model Context Protocol server providing comprehensive analytics and business intelligence tools for the Helix SDK
Readme
Helix MCP Server
A Model Context Protocol (MCP) server providing comprehensive analytics and business intelligence tools for the Helix SDK.
Features
- 35+ Analytics Tools - Complete business intelligence suite
- Real-time Insights - Live metrics and performance indicators
- AI-Powered Recommendations - Actionable growth strategies
- Multi-Transport Support - STDIO, SSE, and HTTP-Stream
- MCP Inspector v0.16.7 Compatible - Full debugging and testing support
Installation
NPM Package
npm install @helix/mcp-serverFrom Source
git clone https://github.com/3-Elements-Design/helix-analytics-sdk.git
cd helix-analytics-sdk/mcp-server
npm install
npm run buildQuick Start
1. Environment Setup
Create a .env file:
HELIX_API_URL=https://helix-sdk-ha4shte2cq-uc.a.run.app
HELIX_API_KEY=your_api_key_here
HELIX_COMPANY_ID=your_company_id_here
MCP_TRANSPORT=stdio
PORT=30012. Start Server
# STDIO Transport (recommended for MCP Inspector)
npm run start
# Or with specific transport
MCP_TRANSPORT=sse npm run start
MCP_TRANSPORT=http-stream npm run start3. Use with MCP Inspector
# Launch Inspector
npm run inspect
# Or manually
npx @modelcontextprotocol/[email protected] node dist/index.jsAvailable Tools
🧠 Enhanced Analytics (NEW)
get_engagement_metrics- User engagement dashboard with DAU/WAU/MAUget_top_events- Most popular events with frequency analysisget_traffic_sources- UTM attribution and marketing performanceget_growth_metrics- Growth rate analysis with trendsget_enhanced_funnel- Conversion funnel with drop-off analysisget_user_flows- User journey mapping and optimizationdetect_anomalies- Statistical anomaly detectionget_revenue_attribution- Revenue attribution by channelget_user_segments- Behavioral segmentationget_realtime_dashboard- Live metrics dashboard
📊 Standard Analytics
get_analytics- Comprehensive analytics dataget_analytics_metrics- Company performance metricsget_ttv_analysis- Time to Value analysisget_analytics_events- Raw event data with paginationget_advanced_analytics- Advanced analytics suiteget_funnel_analysis- Funnel analysisget_cohort_analysis- Cohort retention analysisget_ttv_deterministic- Deterministic TTV analysis
🎯 Growth & Recommendations
get_recommendations- AI-generated growth recommendationsgenerate_recommendations- Create new recommendationssearch_recommendations- Search existing recommendations
🔍 Search & Memory
global_search- Vector search across all datasearch_analytics- Search analytics eventssearch_conversations- Search conversation historysearch_memory- Search vector memory storeget_memory_context- Enhanced conversation contextstore_conversation_memory- Store conversation insights
🏢 Data Management
get_data_sources- List connected data sourcesadd_data_source- Connect new data sourcetest_data_source- Test data source connectiontrigger_data_sync- Manual data synchronizationget_companies- List available companies
⚙️ System & Performance
get_system_health- System health statusinitialize_client_context- Client context optimizationget_agent_performance_metrics- Performance metricsgenerate_optimized_system_message- Enhanced system messagesclear_performance_cache- Cache management
🌤️ Weather Services
get_current_weather- Current weather dataget_weather_forecast- Weather forecast
Usage Examples
User Engagement Analysis
{
"tool": "get_engagement_metrics",
"arguments": {
"companyId": "34e7e6cc-64d9-4710-b418-ef6208eae9d2",
"days": 30
}
}Growth Rate Analysis
{
"tool": "get_growth_metrics",
"arguments": {
"companyId": "34e7e6cc-64d9-4710-b418-ef6208eae9d2"
}
}Conversion Funnel Analysis
{
"tool": "get_enhanced_funnel",
"arguments": {
"companyId": "34e7e6cc-64d9-4710-b418-ef6208eae9d2",
"events": "page_view,signup_start,signup_complete,purchase",
"days": 30
}
}Configuration
Environment Variables
HELIX_API_URL- Helix API endpoint URLHELIX_API_KEY- API authentication keyHELIX_COMPANY_ID- Default company ID (optional)MCP_TRANSPORT- Transport type (stdio|sse|http-stream)PORT- Server port for HTTP transportsWEATHER_API_KEY- OpenWeather API key (optional)
Transport Types
- STDIO - Direct process communication (best for Inspector)
- SSE - Server-Sent Events for web applications
- HTTP-Stream - RESTful API for maximum compatibility
Development
Scripts
npm run build # Build TypeScript
npm run dev # Development with watch
npm run start # Start server
npm run inspect # Launch MCP Inspector
npm test # Run testsAdding Custom Tools
- Add tool definition in
setupToolHandlers() - Implement method in
HelixMCPServerclass - Add to switch statement in tool call handler
- Test with Inspector
Business Intelligence
For Startups
- Growth Metrics - Essential DAU/MAU and growth rates
- Resource Optimization - Focus on highest-impact channels
- Product Intelligence - User behavior insights
- Investor Readiness - Comprehensive metrics for fundraising
For Enterprises
- Advanced Attribution - Multi-touch revenue attribution
- Customer Intelligence - Behavioral segmentation
- Operational Excellence - Real-time monitoring
- Competitive Advantage - Advanced analytics capabilities
Support
- Documentation: MCP Inspector Guide
- Issues: GitHub Issues
- Repository: GitHub
License
MIT License - see LICENSE for details.
Transform your analytics data into actionable business intelligence with the Helix MCP Server.
