search
Pack: medlineplus · Endpoint: https://gateway.pipeworx.io/medlineplus/mcp
Free-text search across MedlinePlus topics (or related NLM databases).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
db | string | no | healthTopics (default) | healthTopicsSpanish | drug | herb | meshhd | genetic |
limit | number | no | 1-100 (default 10) |
retstart | number | no | 0-based offset |
knowledge_response_type | string | no | application/json (default) | application/xml |
Example call
Arguments
{
"query": "diabetes"
}
curl
curl -X POST https://gateway.pipeworx.io/medlineplus/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"diabetes"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search', {
"query": "diabetes"
});
More examples
{
"query": "aspirin",
"db": "drug",
"limit": 20
}
Response shape
Always returns: total, returned, results
| Field | Type | Description |
|---|---|---|
total | number | Total number of matching results across all pages |
returned | number | Number of results in this response |
results | array |
Full JSON Schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of matching results across all pages"
},
"returned": {
"type": "number",
"description": "Number of results in this response"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rank": {
"type": "number",
"description": "Result ranking position"
},
"url": {
"type": "string",
"description": "URL to the MedlinePlus or NLM resource"
},
"title": {
"type": "string",
"description": "Title of the result"
},
"snippet": {
"type": "string",
"description": "Brief excerpt or summary of the result"
},
"organization": {
"type": "string",
"description": "Organization publishing the resource"
}
}
}
}
},
"required": [
"total",
"returned",
"results"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"medlineplus": {
"url": "https://gateway.pipeworx.io/medlineplus/mcp"
}
}
}
See Getting Started for client-specific install steps.