On Oct 16, 2025, at 1:09 PM, Alexis Rohou via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Hi Tom,
Thanks for suggesting test scenarios. See the video captures below. Basically, it can't quite succeed without some help. The basic thing is that I should probably give it a "recipe" for getting the chain annotations at the command line (what would you suggest?). In the case of the opioid receptor it also confused itself and hid all the chains so I had to tell it about that. This is why I think having visual feedback would be very valuable (also, to click on buttons when setting up ISOLDE, which doesn't have every function available at the command line).Ntca (no help; it selects the wrong chain)Ntca (with help - I pointed it to the correct chains, asked it to double-check but I'm not sure it really double-checked or just blindly followed by hint):Opioid receptor (it needed my help there because early on it hid all the chains):
Note that all I've told the MCP so far is how to start, stop chimerax, check if it's still running, list sessions that are running, and how to submit commands. I have given it no additional context to help it use the commands properly (the obvious thing to do would be to tell it about the "help" and "usage" commands, and to point it to the docs). So any success at all is from the LLM's baked-in training.I think by studying a few failure modes and giving it tools to help it work things out, it should work pretty well, eventually.Cheers,Alexis_______________________________________________On Thu, Oct 16, 2025 at 10:16 AM Tom Goddard <goddard@sonic.net> wrote:Hi Alexis,Beautiful! You and AI are in charge of making our end-of-year ChimeraX holiday card!I'm impressed Claude got the right ChimeraX commands. A user on the ChimeraX mailing list several days ago asked about how to color a structure red and said he tried many proposals from ChatGPT and none worked. (They were all using old Chimera syntax "color red #1" instead of ChimeraX "color #1 red").My first thought is when does this fail. What if you try a more realistic use case? For example,Show me trascription factor Ntca in pdb 8h40I'd like to see just the trascription factor bound to the DNA without the polymeraseCould you show those in ribbon style without atomsOr how aboutI'd like to look at how fentanyl interacts with the opioid receptor, PDB 8ef5Could you hide the G proteins? Also hide the antibody.Show the receptor as ribbonShow just one copy of the receptorCan you show the protein residues near fentanyl in stick styleCan you show hydrogen bonds between fentanyl and the protein? How many are there?If the Claude MCP agent could do this I would be blown away.Regarding having the agent control the ChimeraX GUI (push buttons, use menus) when there are no equivalent commands, I think that is not too necessary with ChimeraX because almost every GUI actions has an equivalent command and those commands are echoed to the ChimeraX Log panel, so it is even pretty easy to learn the equivalent commands.TomOn Oct 15, 2025, at 10:25 PM, Alexis Rohou via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Hi Tom,I mocked something up quickly. See demos below, where I'm using Cursor as the MCP client and agent with Claude 4.5 Sonnet as the LLM:Demo 0 (start ChimeraX, open a pdb, color it)Demo 1 (change colors)Demo 2 (change colors again, the JA version)Curious to hear if anyone else is working on something similar. I think getting commands to work nicely should be easy (famous last words?). Next level will be to have the agent interact directly with the GUI, check what is being displayed, and possibly click on buttons when there are no commands to perform specific tasks. There are existing MCPs that I hope will make this feasible.
Cheers,Alexis_______________________________________________On Wed, Oct 15, 2025 at 7:12 PM Tom Goddard <goddard@sonic.net> wrote:Hi Alexis,The UCSF ChimeraX team has not looked at using ChimeraX as an AI agent or at Model Context Protocol (MCP). Your links to github repositories that have tried to hook up AI agents to ChimeraX with MCP were a surprise to me. It would be cool to see a video using an AI agent with ChimeraX.TomOn Oct 15, 2025, at 6:29 PM, Alexis Rohou via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:Hi all,_______________________________________________I would like to use ChimeraX via an agent. Quick googling suggests I'm not the first person to think of this (here, here), but before I dive in I thought I'd check - anyone else actively working on this? Or maybe you have worked on it and hit a roadblock?Cheers,Alexis
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/