Luxsin MCP Server
English · 简体中文
Read and control Luxsin B9, X8, and X9 devices through MCP. The server receives MCP calls over stdio and communicates with devices over HTTP. Model definitions and options come from luxsin-common/static/schemas.
MCP client <-- stdio --> Luxsin MCP Server <-- HTTP --> Luxsin device
Ask your MCP client “What is the current volume in dB?”, “Set the volume to -45.5 dB,” or “List the PEQ presets.”
Install from GitHub
The browser URL includes /tree/main/luxsin-mcp. The uvx configuration below uses the Git repository URL and selects each package with #subdirectory=. MCP server source on GitHub
Install from the allen2fuc/luxsin-mcp GitHub repository. The --with argument installs the dependency from the luxsin-common/ subdirectory, and --from installs the MCP server from the luxsin-mcp/ subdirectory of the same repository.
{
"mcpServers": {
"luxsin": {
"command": "uvx",
"args": [
"--python", "3.13",
"--with", "git+https://github.com/allen2fuc/luxsin-mcp.git#subdirectory=luxsin-common",
"--from", "git+https://github.com/allen2fuc/luxsin-mcp.git#subdirectory=luxsin-mcp",
"luxsin-mcp"
]
}
}
}
To pin a release, add the same tag after .git in both URLs, for example .git@v0.1.0#subdirectory=luxsin-mcp.
To use "args": ["luxsin-mcp"] in the client configuration, publish both luxsin-mcp and its runtime dependency luxsin-common to a Python package index your users can access, such as PyPI. The publisher must control both names. If either package is renamed, update the dependency declaration accordingly.
Run from local source
From the monorepo, enter the luxsin-mcp directory and use Python 3.13 or later.
uv sync
uv run luxsin-mcp
In your MCP client, try “Connect to the Luxsin device at 192.168.9.130.” The client calls luxsin_api_connect with {"ip":"192.168.9.130"}. HTTP defaults to port 80, which you can override with port. Once the connection check succeeds, subsequent calls use that address until you switch devices or restart the MCP process. The optional LUXSIN_DEVICE_URL environment variable sets a default device.
Example stdio MCP client configuration follows.
{
"mcpServers": {
"luxsin": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/luxsin-mcp", "run", "luxsin-mcp"]
}
}
}
Tools
| Tool | Purpose |
|---|---|
luxsin_api_connect |
Check connectivity via /msgCount and switch devices by IP address and optional port |
luxsin_api_identity |
Read device identity and MAC address |
luxsin_api_schema |
Look up device fields, PEQ schemas, and options by model |
luxsin_api_status |
Read device status, including volume in dB |
luxsin_api_msg_count / luxsin_api_refresh |
Read the message count or send a refresh notification |
luxsin_api_set_volume |
Set volume in 0.5 dB increments |
luxsin_api_settings |
Update supported settings in one call, such as input, output, or DSP toggles |
luxsin_api_peq_list |
Get a PEQ snapshot and all presets, decoding filter lists returned as JSON strings |
luxsin_api_peq_select |
Select a preset by zero-based index |
luxsin_api_peq_save / luxsin_api_peq_remove |
Save, update, or delete presets by name |
Metadata
Release files for luxsin-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| luxsin_mcp-0.1.0.tar.gz | 6.4 kB | Without provenance | Details for luxsin_mcp-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| luxsin_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for luxsin_mcp-0.1.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / luxsin_mcp-0.1.0.tar.gz
| Download URL | luxsin_mcp-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fad60f74650115ee782c53cfbee509d56b0f1c6b0c1447a285b5af239e0400c4
|
|
BLAKE2b-256 checksum How to use checksums |
424a472e759706b5745cb1527e234fd4904464f0eb96a2e6ada082a59ca61aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / luxsin_mcp-0.1.0-py3-none-any.whl
| Download URL | luxsin_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cbcf0e4fc418642a16909f06d01695f68465ae5b302109261aee5ee0f3e7082
|
|
BLAKE2b-256 checksum How to use checksums |
10103812bb3c64554aa7c5b111369455d62af4ef791f27681e1d2a7b544d60ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for luxsin-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.