search_wikipedia

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

Search Wikipedia for encyclopedic facts, sports event schedules, medal tables, officeholder rosters and biographies. Covers multi-sport games and tournaments edition by edition — Olympics, Asian Games, Commonwealth Games, Pan American Games, SEA Games, World Cup — with per-sport competition schedules, session dates, venues, results and medal tables, each on its own article (“Table tennis at the 2026 Asian Games”, “Athletics at the 2028 Summer Olympics”). Use it when the article title is NOT predictable from the question, to find the exact title, then read the article body with get_article_extract; when the title IS predictable (“Table tennis at the 2026 Asian Games”) skip straight to get_article_extract, since a search snippet is one truncated line. Also the right tool for government composition and officeholder rosters — “current cabinet members of Japan”, “list of ministers and their positions”, “who is in the German government”, “cabinet of 2025” — Wikipedia keeps cabinet, ministry, and government lists current for every country. And for general knowledge: “who is X”, “what is Y”, “history of Z”, definitions. Returns matching article titles, snippets, page IDs, word counts. Chain with get_article_extract for the full text or a single section. Cheaper + more structured than scraping web search results; covers ~7M English articles updated continuously by the Wikipedia community.

Parameters

NameTypeRequiredDescription
querystringyesSearch query, in ENGLISH — this searches the English Wikipedia, and a query in another language returns 0 hits. Translate non-English questions into English keywords first (“日本现任内阁成员名单” → “current Japan cabinet members”).
limitnumbernoNumber of results to return (1-50, default 10)

Example call

Arguments

{
  "query": "artificial intelligence"
}

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":"search_wikipedia","arguments":{"query":"artificial intelligence"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_wikipedia', {
  "query": "artificial intelligence"
});

More examples

{
  "query": "climate change",
  "limit": 5
}
{
  "query": "2026 Asian Games table tennis",
  "limit": 5
}

Response shape

Always returns: total_hits, results

FieldTypeDescription
total_hitsnumberTotal number of matching articles
resultsarrayArray of search result objects
Full JSON Schema
{
  "type": "object",
  "properties": {
    "total_hits": {
      "type": "number",
      "description": "Total number of matching articles"
    },
    "results": {
      "type": "array",
      "description": "Array of search result objects",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Article title"
          },
          "snippet": {
            "type": "string",
            "description": "HTML-stripped preview text"
          },
          "pageid": {
            "type": "number",
            "description": "Wikipedia page ID"
          },
          "wordcount": {
            "type": "number",
            "description": "Word count of article"
          }
        },
        "required": [
          "title",
          "snippet",
          "pageid",
          "wordcount"
        ]
      }
    }
  },
  "required": [
    "total_hits",
    "results"
  ]
}

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 September 10, 2026