Skip to main content

molcompose-mcp

molcompose-mcp on PyPI Supported Python versions PyPI downloads reported by Pepy CI BSD-3-Clause

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_session to check bundle/bridge compatibility.
  • Preview or export: use windowed ChimeraX on macOS, not --nogui.
  • Missing metric: check skipped and 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 stop when finished. MCP input validation is not a host sandbox.

Source and documentation · BSD-3-Clause license

Download files

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

Source Distribution

molcompose_mcp-0.1.2.tar.gz (92.4 kB view details)

Uploaded Source

Built Distribution

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

molcompose_mcp-0.1.2-py3-none-any.whl (61.5 kB view details)

Uploaded Python 3

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

Hashes for molcompose_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 90735d9267eb638fbb1cdc099a20069e72d0b39cba688d8034e8a11925c5a59f
MD5 685acd230cc0bc41b467269a057ada2e
BLAKE2b-256 3ec9e581083ad32f1d3ac39763a66654de27b19d134abfa2b5ac8d4bd399a5d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcompose_mcp-0.1.2.tar.gz:

Publisher: release.yml on ChiaChunL/MolCompose

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

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

Hashes for molcompose_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a3c8eb8ec958bb15343b2c8ee366a5f053b91457c67e0024cd98b8c5f7cffc8
MD5 293b50b6cd869ed46d3eb433f74b4624
BLAKE2b-256 167e3dc994e389bf660c77bdbe83e833ac0ba93df251b76af28b09c8e77186ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for molcompose_mcp-0.1.2-py3-none-any.whl:

Publisher: release.yml on ChiaChunL/MolCompose

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page