Articles CLI Documentation¶
The Articles CLI module provides commands for searching and retrieving biomedical research articles using the PubTator3 API.
API Documentation: For details about the underlying API, see the PubTator3 API Documentation.
Tip: Use the
--help
flag with any command (e.g.,biomcp article search --help
) to see the most up-to-date options directly from the tool.
Search Command (search
)¶
Search for biomedical research articles based on various filters.
Usage¶
Options¶
-g, --gene TEXT
: Gene name to search for (e.g., BRAF). Can be specified multiple times.-v, --variant TEXT
: Genetic variant to search for (e.g., "BRAF V600E"). Can be specified multiple times.-d, --disease TEXT
: Disease name to search for (e.g., Melanoma). Can be specified multiple times.-c, --chemical TEXT
: Chemical or drug name to search for (e.g., Vemurafenib). Can be specified multiple times.-k, --keyword TEXT
: Additional keyword to search for. Can be specified multiple times.-j, --json
: Render output in JSON format instead of Markdown.--help
: Show help message and exit.
Examples¶
Search for articles about the BRAF gene:
Search for articles about the BRAF V600E mutation in melanoma:
Search with multiple gene filters:
Get results as JSON:
Get Command (get
)¶
Retrieve detailed information (abstract, metadata) for specific articles using their PubMed IDs (PMIDs).
Usage¶
Arguments¶
PMIDS
: One or more PubMed IDs (integers) of the articles to retrieve. [required]
Options¶
-f, --full
: Attempt to retrieve full text if available via the API (Abstract is always retrieved). [default: False]-j, --json
: Render output in JSON format instead of Markdown.--help
: Show help message and exit.
Examples¶
Get article abstract by PMID:
Get multiple articles:
Get full text (if available):
Get results as JSON: