Skip to main content

MCP Server

Connect any MCP-compatible AI assistant to your TrackLab solar monitoring data. Query tracker positions, measurement history, device parameters, and weather — all through natural language.

OAuth 2.1 · HTTP Streaming · Read-only

Quick Start

claude mcp add --transport http tracklab https://tracklabsolar.com/mcp
tip

After running the command, you'll be prompted to authenticate via your browser.

Tools

The TrackLab MCP server exposes 13 read-only tools across four domains: navigation, fleet health, data, and weather.

ToolIDDescription
User Contexttracklab_user_contextThe starting point for any AI session. Returns your name, email, accessible companies (slug + name), and default company. No parameters needed.
Farms Listtracklab_farms_listBrowse all farms for a company. Returns farm UUID, name, enabled status, location, collector count, and section count. Automatically excludes placeholder farms.
Farm Sectionstracklab_farm_sections_listDrill into sections within a farm. Returns section UUID, name, enabled status, display order, and tracker count. Excludes placeholder sections.
Collectors Listtracklab_collectors_listFind collectors with flexible filtering by farm, section, or collector type. Returns UUID, name, serial, type (NCU/TCU), status, farm, and enabled state. Capped at 200 results per request.
Collector Detailtracklab_collector_detailFull detail for a single collector: name, serial, type, status, farm, section, GPS location, hardware version, lifecycle dates, and tracker grid position.

Fleet Health

ToolIDDescription
Collector Alertstracklab_collector_alertsFleet health monitoring. Returns collectors not in healthy states, grouped by status type. Filterable by farm or across all farms.

Data

ToolIDDescription
Measurement Querytracklab_measurements_queryQuery time-series data from collectors with filtering and aggregation. Supports 15 measurement types across NCU and TCU devices, 8 aggregation methods, and 9 time periods.
Measurement Catalogtracklab_measurement_catalogDiscover available measurement types, aggregation methods, and time periods before querying.
Collector Parameterstracklab_collector_parameters_listRead current confirmed and pending parameter values for any collector.
Parameter Catalogtracklab_collector_parameter_catalogDiscover all 49 parameter type definitions including configuration, tracking, motor, commands, backtracking, and wind protection settings.

Weather

ToolIDDescription
Weather — Companytracklab_weather_companyCurrent weather conditions (temperature, humidity, wind, clouds) across all farms in a company.
Weather — Farm Currenttracklab_weather_farm_currentDetailed current weather for a specific farm.
Weather — Farm Historytracklab_weather_farm_historyHistorical weather data for a specific farm over a time range.

Measurement Types

NCU (6 types)

TypeUnit
CPU Temperature°C
CPU Usage%
Disk Usage%
Memory Usage%
Uptimes
Wind Speedm/s

TCU (9 types)

TypeUnit
Angle Current°
Angle Setpoint°
Battery Charge Status%
Battery VoltageV
Errorbitmask
Modebitmask
Motor CurrentA
RTC Date
Runtime Hours

Aggregation methods: avg, median, min, max, sum, count, first, last

Time periods: raw, 1-min, 10-min, 1-hour, 4-hour, 12-hour, daily, weekly, monthly

Prompts & Resources

The server also provides guided prompts and reference resources to help AI assistants discover and use the API effectively.

Prompts

PromptDescription
tracklab_measurement_query_guideStep-by-step guidance for querying time-series measurement data.
tracklab_parameter_lookup_guideHow to discover and read collector parameter values.
tracklab_weather_guideNavigating company-level and farm-level weather data.

Resources

ResourceDescription
tracklab://guides/measurementsMeasurement query field reference.
tracklab://guides/measurement-schemaFull schema for measurement types, aggregations, and periods.
tracklab://guides/parametersExplanation of confirmed vs pending values and parameter categories.
tracklab://guides/weatherHow company, farm current, and farm history endpoints relate.
tracklab://guides/permissionsHow company context and access control affect tool results.

Setup

Claude Code

claude mcp add --transport http tracklab https://tracklabsolar.com/mcp

Claude Desktop

Add to claude_desktop_config.json:

{
"mcpServers": {
"tracklab": {
"type": "http",
"url": "https://tracklabsolar.com/mcp"
}
}
}

Cursor

Add to MCP settings (Settings > MCP Servers):

{
"tracklab": {
"type": "http",
"url": "https://tracklabsolar.com/mcp"
}
}

VS Code (Copilot)

Add to .vscode/mcp.json:

{
"servers": {
"tracklab": {
"type": "http",
"url": "https://tracklabsolar.com/mcp"
}
}
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
"mcpServers": {
"tracklab": {
"type": "http",
"url": "https://tracklabsolar.com/mcp"
}
}
}

Others

SettingValue
Endpointhttps://tracklabsolar.com/mcp
TransportHTTP Streaming
AuthenticationOAuth 2.1 (browser-based)

Authentication

The MCP server uses OAuth 2.1 with PKCE. When you first connect, your MCP client will open a browser window for login and consent.

Company context: The server resolves your company context automatically. If you have access to multiple companies, specify companySlug in tool parameters. Otherwise, it uses your default company.