get_article_sections

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

Get the section outline of a Wikipedia article by title. Returns all headings and hierarchy to navigate content structure.

Parameters

NameTypeRequiredDescription
titlestringyesWikipedia article title (e.g., “World War II”)

Example call

Arguments

{
  "title": "World War II"
}

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_article_sections","arguments":{"title":"World War II"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_article_sections', {
  "title": "World War II"
});

More examples

{
  "title": "Photosynthesis"
}

Response shape

Always returns: title, pageid, sections

FieldTypeDescription
titlestringArticle title
pageidnumberWikipedia page ID
sectionsarrayArray of section headings with hierarchy
Full JSON Schema
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "description": "Article title"
    },
    "pageid": {
      "type": "number",
      "description": "Wikipedia page ID"
    },
    "sections": {
      "type": "array",
      "description": "Array of section headings with hierarchy",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Section heading text (HTML-stripped)"
          },
          "level": {
            "type": "number",
            "description": "Heading level (1-6)"
          },
          "number": {
            "type": "string",
            "description": "Section numbering (e.g., '1.2.3')"
          },
          "anchor": {
            "type": "string",
            "description": "URL anchor/fragment for section"
          }
        },
        "required": [
          "title",
          "level",
          "number",
          "anchor"
        ]
      }
    }
  },
  "required": [
    "title",
    "pageid",
    "sections"
  ]
}

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