Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-align-software-company-opensolar-mcp": {
"command": "npx",
"args": [
"-y",
"@alignco/opensolar-mcp"
],
"env": {
"OPENSOLAR_API_TOKEN": "<YOUR_VALUE>",
"OPENSOLAR_ORG_ID": "12345",
"OPENSOLAR_PROFILE": "agent",
"OPENSOLAR_READ_ONLY": "off",
"OPENSOLAR_PLAN": "<VALUE>",
"OPENSOLAR_TOOLSETS": "projects,contacts,systems",
"OPENSOLAR_UPLOAD_ROOT": "<VALUE>",
"MCP_HTTP_HOST": "127.0.0.1",
"MCP_HTTP_PATH": "/mcp",
"MCP_HTTP_PORT": "3000",
"MCP_TRANSPORT": "stdio",
"OPENSOLAR_BASE_URL": "https://api.opensolar.com/api/",
"MCP_HTTP_ALLOWED_HOSTS": "<VALUE>",
"MCP_HTTP_ALLOWED_ORIGINS": "the Host allowlist"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| OPENSOLAR_API_TOKEN secret | Yes | OpenSolar bearer token. Required for stdio and --check. Loopback HTTP can use it as a fallback. |
| OPENSOLAR_ORG_ID | Yes | Your OpenSolar organisation ID. |
| OPENSOLAR_PROFILE | No | Tool profile: agent or full. Default: agent |
| OPENSOLAR_READ_ONLY | No | 1, true, yes, or on hides every mutation. 0, false, no, or off keeps them. Any other value stops startup. Default: off |
| OPENSOLAR_PLAN | No | api_access hides tools that need Raw Data API Access; raw_data keeps them. |
| OPENSOLAR_TOOLSETS | No | Comma-separated toolsets. Replaces the profile's selection when set. |
| OPENSOLAR_UPLOAD_ROOT | No | Directory create_private_file may read from. Uploads are disabled when unset. |
| MCP_HTTP_HOST | No | HTTP bind address. Default: 127.0.0.1 |
| MCP_HTTP_PATH | No | MCP endpoint path. Default: /mcp |
| MCP_HTTP_PORT | No | HTTP port. Default: 3000 |
| MCP_TRANSPORT | No | http serves Streamable HTTP instead of stdio. Default: stdio |
| OPENSOLAR_BASE_URL | No | OpenSolar API base URL. Must be https (http only for localhost). Default: https://api.opensolar.com/api/ |
| MCP_HTTP_ALLOWED_HOSTS | No | Comma-separated Host values accepted on non-loopback binds. Required for 0.0.0.0 and ::. |
| MCP_HTTP_ALLOWED_ORIGINS | No | Browser Origin hostnames accepted on non-loopback binds. Requests without an Origin header still pass. Default: the Host allowlist |