get_enrichment_figure
Return URL of enrichment scatter figure
Query STRING for protein interactions: map identifiers, pull networks and partners at a confidence threshold you set, run GO and pathway enrichment, and get the figures as image URLs.
LABSCO SUMMARY
Every read takes a species and most take required_score, so the same protein set can produce very different networks depending on the confidence cut — that threshold belongs in whatever you write up, not just in the call. get_network_image and get_enrichment_figure return image URLs rather than bytes, with svg, highres and download_image deciding the form, which keeps asking for a picture cheap in context. get_functional_enrichment is the one that accepts background_identifiers, and supplying it is the difference between enrichment against the whole genome and enrichment against the set you actually assayed.
A STRING database client with 11 tools covering identifier mapping, interaction networks and partners, functional annotation and enrichment, homology, and the rendered network and enrichment figures.
Nothing — no account, no key.
One command — pip install string-mcp
USE CASES
Mapping first avoids the silent failure where an unrecognised identifier simply drops out of a network, and the version read pins the answer to a release.
The confidence threshold and the network type decide what an edge means here, and the enrichment statistic says whether the network is denser than chance.
Supplying the background set is what makes the test about your experiment rather than about the genome, and the figure comes back as a URL.
Homology within a species and the best match against a second species are separate calls, and both expect mapped identifiers.
Both image tools return a URL rather than bytes, so requesting a picture costs nothing in context — and the version read is what makes it citable.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
get_enrichment_figureReturn URL of enrichment scatter figure
get_functional_annotationRetrieve all functional annotations for proteins.
get_functional_enrichmentPerform GO / pathway enrichment on a protein set.
get_homologyGet homology information for proteins.
get_homology_bestGet best homology matches for proteins.
get_interaction_partnersRetrieve interaction partners for given proteins.
get_network_imageReturn URL of STRING network image
get_network_interactionsRetrieve STRING interaction edges.
get_ppi_enrichmentGet protein-protein interaction enrichment statistics.
get_version_infoReturn the current STRING database version.
map_identifiersMap protein identifiers to STRING IDs.
BEFORE YOU INSTALL
11 tools when we connected. The documentation's tool list is out of date. get_protein_similarity is not available; get_homology and get_homology_best are, and get_enrichment_figure is undocumented.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 11 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
git clone https://github.com/MCPmed/STRINGmcp
cd STRINGmcp
pip install -e .pip install string-mcp{
"mcpServers": {
"string-mcp": {
"command": "string-mcp",
"env": {}
}
}
}string-mcp has to be on the client's PATH; otherwise use its full path inside the Python environment you installed into.