molcompose-mcp
Download statistics: Totals (Pepy). These are package downloads, not unique users or MCP calls.
An MCP stdio server for protein-interface analysis and molecular visualization in UCSF ChimeraX. Agents use the same MolCompose commands as the graphical panel.
Installation
Requires Python 3.11+, ChimeraX 1.12 and the MolCompose bundle. Install the latest published bridge:
python -m pip install --upgrade molcompose-mcp
This README describes MCP 0.1.2 with bundle 0.1.3, not yet published.
For this checkout, run python -m pip install ./mcp from the repository root
and install the matching bundle using the
checkout instructions.
In the MolCompose Agent tab
Open Tools → Structure Analysis → MolCompose, then select the Agent tab.
Select an installed, signed-in Codex or Claude Code CLI, then ask a question.
The tab starts the local bridge when needed and selects --profile assistant
automatically.
External MCP client
Start the REST bridge in ChimeraX:
remotecontrol rest start port 3000 json true
Use the actual port printed by ChimeraX. Register this command in your MCP client:
molcompose-mcp --chimerax-url http://127.0.0.1:3000 --profile assistant
{
"mcpServers": {
"molcompose": {
"command": "molcompose-mcp",
"args": [
"--chimerax-url", "http://127.0.0.1:3000",
"--profile", "assistant"
]
}
}
}
Use the executable's absolute path if your client cannot find it. To generate configuration with the resolved path, run:
molcompose-mcp --chimerax-url http://127.0.0.1:3000 --profile assistant --print-config
Copyable prompts: Connection setup · Verify analysis and preview.
Assistant workflow
| Tool | Use |
|---|---|
open_structure |
Open a supported coordinate file or PDB ID |
inspect_session |
Inspect models, chains and version compatibility first |
analyse_interface |
Analyse a chain pair or request clarification |
load_external_evidence |
Import ΔΔG, energy or RMSF data |
compose_figure |
Apply a preset for the requested view |
render_preview |
Inspect the image before exporting |
export_artifact |
Save the figure, recipe and provenance, with overwrite confirmation |
For structured results, continue only after status: completed; resolve
needs_input, needs_confirmation or failed before retrying. render_preview
returns an image instead, which requires visual inspection. Successful export
alone does not establish figure quality.
For advanced integrations, use --profile expert (29 tools). Omitting
--profile selects all (34 tools). The assistant profile has 7 tools.
See the MCP reference
for individual tools, result fields and safety restrictions.
Importing energy data
Both load_energy and load_external_evidence accept solvation: "pb" or
solvation: "gb". A file containing both methods requires a choice:
{"kind": "energy", "path": "/data/decomp.dat", "model": "#1", "chains": "A:A,B:B", "solvation": "pb"}
This example is for load_external_evidence; omit kind for load_energy.
Match the chain mapping to your structure. Imported energies are not recalculated.
Troubleshooting
- Connection: keep ChimeraX open and use its actual REST port. Call
inspect_sessionto check bundle/bridge compatibility. - Preview or export: use windowed ChimeraX on macOS, not
--nogui. - Missing metric: check
skippedand the required structure or input files. - Overwrite or upload: assistant tools ask for confirmation. For PythiaStudio,
configure
PYTHIASTUDIO_API_KEY; local imports are not uploaded. - Local access: the REST bridge is unauthenticated. Stop it with
remotecontrol rest stopwhen finished. MCP input validation is not a host sandbox.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file molcompose_mcp-0.1.2.tar.gz.
File metadata
- Download URL: molcompose_mcp-0.1.2.tar.gz
- Upload date:
- Size: 92.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90735d9267eb638fbb1cdc099a20069e72d0b39cba688d8034e8a11925c5a59f
|
|
| MD5 |
685acd230cc0bc41b467269a057ada2e
|
|
| BLAKE2b-256 |
3ec9e581083ad32f1d3ac39763a66654de27b19d134abfa2b5ac8d4bd399a5d2
|
Provenance
The following attestation bundles were made for molcompose_mcp-0.1.2.tar.gz:
Publisher:
release.yml on ChiaChunL/MolCompose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molcompose_mcp-0.1.2.tar.gz -
Subject digest:
90735d9267eb638fbb1cdc099a20069e72d0b39cba688d8034e8a11925c5a59f - Sigstore transparency entry: 2758211273
- Sigstore integration time:
-
Permalink:
ChiaChunL/MolCompose@d7e537a152a0769930a7e1868514a2a87d9d6456 -
Branch / Tag:
refs/tags/mcp-v0.1.2 - Owner: https://github.com/ChiaChunL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e537a152a0769930a7e1868514a2a87d9d6456 -
Trigger Event:
push
-
Statement type:
File details
Details for the file molcompose_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: molcompose_mcp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 61.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a3c8eb8ec958bb15343b2c8ee366a5f053b91457c67e0024cd98b8c5f7cffc8
|
|
| MD5 |
293b50b6cd869ed46d3eb433f74b4624
|
|
| BLAKE2b-256 |
167e3dc994e389bf660c77bdbe83e833ac0ba93df251b76af28b09c8e77186ce
|
Provenance
The following attestation bundles were made for molcompose_mcp-0.1.2-py3-none-any.whl:
Publisher:
release.yml on ChiaChunL/MolCompose
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
molcompose_mcp-0.1.2-py3-none-any.whl -
Subject digest:
0a3c8eb8ec958bb15343b2c8ee366a5f053b91457c67e0024cd98b8c5f7cffc8 - Sigstore transparency entry: 2758211284
- Sigstore integration time:
-
Permalink:
ChiaChunL/MolCompose@d7e537a152a0769930a7e1868514a2a87d9d6456 -
Branch / Tag:
refs/tags/mcp-v0.1.2 - Owner: https://github.com/ChiaChunL
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d7e537a152a0769930a7e1868514a2a87d9d6456 -
Trigger Event:
push
-
Statement type: