IGV MCP Server
This page contains instructions for installing an MCP (Model-Controller-Protocol) server to allow programmatic control of the Integrative Genomics Viewer (IGV) via MCP-compatible clients such as Claude.
Installation#
- Download 'igv.mcpb' from here.
- Install the package in your MCP client (e.g., Claude Desktop) following the client's instructions for installing MCP packages. Instructions for Claude Desktop can be found here. Follow the instructions for installing 'custom desktop extensions'.
- Ensure you have IGV installed and enable the port listener in IGV:
- Open IGV
- Go to
View > Preferences > Advancedand selectEnable port listener
The Claude desktop should now be able to start the IGV MCP server and communicate with IGV. To test ask Claude to "Summarize the tools available to interact with IGV" or similar.
Tools#
The server currently provides 22 tools for interacting with IGV. These are listed below for reference, but it's not necessary to reference these tools explicitly. You can use natural language commands such as "Load the hg38 genome", "Go to locus BRCA1", "Zoom in", "Take a snapshot", etc. and the MCP server will map these to the appropriate tools.
Session Management#
new- Reset IGV to a clean state by unloading all data trackssaveSession- Save the current IGV session
Genome & Data Loading#
genome- Load a reference genome by ID (e.g., hg38, mm10) or file pathload- Load data files (BAM, SAM, VCF, etc.)
Navigation & View Control#
goto- Navigate to a genomic locuszoomin- Zoom in the viewzoomout- Zoom out the view
Track Visualization#
collapse- Collapse track to compact representationsquish- Squish track by reducing row heightexpand- Expand track by increasing row heightsetColor- Set the primary display color for tracks
Region of Interest#
region- Define a region of interest
Alignment Track Organization#
group- Group alignment reads by propertiessort- Sort reads by various criteriaviewAsPairs- Toggle paired-end read visualization mode
Sequence Track#
setSequenceStrand- Set which DNA strand to displaysetSequenceShowTranslation- Toggle translation display
Track Overlay#
overlay- Combine multiple wig tracks into a single overlaid trackseparate- Separate an overlaid wig track into component tracks
Snapshots#
snapshot- Capture a snapshot image of the current IGV viewsnapshotDirectory- Set the directory where snapshots will be savedmaxPanelHeight- Set maximum height for track panels in snapshots