OpenSolar MCP

v0.1.3
io.github.Align-Software-Company/opensolar-mcp Checked 2 days ago Published 2 months ago

Unofficial, self-hosted MCP server for the documented OpenSolar API.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_projects List projects

Lists one page of projects in the connected org. Default result is `{ projects, page, limit }` with id, title, address, dates, stage, stage_milestone, and workflow ids when OpenSolar sent them. `verbose: true` returns `{ projects, page, limit }` with the full redacted list objects. Use search_projects when you know a name, address, email, or phone. Use get_project only when you need detail beyond a list or search row.

ParameterTypeDescription
limitintegerMaximum projects per page. Defaults to 20, capped at 100.
pageinteger1-indexed page number. Use page=2 to fetch the next batch of results.
verbosebooleanWhen true, `projects` is the full redacted list objects. Default false returns curated rows. Both paths use `{ projects, page, limit }`.

search_projects Search projects

Finds projects by paging the documented project list and matching locally. It does not call get_project and it does not send a search query. The documented list includes title, address, business_name, and embedded contact name, email, and phone. identifier, locality, state, and zip match only when that list row carries them. The scan reads until the list ends or max_pages is reached. Returned rows are the strongest matches. Equal strength keeps list order. `resolution` is `none`, `unique`, `ambiguous`, or `incomplete`. Only `unique` proves exactly one match after exhausting the scan. `identifi…

ParameterTypeDescription
query *stringText to match locally. Not sent to OpenSolar as a search query.
max_pagesintegerPages to read, from 1 to 20. Defaults to 5. This cap is an MCP work bound.
max_resultsintegerStrongest matches to return, from 1 to 25. Defaults to 10. This does not stop the page scan.

get_project Get project

Returns one project by id: address, stage, stage_milestone, workflow ids, contacts, assigned role, system_count, design_available, and events. Use it for fields a search row does not include. When search_projects reports `resolution: unique`, that target does not need this call before a write. `verbose: true` returns the full redacted object; `design` is `[REDACTED]`. API Access may omit design.

ParameterTypeDescription
id *integerThe OpenSolar project ID. Use search_projects for a named/address lookup or list_projects for browsing.
verbosebooleanWhen true, returns the full redacted project object. The compressed `design` field is replaced with `[REDACTED]`. Default false returns the curated subset plus `design_available`.

get_project_snapshot Get project snapshot

Reads one project plus its workflow, systems, and file metadata. A section that fails is a gap, not an empty list. Design, file URLs, and configuration JSON are omitted. payment_option is included only when the project payload points at payment_option_sold. Usage keeps the source period. Daily-per-month values are not summed into an annual total. Systems are one page from the systems list. File titles come from private_files_data when the project includes it, otherwise one private-files page. returned_count is the titles in this response. total_count is null when that page is full.

ParameterTypeDescription
project_id *integerProject id from list_projects or search_projects.

create_project Create project

Creates a project in the live org. A new project can be blocked when the wallet is empty. API Access uses project-level paid entitlement while it is enabled. This call is not retried.

ParameterTypeDescription
addressstringStreet address.
assigned_roleintegerRole id from list_roles. Sent as the role URL.
contacts_newarrayPeople to create with the project. Each person uses the create_contact fields.
country_iso2stringISO 3166-1 alpha-2 country code.
identifierstringExternal identifier.
is_residentialbooleanTrue when the project is residential.
latnumberLatitude.
lead_sourcestringLead source label.
localitystringCity or locality.
lonnumberLongitude.
notesstringProject notes.
number_of_phasesintegerElectrical phase count.
roof_typeintegerRoof type id from list_roof_types. Sent as the roof type URL.
statestringState or region.
zipstringPostal code.

update_project Update project

Updates address, notes, and related fields on one project in the live org. Send at least one field besides id. Stage, design, workflow, and usage are not accepted. This call is not retried.

ParameterTypeDescription
id *integerProject id from list_projects.
addressstringStreet address.
assigned_roleintegerRole id from list_roles. Sent as the role URL.
country_iso2stringISO 3166-1 alpha-2 country code.
identifierstringExternal identifier.
is_residentialbooleanTrue when the project is residential.
latnumberLatitude.
lead_sourcestringLead source label.
localitystringCity or locality.
lonnumberLongitude.
notesstringProject notes.
number_of_phasesintegerElectrical phase count.
roof_typeintegerRoof type id from list_roof_types. Sent as the roof type URL.
statestringState or region.
zipstringPostal code.

update_project_stage Update project stage

Sets the workflow stage on a project in the live org. Send active_stage_id with workflow_id, or stage_name. A stage title is resolved on that workflow and never matches an archived stage. No match or two matches with the same title do not PATCH. The deprecated stage field is not accepted. This call is not retried.

ParameterTypeDescription
project_id *integerProject id from list_projects.
active_stage_idintegerStage id from the workflow. Do not send this together with stage_name.
stage_namestringStage title on the workflow. Resolved locally against stages that are not archived. Do not send this together with active_stage_id.
workflow_idintegerWorkflow id. Required with active_stage_id. With stage_name, the project workflow is used when this is omitted.

update_project_usage Update project usage

Sets energy consumption on a project in the live org. Only the usage object is sent. values must match the source: one integer for annual, 12, 6, or 4 integers for the period sources, or Low, Medium, or High for estimate. This call is not retried.

ParameterTypeDescription
project_id *integerProject id from list_projects.
usage_data_source *stringDocumented energy-consumption source.
values *Integers, or Low, Medium, or High. The shape must match the source.

get_org Get organization

Returns the connected OpenSolar org: id, name, address, contact info, and measurement units. `verbose: true` returns the full redacted payload.

ParameterTypeDescription
verbosebooleanWhen true, returns the full org object with sensitive fields redacted. Default false returns the curated subset.

list_roles List roles

Lists roles in the connected org as `{ roles }`: id, display, email, phone, job title, and is_admin. Chat API keys are omitted.

list_contacts List contacts

Lists one page of contacts as `{ contacts }`. Each contact includes `is_synthetic_email` for `@os.code` addresses. Passport, licence, and date of birth are redacted. Contacts have no created_date or modified_date.

ParameterTypeDescription
limitintegerMaximum contacts per page. Defaults to 20, capped at 100.
orderingstringOptional ordering field. Supported fields: `first_name`, `family_name`, `email`. Prefix with `-` for descending order (for example `-first_name` for Z→A). Note: this endpoint uses `-` for descending…
pageinteger1-indexed page number. Defaults to 1.

search_contacts Search contacts

Finds contacts by paging the documented contact list and matching locally. It does not send a search query. Matches name, email, and phone. Passport, licence, and date of birth are redacted. The scan reads until the list ends or max_pages is reached. Returned rows are the strongest matches. Equal strength keeps list order. `resolution` is `none`, `unique`, `ambiguous`, or `incomplete`. Only `unique` proves exactly one match after exhausting the scan. `identifier_match_id` names the record when the complete, untruncated scan found exactly one exact email or phone match; otherwise it is null. `c…

