string-mcp

string-mcp

MCP server that exposes STRING database functionality, allowing AI agents to resolve protein identifiers, retrieve interaction networks, perform homology lookups, and run functional enrichment analysis.

Category
Visit Server

README

STRING MCP Server

Exposes STRING database functionality as a Model Context Protocol (MCP) server.

This implementation allows AI agents and other MCP-compatible clients to access STRING data through a structured and self-describing interface.

It is built on top of the STRING API but adapted specifically for model-based use, with emphasis on conciseness and context efficiency. The server controls the amount and type of data so that responses stay within the reasoning limits of large language models. It also adapts the structure and adds metadata to support more consistent parsing and interpretation by agentic systems.

The server is also available as a hosted remote MCP endpoint at https://mcp.string-db.org.

For a live demonstration of MCP capabilities, see STRING Chat.

For reproducible workflows and large-scale integration, use the STRING API.

For agentic workflows, use the optional agent skill at skills/string-database/SKILL.md.

Features

  • Resolve protein identifiers to STRING metadata
  • Retrieve interaction networks
  • Cluster and visualize interaction networks
  • Perform homology lookups across species
  • Access evidence links for protein–protein interactions
  • Run functional enrichment analysis (including enrichment plots)
  • Get curated functional annotations for proteins
  • Query proteins by function or disease (GO, KEGG, Reactome, DISEASES etc.)

Requirements

  • Python ≥ 3.10
  • Dependencies (see requirements.txt):
    • fastmcp==2.10.6
    • httpx==0.28.1
    • pydantic==2.11.7

Note: If the server crashes on startup, it is very likely due to an incompatible FastMCP version.


Configuration

The server reads settings from config/server.config (JSON). Example:

{
  "base_url": "https://string-db.org",
  "server_port": 57416,
  "verbosity": "low"
}

Installation

git clone https://github.com/meringlab/string-mcp.git
cd string-mcp
pip install -r requirements.txt

Running

python server.py

Testing

curl -v -H "Accept: text/event-stream" http://localhost:[port]/mcp

You should see a 200 OK response with content-type: text/event-stream.

Note: HTTP requests sent with default headers will trigger anyio.ClosedResourceError and 406 Not Acceptable. This is expected behavior for the MCP streaming protocol and does not indicate a problem.

Docker

  1. Ensure you have a config/server.config file (copy from config/server.config.example if needed):

    cp config/server.config.example config/server.config
    
  2. Build the image:

    docker build -t string-mcp .
    
  3. Run the container:

    Linux/macOS:

    docker run -p 57416:57416 -v $(pwd)/config:/app/config:ro string-mcp
    

    Windows PowerShell:

    docker run -p 57416:57416 -v ${PWD}/config:/app/config:ro string-mcp
    

    Windows Command Prompt:

    docker run -p 57416:57416 -v %cd%/config:/app/config:ro string-mcp
    

    To run in detached mode:

    # Linux/macOS
    docker run -d -p 57416:57416 -v $(pwd)/config:/app/config:ro --name string-mcp-server string-mcp
    
    # Windows PowerShell
    docker run -d -p 57416:57416 -v ${PWD}/config:/app/config:ro --name string-mcp-server string-mcp
    

    The -v flag mounts your local config directory so you can customize settings without rebuilding the image.

    Note: If you don't need to modify the config, you can omit the volume mount and the container will use the default config from the image.

  4. Stop the container (if running in detached mode):

    docker stop string-mcp-server
    docker rm string-mcp-server
    

Note: The Docker container will use the configuration from config/server.config. If this file doesn't exist, the container will copy from server.config.example on first run.

STRING v12.0 is the frozen network release, available under the /v12.0/ path.

License / Citation

The STRING MCP server source code is released under the MIT License.
Associated data and outputs are released under the CC BY 4.0 License.
You are free to use, share, and modify the code with proper attribution.

If you use this code or data in your work, please also cite the latest STRING manuscript.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured