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.

Values you need

VariableWhat it is
OPENSOLAR_API_TOKENrequired secret OpenSolar bearer token
OPENSOLAR_ORG_IDrequired OpenSolar organisation ID
OPENSOLAR_PROFILEoptional Tool profile: agent (curated default) or full (every registered tool) Default: agent
OPENSOLAR_READ_ONLYoptional Hide every tool that can change OpenSolar data Default: false
OPENSOLAR_PLANoptional OpenSolar access plan; api_access hides tools that need Raw Data API Access
OPENSOLAR_TOOLSETSoptional Comma-separated toolsets that replace the profile's tool selection
OPENSOLAR_UPLOAD_ROOToptional Directory that create_private_file may read from; uploads stay disabled when unset

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add opensolar-mcp -e 'OPENSOLAR_API_TOKEN=<OPENSOLAR_API_TOKEN>' -e 'OPENSOLAR_ORG_ID=<OPENSOLAR_ORG_ID>' -- npx -y @alignco/opensolar-mcp@0.1.3
Add to claude_desktop_config.json
{
  "mcpServers": {
    "opensolar-mcp": {
      "args": [
        "-y",
        "@alignco/opensolar-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "OPENSOLAR_API_TOKEN": "<OPENSOLAR_API_TOKEN>",
        "OPENSOLAR_ORG_ID": "<OPENSOLAR_ORG_ID>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "opensolar-mcp": {
      "args": [
        "-y",
        "@alignco/opensolar-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "OPENSOLAR_API_TOKEN": "<OPENSOLAR_API_TOKEN>",
        "OPENSOLAR_ORG_ID": "<OPENSOLAR_ORG_ID>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OPENSOLAR_API_TOKEN",
      "id": "opensolar-api-token",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "OPENSOLAR_ORG_ID",
      "id": "opensolar-org-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "opensolar-mcp": {
      "args": [
        "-y",
        "@alignco/opensolar-mcp@0.1.3"
      ],
      "command": "npx",
      "env": {
        "OPENSOLAR_API_TOKEN": "${input:opensolar-api-token}",
        "OPENSOLAR_ORG_ID": "${input:opensolar-org-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.opensolar-mcp]
command = "npx"
args = ["-y", "@alignco/opensolar-mcp@0.1.3"]
env = { "OPENSOLAR_API_TOKEN" = "<OPENSOLAR_API_TOKEN>", "OPENSOLAR_ORG_ID" = "<OPENSOLAR_ORG_ID>" }

For AI agents

  1. Ask the user for: OPENSOLAR_API_TOKEN, OPENSOLAR_ORG_ID. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_projects, search_projects, get_project, get_project_snapshot, create_project, update_project, update_project_stage, update_project_usage, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json