ParameterTypeDescription
query *stringText to match locally. Not sent to OpenSolar as a search query.
max_pagesintegerPages to read, from 1 to 20. Defaults to 5. This cap is an MCP work bound.
max_resultsintegerStrongest matches to return, from 1 to 25. Defaults to 10. This does not stop the page scan.

get_contact Get contact

Returns one contact by id, including `is_synthetic_email`. Passport, licence, and date of birth are redacted. Contacts have no created_date or modified_date.

ParameterTypeDescription
contact_id *integerOpenSolar contact ID. Get this from `list_contacts` results or another tool that surfaces contact IDs.

create_contact Create contact

Adds a person to the live org. Send only first_name, family_name, email, and phone. This call is not retried.

ParameterTypeDescription
emailstringEmail address.
family_namestringFamily name.
first_namestringGiven name.
phonestringPhone number.

update_contact Update contact

Updates a person in the live org. Send at least one of first_name, family_name, email, and phone. This call is not retried.

ParameterTypeDescription
contact_id *integerContact id from list_contacts or get_contact.
emailstringEmail address.
family_namestringFamily name.
first_namestringGiven name.
phonestringPhone number.

compare_project_systems Compare project systems

Compares the systems on one project. Columns are included only when that system payload has them: kW, module count, annual kWh, kWh per kW, price, price per watt, battery kWh, and hardware names. No system is ranked. One system-details call runs when a listed system is missing modules, inverters, or batteries. An empty array counts as present. Groups already on the list are not replaced. A failed details call leaves hardware_gap and still returns the list columns.

