enrichment

Pack: string-db · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/enrichment for the schema, then POST the same URL with its arguments for the data.

Functional enrichment (GO, KEGG, Pfam, Reactome, …) for a gene set.

Parameters

NameTypeRequiredDescription
identifiersarrayyes
itemsstringno
speciesnumberno

Example call

Arguments

{
  "identifiers": [
    "9606.ENSP00000269305",
    "9606.ENSP00000005339",
    "9606.ENSP00000138641"
  ]
}

curl

curl -X POST https://gateway.pipeworx.io/string-db/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"enrichment","arguments":{"identifiers":["9606.ENSP00000269305","9606.ENSP00000005339","9606.ENSP00000138641"]}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('enrichment', {
  "identifiers": [
    "9606.ENSP00000269305",
    "9606.ENSP00000005339",
    "9606.ENSP00000138641"
  ]
});

More examples

{
  "identifiers": [
    "9606.ENSP00000269305"
  ],
  "species": 10090
}

Response shape

Always returns: items, count

FieldTypeDescription
itemsarray
countintegerNumber of items returned.
Full JSON Schema
{
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "description": "Enrichment category (GO, KEGG, Pfam, Reactome, etc.)"
          },
          "term_id": {
            "type": "string",
            "description": "Database term identifier"
          },
          "term_description": {
            "type": "string",
            "description": "Term name or description"
          },
          "number_of_genes": {
            "type": "number",
            "description": "Number of genes in term"
          },
          "number_of_genes_in_background": {
            "type": "number",
            "description": "Total genes in background"
          },
          "ncbiTaxonId": {
            "type": "number",
            "description": "NCBI taxonomy ID"
          },
          "inputGeneCount": {
            "type": "number",
            "description": "Number of input genes in term"
          },
          "preferredNames": {
            "type": "string",
            "description": "Gene names in term (comma-separated)"
          },
          "pvalue": {
            "type": "number",
            "description": "Statistical p-value"
          },
          "fdr": {
            "type": "number",
            "description": "False discovery rate"
          }
        }
      }
    },
    "count": {
      "type": "integer",
      "description": "Number of items returned."
    }
  },
  "required": [
    "items",
    "count"
  ]
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the string-db pack
{
  "mcpServers": {
    "string-db": {
      "url": "https://gateway.pipeworx.io/string-db/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026