query

Pack: mygene-info · Endpoint: https://gateway.pipeworx.io/mygene-info/mcp

Full-text gene query.

Parameters

NameTypeRequiredDescription
querystringyese.g. “BRCA1”, “symbol:TP53 AND taxid:9606”
speciesstringnoNCBI taxonomy id or common name (default human).
fieldsstringnoComma-sep return fields.
sizenumberno1-1000 (default 10).
sortstringno

Example call

Arguments

{
  "query": "BRCA1"
}

curl

curl -X POST https://gateway.pipeworx.io/mygene-info/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{"query":"BRCA1"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('query', {
  "query": "BRCA1"
});

More examples

{
  "query": "symbol:TP53 AND taxid:9606",
  "size": 20
}

Response shape

FieldTypeDescription
hitsarrayArray of gene matches
totalnumberTotal number of matching genes
tooknumberQuery execution time in milliseconds
Full JSON Schema
{
  "type": "object",
  "properties": {
    "hits": {
      "type": "array",
      "description": "Array of gene matches",
      "items": {
        "type": "object",
        "properties": {
          "_id": {
            "type": "string",
            "description": "Gene ID"
          },
          "_score": {
            "type": "number",
            "description": "Search relevance score"
          },
          "symbol": {
            "type": "string",
            "description": "Gene symbol"
          },
          "name": {
            "type": "string",
            "description": "Gene name"
          },
          "taxid": {
            "type": "number",
            "description": "NCBI taxonomy ID"
          }
        }
      }
    },
    "total": {
      "type": "number",
      "description": "Total number of matching genes"
    },
    "took": {
      "type": "number",
      "description": "Query execution time in milliseconds"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mygene-info": {
      "url": "https://gateway.pipeworx.io/mygene-info/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026