ParameterTypeDescription
project_id *integerProject id from list_projects or search_projects.

get_system_details Get system details

Returns modules, inverters, batteries, module groups, and incentives for systems on a project the org owns. Shared team projects cannot use this endpoint. include_parts and exclude_parts only filter the upstream `data` field, which is not returned. OpenSolar can time out on large projects; do not retry in a loop. custom_data is omitted.

ParameterTypeDescription
project_id *integerProject the connected org owns. Shared team projects cannot use this endpoint.
exclude_partsstringComma-separated fields to drop from each system's upstream `data` field instead of include_parts. It does not change the result. Do not set this together with include_parts.
include_partsstringComma-separated fields to keep inside each system's upstream `data` field. OpenSolar applies it only to `data`, which this tool does not return, so it does not change the result. Defaults to modules,i…

list_payment_options List payment options

Lists one page of payment options as `{ payment_options, page, limit }`. Optional filters are payment_type, auto_apply_enabled, and priority. `configuration_json` is omitted.

ParameterTypeDescription
auto_apply_enabledbooleanWhen set, keep only options with this auto-apply flag.
limitintegerMaximum payment options per page. Defaults to 20, capped at 100.
pageinteger1-indexed page number. Defaults to 1.
payment_typestringFilter by payment type: cash, loan, loan_advanced, ppa, regular_payment, or lease.
priorityintegerWhen set, keep only options with this priority.

list_pricing_schemes List pricing schemes

Lists one page of pricing schemes as `{ pricing_schemes, page, limit }`. Optional filters are priority, auto_apply_enabled, and pricing_formula. `configuration_json` is omitted.

ParameterTypeDescription
auto_apply_enabledbooleanWhen set, keep only schemes with this auto-apply flag.
limitintegerMaximum pricing schemes per page. Defaults to 20, capped at 100.
pageinteger1-indexed page number. Defaults to 1.
pricing_formulastringFilter by formula: Markup Percentage, Price Per Watt, Price Per Watt By Size, or Fixed Price.
priorityintegerWhen set, keep only schemes with this priority.

list_costings List costings

Lists one page of costings as `{ costings, page, limit }`. The only optional filter is boolean priority. Per-unit rates are omitted.

ParameterTypeDescription
limitintegerMaximum costings per page. Defaults to 20, capped at 100.
pageinteger1-indexed page number. Defaults to 1.
prioritybooleanWhen set, keep only costings with this priority flag. Priority is true or false.

list_roof_types List roof types

Returns the OpenSolar roof type ids and titles. This is a copied docs table, not an API call.

list_file_tags List file tags

Returns private-file tag titles. The title is the identifier. This is a copied docs table, not an API call.

list_private_files List private files

Lists one page of private files as `{ private_files, page, limit }`. Each row is id, title, file tag titles, and project id. The download URL is omitted.

ParameterTypeDescription
file_tagsstringWhen set, keep files with this file-tag title.
file_tags_excludestringWhen set, omit files with this file-tag title.
limitintegerMaximum files per page. Defaults to 20, capped at 100.
orderingstringcreated_date, modified_date, title, status, or filesize. Prefix with - for descending. Default upstream order is -modified_date.
pageinteger1-indexed page number. Defaults to 1.
project_idintegerWhen set, keep files for this project. Sent as the project query parameter.
searchstringWhen set, search title, system_uuid, input_data, input_data_hash, file_hash, status, and status_message.
user_idintegerWhen set, keep files for this user.

get_private_file Get private file

