search_pubmed

Pack: pubmed · Endpoint: https://gateway.pipeworx.io/pubmed/mcp

Search PubMed biomedical literature by keyword, author, or MeSH term (e.g., “cancer immunotherapy”, “author:Smith J”). Returns PubMed IDs for fetching full details.

Parameters

NameTypeRequiredDescription
querystringyesSearch query (e.g., “CRISPR cancer therapy”, “Smith J[Author]”, “COVID-19[MeSH]“)
limitnumbernoNumber of results to return (1-100, default 10)

Example call

Arguments

{
  "query": "CRISPR cancer therapy"
}

curl

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

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_pubmed', {
  "query": "CRISPR cancer therapy"
});

More examples

{
  "query": "Smith J[Author]",
  "limit": 20
}

Response shape

Always returns: total, returned, query_translation, pmids

FieldTypeDescription
totalnumberTotal number of articles matching the query
returnednumberNumber of articles returned in this result
query_translationstring | nullPubMed’s interpretation of the search query
pmidsarrayList of PubMed IDs matching the query
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "Total number of articles matching the query"
    },
    "returned": {
      "type": "number",
      "description": "Number of articles returned in this result"
    },
    "query_translation": {
      "type": [
        "string",
        "null"
      ],
      "description": "PubMed's interpretation of the search query"
    },
    "pmids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of PubMed IDs matching the query"
    }
  },
  "required": [
    "total",
    "returned",
    "query_translation",
    "pmids"
  ]
}

Connect

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

{
  "mcpServers": {
    "pubmed": {
      "url": "https://gateway.pipeworx.io/pubmed/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026