query
Pack: mygene-info · Endpoint: https://gateway.pipeworx.io/mygene-info/mcp
Full-text gene query.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | e.g. “BRCA1”, “symbol:TP53 AND taxid:9606” |
species | string | no | NCBI taxonomy id or common name (default human). |
fields | string | no | Comma-sep return fields. |
size | number | no | 1-1000 (default 10). |
sort | string | no |
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
| Field | Type | Description |
|---|---|---|
hits | array | Array of gene matches |
total | number | Total number of matching genes |
took | number | Query 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.