Returns one private file by id: title, file tag titles, project id, and size when OpenSolar sent it. The download URL stays on the server. `include_contents: true` downloads the file and refuses a body over 10 MB. Text is included for the model, capped at 100,000 characters. Images are image content. PDFs include extracted text and a PDF resource; other binary files use an embedded resource. Binary bytes are not duplicated in structuredContent. That resource URI is not the download URL.

ParameterTypeDescription
id *integerPrivate file id. Use list_private_files to discover ids.
include_contentsbooleanWhen true, the server downloads the file and refuses a body over 10 MB. Text is capped at 100,000 characters in the model result. Images are image content. PDFs include extracted text and a PDF resour…

create_private_file Create private file

Creates a private file in the live org from a path confined to OPENSOLAR_UPLOAD_ROOT on this server. Uploads are disabled until that root is configured. The resolved real path must remain inside the root, including through symlinks. The server reads that file as multipart title and file_contents. Files over 25 MB are refused. File bytes are not accepted from the model. The download URL is omitted. This call is not retried.

ParameterTypeDescription
path *stringFile path under OPENSOLAR_UPLOAD_ROOT on the machine running this server. Relative paths resolve from that root; absolute paths are accepted only when their resolved real path remains inside it.
title *stringFile title. Sent as the multipart title field.

generate_project_document Generate project document

Creates a project document in the live org and returns the private file id. Omit format for the document type's default. pdf and csv set file_format on generate_document; docx calls generate_document_docx. The call sends action=save so OpenSolar stores a private file. File bytes are not returned. Use get_private_file for contents. This call is not retried.

ParameterTypeDescription
document_type *stringDocument type from the Generating Project Files page.
project_id *integerProject id. Use list_projects to discover ids.
formatstringOutput format. Omit to use the document type's default (PDF for most types, CSV for some). pdf and csv call generate_document with file_format. docx calls generate_document_docx.

list_connected_orgs List connected orgs

Lists established org connections. Connected-org calls are limited to 100 a day per user and per org. This server does not count them.

ParameterTypeDescription
limitintegerMaximum rows per page. Defaults to 20, capped at 100.
pageinteger1-indexed page number. Defaults to 1.

preflight_project_share Preflight project share

Checks whether a project can be shared with a connected org. This does not share the project or any entity. connection is ready only when one completed list match has is_active, is_other_active, and is_other_enabled all true. A false flag is not_ready. project_share comes from shared_with on the project. Payment options, pricing schemes, costings, and module activations are read with fieldset=list and shared_with set to the target org. shared means every referenced id was in that filtered list. not_shared means a finished filtered scan omitted them. partially_shared lists both. An unfinished f…

ParameterTypeDescription
project_id *integerProject id from list_projects or search_projects.
target_org_id *integerPartner org id, not the connection id.

share_entities Share entities

Shares or unshares one kind of entity with connected orgs. resource is the same value as entity_type. This call is not retried.

ParameterTypeDescription
entity_type *stringAlso sent as resource.
ids *arrayEntity ids to share or unshare, at most 100.
share_with_idsarray
unshare_with_idsarray

get_proposal_data Get proposal data

Returns proposal figures for one project: system name, annual kWh, monthly kWh, payback year, net present value, IRR, and return on investment. Requires Raw Data API Access. A 402 means this org does not have that plan. One inaccessible project returns 403. A compressed output string is decoded on the server and is not returned.

ParameterTypeDescription
project_id *integerProject id from list_projects.

get_project_design Get project design

Reads the compressed design on one project. section defaults to summary: system count and system_price_including_tax. components and energy return unmapped true because the decompress section does not name those keys. geometry reports whether autoFacetsGeoJson is present and does not return coordinates. financials returns numeric pricing keys on each system and does not return pricing objects. Requires Raw Data API Access. On API Access OpenSolar omits or nulls design, so the result is design_available false. The compressed string is not returned. get_project verbose still replaces design with…

ParameterTypeDescription
project_id *integerProject id from list_projects.
sectionstringsummary returns system count and system_price_including_tax. components and energy are unmapped because those keys are not named. geometry reports whether autoFacetsGeoJson is present and does not ret…