Tigo Energy MCP Server

Tigo Energy MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to Tigo Energy solar system data and analytics. It enables AI assistants to interact with your Tigo solar monitoring system to retrieve production data, performance metrics, system health information, and maintenance insights.

Category
访问服务器

README

Tigo Energy MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to Tigo Energy solar system data and analytics. This server enables AI assistants to interact with your Tigo solar monitoring system to retrieve production data, performance metrics, system health information, and maintenance insights.

Features

Core Functionality

  • System Configuration: Access user account and system information
  • Real-time Production: Get current solar production data and system summary
  • Performance Analysis: Comprehensive efficiency metrics and panel performance evaluation
  • Historical Data: Retrieve production data with configurable time ranges and granularity
  • System Health: Monitor alerts and overall system status
  • Maintenance Insights: AI-powered recommendations based on performance analysis

Key Capabilities

  • Monitor multiple solar systems (automatically uses primary system if not specified)
  • Identify underperforming panels with customizable thresholds
  • Calculate system efficiency metrics over configurable time periods
  • Track and analyze system alerts and their types
  • Generate maintenance recommendations with priority scoring
  • Support for minute, hour, and day-level historical data analysis

Installation

Prerequisites

  • Python 3.8 or higher
  • A Tigo Energy account with API access
  • Required Python packages (install via pip):
pip install python-dotenv mcp tigo-python fastmcp

Setup

  1. Clone or download the server files

    # Save the server.py file to your desired location
    
  2. Configure environment variables

    # Copy the example environment file
    cp .env.example .env
    
    # Edit .env with your Tigo credentials
    TIGO_USERNAME=your_tigo_username
    TIGO_PASSWORD=your_tigo_password
    
  3. Test the server

    python server.py
    

Configuration

Environment Variables

Create a .env file in the same directory as server.py:

TIGO_USERNAME=your_tigo_username
TIGO_PASSWORD=your_tigo_password

Security Note: Keep your .env file secure and never commit it to version control. The .env.example file is provided as a template.

Available Tools

System Information Tools

Fetch_Configuration

Retrieves user account information and lists all available solar systems.

Returns: User details and system list with IDs and basic information.

Get_System_Details

Get comprehensive information about a specific solar system including layout, sources, and detailed specifications.

Parameters:

  • system_id (optional): Specific system ID, uses first available system if not provided

Production & Performance Tools

Get_Current_Production

Retrieve today's production data and real-time system summary.

Parameters:

  • system_id (optional): Target system ID

Returns: Current production metrics, today's generation data, and system status.

Get_Performance_Analysis

Comprehensive performance analysis including efficiency metrics and panel-by-panel performance.

Parameters:

  • system_id (optional): Target system ID
  • days_back (default: 7): Number of days to analyze

Returns: Efficiency metrics, top/bottom performing panels, and performance summary.

Get_Historical_Data

Retrieve historical production data with configurable granularity.

Parameters:

  • system_id (optional): Target system ID
  • days_back (default: 30): Number of days of historical data
  • level (default: "day"): Data granularity - "minute", "hour", or "day"

Returns: Historical production data with statistical summary.

System Health Tools

Get_System_Alerts

Retrieve recent system alerts and health information.

Parameters:

  • system_id (optional): Target system ID
  • days_back (default: 30): Number of days to look back for alerts

Returns: Active and recent alerts with categorization and status.

Get_System_Health

Comprehensive system health status combining multiple data sources.

Parameters:

  • system_id (optional): Target system ID

Returns: Overall health rating (Excellent/Good/Fair/Needs Attention) with supporting metrics and recommendations.

Maintenance Tools

Get_Maintenance_Insights

AI-powered maintenance recommendations based on performance analysis.

Parameters:

  • system_id (optional): Target system ID
  • threshold_percent (default: 85.0): Performance threshold for identifying underperforming panels

Returns: Prioritized maintenance recommendations with affected components and next actions.

Usage Examples

Basic System Status Check

# Get overall system health
health_status = await get_system_health()

# Check for any alerts
alerts = await get_system_alerts(days_back=7)

# Get current production
production = await get_current_production()

Performance Analysis

# Analyze performance over the last 30 days
performance = await get_performance_analysis(days_back=30)

# Get historical data at hourly granularity
historical = await get_historical_data(days_back=7, level="hour")

# Find maintenance issues
maintenance = await get_maintenance_insights(threshold_percent=80.0)

Multi-System Management

# Get all systems first
config = await fetch_configuration()

# Analyze specific system
system_details = await get_system_details(system_id=12345)
performance = await get_performance_analysis(system_id=12345, days_back=14)

Integration with AI Assistants

This MCP server is designed to work seamlessly with AI assistants like Claude. The server provides structured JSON responses that enable natural language interactions about your solar system:

  • "How is my solar system performing today?"
  • "Show me any underperforming panels"
  • "What maintenance does my system need?"
  • "Compare this month's production to last month"
  • "Are there any active alerts I should know about?"

Error Handling

The server includes comprehensive error handling:

  • Safe JSON serialization with fallback for complex data types
  • Graceful handling of API connection issues
  • Automatic fallback to primary system when system_id is not specified
  • Detailed error messages for troubleshooting

Security Considerations

  • Credentials are loaded from environment variables, never hardcoded
  • The server uses the official Tigo Python client with proper authentication
  • All API responses are properly sanitized before returning
  • No sensitive information is logged or exposed

Troubleshooting

Common Issues

  1. Authentication Errors

    • Verify your Tigo username and password in the .env file
    • Ensure your Tigo account has API access enabled
  2. No Systems Found

    • Check that your Tigo account has associated solar systems
    • Verify the systems are properly configured in your Tigo dashboard
  3. Connection Issues

    • Check your internet connection
    • Verify Tigo API service status

Debug Mode

Set debug logging by modifying the server startup:

if __name__ == "__main__":
    import logging
    logging.basicConfig(level=logging.DEBUG)
    mcp.run(transport="stdio")

Contributing

Contributions are welcome! Please ensure:

  • Code follows existing patterns and error handling
  • New tools include proper documentation
  • Environment variables are used for configuration
  • JSON responses are properly structured and safe

License

This project uses the Tigo Python API client and follows its licensing terms. Please refer to the Tigo Energy API documentation for usage guidelines and restrictions.

Support

For issues related to:

  • MCP Server: Create an issue in this repository
  • Tigo API: Contact Tigo Energy support
  • Tigo Python Client: Refer to the tigo-python package documentation

This MCP server enables powerful AI-driven solar system monitoring and maintenance insights. Monitor your solar investment with confidence and get proactive maintenance recommendations to maximize your system's performance.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选