OpenSolar MCP
v0.1.3Unofficial, 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum projects per page. Defaults to 20, capped at 100. |
page | integer | 1-indexed page number. Use page=2 to fetch the next batch of results. |
verbose | boolean | When 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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to match locally. Not sent to OpenSolar as a search query. |
max_pages | integer | Pages to read, from 1 to 20. Defaults to 5. This cap is an MCP work bound. |
max_results | integer | Strongest 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | The OpenSolar project ID. Use search_projects for a named/address lookup or list_projects for browsing. |
verbose | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project 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.
| Parameter | Type | Description |
|---|---|---|
address | string | Street address. |
assigned_role | integer | Role id from list_roles. Sent as the role URL. |
contacts_new | array | People to create with the project. Each person uses the create_contact fields. |
country_iso2 | string | ISO 3166-1 alpha-2 country code. |
identifier | string | External identifier. |
is_residential | boolean | True when the project is residential. |
lat | number | Latitude. |
lead_source | string | Lead source label. |
locality | string | City or locality. |
lon | number | Longitude. |
notes | string | Project notes. |
number_of_phases | integer | Electrical phase count. |
roof_type | integer | Roof type id from list_roof_types. Sent as the roof type URL. |
state | string | State or region. |
zip | string | Postal 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Project id from list_projects. |
address | string | Street address. |
assigned_role | integer | Role id from list_roles. Sent as the role URL. |
country_iso2 | string | ISO 3166-1 alpha-2 country code. |
identifier | string | External identifier. |
is_residential | boolean | True when the project is residential. |
lat | number | Latitude. |
lead_source | string | Lead source label. |
locality | string | City or locality. |
lon | number | Longitude. |
notes | string | Project notes. |
number_of_phases | integer | Electrical phase count. |
roof_type | integer | Roof type id from list_roof_types. Sent as the roof type URL. |
state | string | State or region. |
zip | string | Postal 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project id from list_projects. |
active_stage_id | integer | Stage id from the workflow. Do not send this together with stage_name. |
stage_name | string | Stage title on the workflow. Resolved locally against stages that are not archived. Do not send this together with active_stage_id. |
workflow_id | integer | Workflow 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project id from list_projects. |
usage_data_source * | string | Documented 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.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum contacts per page. Defaults to 20, capped at 100. |
ordering | string | Optional 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… |
page | integer | 1-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…
| Parameter | Type | Description |
|---|---|---|
query * | string | Text to match locally. Not sent to OpenSolar as a search query. |
max_pages | integer | Pages to read, from 1 to 20. Defaults to 5. This cap is an MCP work bound. |
max_results | integer | Strongest 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | OpenSolar 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.
| Parameter | Type | Description |
|---|---|---|
email | string | Email address. |
family_name | string | Family name. |
first_name | string | Given name. |
phone | string | Phone 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.
| Parameter | Type | Description |
|---|---|---|
contact_id * | integer | Contact id from list_contacts or get_contact. |
email | string | Email address. |
family_name | string | Family name. |
first_name | string | Given name. |
phone | string | Phone 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project 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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project the connected org owns. Shared team projects cannot use this endpoint. |
exclude_parts | string | Comma-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_parts | string | Comma-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.
| Parameter | Type | Description |
|---|---|---|
auto_apply_enabled | boolean | When set, keep only options with this auto-apply flag. |
limit | integer | Maximum payment options per page. Defaults to 20, capped at 100. |
page | integer | 1-indexed page number. Defaults to 1. |
payment_type | string | Filter by payment type: cash, loan, loan_advanced, ppa, regular_payment, or lease. |
priority | integer | When 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.
| Parameter | Type | Description |
|---|---|---|
auto_apply_enabled | boolean | When set, keep only schemes with this auto-apply flag. |
limit | integer | Maximum pricing schemes per page. Defaults to 20, capped at 100. |
page | integer | 1-indexed page number. Defaults to 1. |
pricing_formula | string | Filter by formula: Markup Percentage, Price Per Watt, Price Per Watt By Size, or Fixed Price. |
priority | integer | When 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum costings per page. Defaults to 20, capped at 100. |
page | integer | 1-indexed page number. Defaults to 1. |
priority | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
file_tags | string | When set, keep files with this file-tag title. |
file_tags_exclude | string | When set, omit files with this file-tag title. |
limit | integer | Maximum files per page. Defaults to 20, capped at 100. |
ordering | string | created_date, modified_date, title, status, or filesize. Prefix with - for descending. Default upstream order is -modified_date. |
page | integer | 1-indexed page number. Defaults to 1. |
project_id | integer | When set, keep files for this project. Sent as the project query parameter. |
search | string | When set, search title, system_uuid, input_data, input_data_hash, file_hash, status, and status_message. |
user_id | integer | When 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.
| Parameter | Type | Description |
|---|---|---|
id * | integer | Private file id. Use list_private_files to discover ids. |
include_contents | boolean | When 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.
| Parameter | Type | Description |
|---|---|---|
path * | string | File 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 * | string | File 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.
| Parameter | Type | Description |
|---|---|---|
document_type * | string | Document type from the Generating Project Files page. |
project_id * | integer | Project id. Use list_projects to discover ids. |
format | string | Output 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum rows per page. Defaults to 20, capped at 100. |
page | integer | 1-indexed page number. Defaults to 1. |
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.
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project 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…
| Parameter | Type | Description |
|---|---|---|
project_id * | integer | Project id from list_projects. |
section | string | summary 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… |