get_random_articles

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

Discover random Wikipedia articles for serendipitous learning. Returns title, introduction text, and page ID.

Parameters

NameTypeRequiredDescription
countnumbernoNumber of random articles to fetch (1-10, default 5)

Example call

Arguments

{
  "count": 3
}

curl

curl -X POST https://gateway.pipeworx.io/wikipedia/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_random_articles","arguments":{"count":3}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_random_articles', {
  "count": 3
});

Response shape

Always returns: articles

FieldTypeDescription
articlesarrayArray of random article summaries
Full JSON Schema
{
  "type": "object",
  "properties": {
    "articles": {
      "type": "array",
      "description": "Array of random article summaries",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Article title"
          },
          "extract": {
            "type": "string",
            "description": "Article introduction text"
          },
          "pageid": {
            "type": [
              "number",
              "null"
            ],
            "description": "Wikipedia page ID or null if unavailable"
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Short description or null if unavailable"
          }
        },
        "required": [
          "title",
          "extract",
          "pageid",
          "description"
        ]
      }
    }
  },
  "required": [
    "articles"
  ]
}

Connect

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

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

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026