search

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

Free-text search across MedlinePlus topics (or related NLM databases).

Parameters

NameTypeRequiredDescription
querystringyes
dbstringnohealthTopics (default) | healthTopicsSpanish | drug | herb | meshhd | genetic
limitnumberno1-100 (default 10)
retstartnumberno0-based offset
knowledge_response_typestringnoapplication/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

FieldTypeDescription
totalnumberTotal number of matching results across all pages
returnednumberNumber of results in this response
resultsarray
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.

Regenerated from source · build July 6, 2026