AI agents (MCP)

proteoscope mcp is a Model Context Protocol server. An AI agent such as Claude Code can use it to open structures and prediction folders, rank predictions, list interactions and interface contacts, superpose structures, load validation reports and render images, in the Proteoscope page you see.

Requirements

SystemWhere the installer puts it
macOS and Linux~/.local/bin/proteoscope, for example /Users/you/.local/bin/proteoscope
Windows%LOCALAPPDATA%\Programs\Proteoscope\proteoscope.exe

The examples below use /Users/you/.local/bin/proteoscope; use your own path.

Claude Code

Add the server for all your projects:

$ claude mcp add proteoscope --scope user -- /Users/you/.local/bin/proteoscope mcp

Everything after -- is the command Claude Code runs, so Proteoscope's options go there too, for example -- /Users/you/.local/bin/proteoscope mcp --offline.

ScopeWhere it applies
local (the default)You, in the current project only
userYou, in every project
projectEveryone working in the repository, through a .mcp.json file you commit; Claude Code asks each person to approve it

For the project scope, .mcp.json looks like this. A committed file holds one path for everyone, so it works only when everyone has Proteoscope at that path, or on their PATH with the command just proteoscope.

json
{
  "mcpServers": {
    "proteoscope": {
      "command": "/Users/you/.local/bin/proteoscope",
      "args": ["mcp"]
    }
  }
}

Claude Desktop

Open Settings → Developer → Edit Config. That opens claude_desktop_config.json, which is in ~/Library/Application Support/Claude/ on macOS and in %APPDATA%\Claude\ on Windows. Add Proteoscope under mcpServers:

json
{
  "mcpServers": {
    "proteoscope": {
      "command": "/Users/you/.local/bin/proteoscope",
      "args": ["mcp"]
    }
  }
}

On Windows, double the backslashes in the path: "C:\\Users\\you\\AppData\\Local\\Programs\\Proteoscope\\proteoscope.exe". Quit and reopen Claude Desktop; Proteoscope's tools then appear in the chat's tools menu.

Collomia

