Get the FREE Ultimate OpenClaw Setup Guide →

STRING-db

A comprehensive Model Context Protocol (MCP) server for accessing the STRING protein interaction database. This server provides powerful tools for protein network analysis, functional enrichment, and comparative genomics through the STRING API.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio augmented-nature-string-db-mcp-server node /path/to/string-server/build/index.js

How to use

This MCP server exposes the STRING protein interaction data via six main tools and six resource templates. The tools include get_protein_interactions for fetching direct partners with confidence scores and evidence types; get_interaction_network to construct and analyze networks for multiple proteins; get_functional_enrichment for GO, KEGG, and other annotations; get_protein_annotations for detailed protein information; find_homologs to locate homologous proteins across species; and search_proteins to query proteins by name or identifier across species. These tools feed into the six resource templates, delivering string://network, string://enrichment, string://interactions, string://homologs, string://annotations, and string://species data streams that you can query or embed in your workflows.

To use the server, you typically load it into your MCP frontend or Claude-style environment by specifying the executable and path to the built server. For example, you would point your client at node /path/to/string-server/build/index.js and call the provided tools with appropriate protein identifiers or protein sets. The server integrates with the STRING REST API to fetch interaction data, annotations, and cross-species homology, and it supports several evidence types with confidence scores to help you filter results for downstream analyses.

How to install

Prerequisites:

  • Node.js (v14+ recommended) and npm
  • Access to the internet to install dependencies from npm registry
  • A working MCP client or environment to host the MCP server

Installation steps:

  1. Clone the repository or download the release: git clone https://github.com/Augmented-Nature/STRING-db-MCP-Server.git cd STRING-db-MCP-Server

  2. Install dependencies: npm install

  3. Build the server (if a build step exists per project): npm run build

  4. Run the server in development or production mode as appropriate:

    Development

    npm run dev

    Production (assuming build output exists)

    npm start

  5. Point your MCP client at the server entry point, for example:

    • Command: node
    • Args: ["/path/to/string-server/build/index.js"]

Optional configuration:

  • Configure environment variables for STRING API access if required by the server (e.g., API keys, rate limits).
  • Adjust server listening port and host in your MCP orchestration if supported by your deployment environment.

Additional notes

Tips and caveats:

  • Ensure you have network access to the STRING API and that any required API keys or rate-limiting considerations are handled by the environment running the MCP server.
  • The server outputs data streams via the defined string:// templates; validate that your MCP client properly handles large networks or enrichment results to avoid timeouts.
  • When performing large enrichment analyses, consider using batch queries and caching intermediate results to minimize repeated API calls.
  • If you encounter errors with protein identifiers, verify they match STRING's accepted formats (e.g., UniProt IDs, gene symbols per species) and consider pre-normalizing inputs.
  • Monitor resource usage (memory/CPU) for big network construction tasks and enable appropriate logging for debugging.

Related MCP Servers

Sponsor this space

Reach thousands of developers