Skip to main content

MCP server serving Sungrow iSolarCloud OpenAPI documentation, control-parameter reference and how-to skills.

Project description

mcp-isolarcloud

An MCP server that serves the Sungrow iSolarCloud OpenAPI documentation — the official developer docs, control-parameter reference, device-type dictionary, error codes and measuring-point tables — as searchable tools, resources and how-to "skill" prompts.

The full documentation set is bundled with the package, so the server needs no network access or credentials at runtime.

Why

Building against the iSolarCloud API (e.g. the sungrow-isolarcloud client or the Home Assistant integration) means constantly cross-referencing the developer portal — whose docs live behind a JavaScript app. This server puts them one tool call away for any MCP-capable assistant, including the authoritative Appendix 10: Control Parameter Definitions (param codes, units and value encodings — e.g. SOC is sent as tenths of a percent, power in watts).

Run it

With uv (recommended — no install step):

uvx mcp-isolarcloud

Or add it to an MCP client (Claude Desktop / Claude Code / etc.):

{
  "mcpServers": {
    "isolarcloud": {
      "command": "uvx",
      "args": ["mcp-isolarcloud"]
    }
  }
}

For Claude Code: claude mcp add isolarcloud -- uvx mcp-isolarcloud

As a Claude Code plugin

This repo is also a Claude Code plugin marketplace, so the MCP server auto-registers when the plugin is enabled — no manual MCP config:

/plugin marketplace add KRoperUK/mcp-isolarcloud
/plugin install mcp-isolarcloud@mcp-isolarcloud

The plugin runs the published package via uvx mcp-isolarcloud.

What it exposes

Tools

  • list_docs() — every documentation page (slug, title, type)
  • read_doc(slug) — the full markdown of one page
  • search_docs(query, limit=8) — keyword search, title-weighted, with snippets

Resources

  • isolarcloud://docs/{slug} — each page as an MCP resource

Prompts (skills)

  • find_control_parameter(what) — locate a dispatch/control parameter and its value encoding
  • api_call_walkthrough(endpoint) — walk through calling a specific API endpoint

Updating the docs

The bundled docs are refreshed from the portal with:

pip install cryptography markdownify
python tools/refresh_docs.py

The portal's doc API is public (no login); refresh_docs.py reproduces its request-encryption scheme using the public keys embedded in the portal's own web app.

Development

uv venv && uv pip install -e '.[dev]'
ruff check src/ tests/
pytest

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_isolarcloud-0.2.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_isolarcloud-0.2.0-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file mcp_isolarcloud-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_isolarcloud-0.2.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for mcp_isolarcloud-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ef70dbee1457b46c5fb2ba5e7a297349048be4fa3b49b02505237ea132cfa0dd
MD5 7baf644f6628c61c95130f89ccd74174
BLAKE2b-256 0bb0a6cec66eefc051c56846c97183ea4f90da82fe8792d9b2505279065f2e24

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_isolarcloud-0.2.0.tar.gz:

Publisher: release-please.yml on KRoperUK/mcp-isolarcloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_isolarcloud-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_isolarcloud-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96212cb7ffbdf21beddcdcb708795d1f9184f6ed8184b5dc8bc75ae2a118d525
MD5 afc61f9621f02c24ae27987f05f931b1
BLAKE2b-256 00af50cbaaaec2dd17f2ad3a06f9ffdef6d58ac2c4110a5b659c74c8682fb7b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_isolarcloud-0.2.0-py3-none-any.whl:

Publisher: release-please.yml on KRoperUK/mcp-isolarcloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page