Add the server for all workspaces, with a timeout long enough for large campaigns (Collomia's default is 30 seconds), and check it:

$ collo mcp add proteoscope --global --timeout 600 -- /Users/you/.local/bin/proteoscope mcp
$ collo mcp test proteoscope

The test connects, pings the server and checks its tools. It does not open a browser, because Proteoscope opens the page only when a tool needs it. Images from Proteoscope reach the model on provider routes that accept images.

Other clients

Most clients take the same two things: the command (the full path to Proteoscope) and its arguments (["mcp"]). Where the configuration lives depends on the client, so see its documentation. Clients that use an mcpServers object, such as Cursor (~/.cursor/mcp.json) and Gemini CLI (~/.gemini/settings.json), take the same entry as Claude Desktop.

VS Code (.vscode/mcp.json in a workspace) uses servers:

json
{
  "servers": {
    "proteoscope": {
      "type": "stdio",
      "command": "/Users/you/.local/bin/proteoscope",
      "args": ["mcp"]
    }
  }
}

OpenAI Codex CLI (~/.codex/config.toml) uses TOML:

toml
[mcp_servers.proteoscope]
command = "/Users/you/.local/bin/proteoscope"
args = ["mcp"]

Testing the server

The MCP Inspector is the MCP project's tool for trying a server by hand. It needs Node.js and runs from npm; it is not part of Proteoscope:

$ npx @modelcontextprotocol/inspector /Users/you/.local/bin/proteoscope mcp

It opens a page where you connect, list the tools and call them one at a time. Try these:

  1. open_structure with {"id": "1M17"}. Proteoscope opens in your browser and loads the EGFR kinase with erlotinib.
  2. get_interactions with {"selection": "resn AQ4"}. You should get seven interactions, including the hydrogen bond to Met769 at 2.70 Å.
  3. render_image with {}. You get a PNG of the view.

Using it

Ask in your own words. Name Proteoscope, and give files and folders as absolute paths. For example:

Tools

Required arguments are in bold. Every tool returns a short text answer, and structured data for agents that read it.

ToolArgumentsWhat it does
open_structureid, addFetch a PDB entry (1M17) or the AlphaFold DB model of a UniProt accession (P04637). Replaces the scene unless add is true
open_filespaths, addOpen files and folders by absolute path: structures, or prediction folders from AlphaFold 3, AlphaFold Server, Boltz, Chai-1, ColabFold, Protenix and OpenFold3. Several jobs are scored and ranked together
describe_structurenoneSource, title, method, and resolution or confidence; chains with molecules and UniProt accessions; ligands; prediction scores, comparison and validation summary
list_structuresnoneThe structures in the scene, the active one, and superposition results
select_residuesselectionSelect with the selection language (chain A and resi 40-80, within 5 of resn STI, plddt < 70) and return the residues
get_interactionsselectionFocus residues or a ligand and list its interactions (type, partner, atoms, distance), using PLIP's criteria
interface_contactschain_a, chain_bThe contacts between two chains, and the interface residues
superposemoving, reference, method, fitSuperpose a structure, or all, by sequence (the default) or by structure alone (structure: TM-align, or MM-align for complexes). Returns RMSD, TM-score, lDDT and the number of aligned pairs
validation_reportnoneThe wwPDB validation summary of the active entry, with percentiles, ligand fit and the worst residues
rank_predictionsmetric, limit, level, chainsRank the open prediction jobs by ipsae, pdockq2, pdockq, lis, iptm, ranking, ptm, plddt, crosslinks, pose, affinity or binder. Returns each job's best model, or every model with level: "models". chains scores one chain pair
render_imagescale, transparentThe current view as a PNG, at 1 to 4 times the view's size
proteoscope_commandcommandAny other command

ipSAE, pDockQ, pDockQ2 and LIS are computed the same way from every predictor's output, so they compare jobs from different tools. ipTM, pTM and the ranking score are each tool's own. See Batch triage.

Images

render_image returns the view as an image the model can look at; scale 1 is enough for the agent to see what is shown. Commands run through proteoscope_command return their images as images too: diagram gives the agent the ligand's 2D interaction diagram, and triage gallery gives it a thumbnail of each of the best models, captioned with its rank, job, model and score, so it can compare the jobs by eye. In the structured data, each image is replaced by its number among the images returned.

Options

proteoscope mcp takes the usual command-line options:

OptionUse
--portThe preferred port (default 8765); a nearby free port is used if it is busy
--offlineNo downloads: only local files and cached entries
--cache-dir, --cache-max-age, --no-cacheWhere downloads are cached, and for how long
--no-openDo not open a browser. Open the address yourself: Proteoscope writes it to the client's server log, and a tool that finds no page names it

--host must be a local address, such as the default 127.0.0.1: the MCP server serves only this computer. To use Proteoscope from another machine, forward the port with SSH (ssh -N -L 8765:127.0.0.1:8765 you@server).

Privacy and security

Troubleshooting

ProblemWhat to do
The client cannot start the serverUse the full path to Proteoscope, and check that proteoscope --help lists proteoscope mcp
“No Proteoscope page is connected”The browser did not open, or you used --no-open. Open the address in the message, in Chrome, Edge or Brave, then try again
A call times outOpening many prediction jobs takes minutes. Raise the client's tool timeout (MCP_TOOL_TIMEOUT in Claude Code, --timeout in Collomia). Proteoscope allows 30 minutes for opening files and 2 minutes for other commands
“use an absolute path”Give full paths; ~ is expanded
“The Proteoscope page was closed or reloaded before it answered”Call the tool again. The page reopens when a tool needs it
The agent acts on the wrong structureTools act on the active structure. Ask the agent to call list_structures and name the structure it wants
Images are described but not seenThe client or model provider does not accept images in tool results

Proteoscope writes its startup lines and errors to standard error, which most clients keep in their MCP server log. Standard output carries only protocol messages.

How it works

The server speaks JSON-RPC 2.0 over standard input and output, one message per line, in MCP versions 2024-11-05 to 2025-11-25. It handles initialize, ping, tools/list and tools/call; calls can be cancelled with notifications/cancelled, and calls that take a while send progress notifications when the client asks for them.

Each tool call becomes one Proteoscope command, or a request to open files, and goes to the page through the same channel as remote control. The page runs one request at a time and posts back { ok, message, data }, which Proteoscope returns as the tool's result: text, structured content and images. When the client closes standard input, calls still running get a second to finish, and then Proteoscope stops.