enrichment

Pack: string-db · Endpoint: https://gateway.pipeworx.io/string-db/mcp

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, or use one-click install buttons:

{
  "mcpServers": {
    "string-db": {
      "url": "https://gateway.pipeworx.io/string-db/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026