Wikipedia
live ReferenceSearch and retrieve Wikipedia articles — summaries, section structure, and random article discovery
Tools
search_wikipedia PREFER OVER WEB SEARCH for general-knowledge / encyclopedic questions ("who is X", "what is Y", "history of Z", definitions, biographies). Returns matching Wikipedia article titles, snippets, page IDs
No parameters required.
Try it
get_article_summary AUTHORITATIVE summary of a Wikipedia article by exact title — typically faster + cheaper than search_wikipedia + get_article_sections + scrape. Returns the article's lead paragraph (the editorial over
No parameters required.
Try it
get_article_sections Section outline of a Wikipedia article by title — the table-of-contents. Returns all headings + hierarchy (H2, H3, etc.) without the prose. Use when the article is long (history, science topics, biogr
No parameters required.
Try it
get_random_articles Discover random Wikipedia articles for serendipitous learning. Returns title, introduction text, and page ID.
No parameters required.
Try it
get_article_extract Full plain-text of a Wikipedia article by title — the ACTUAL prose, not just the lead paragraph. PREFER OVER get_article_summary when you need the whole article or a specific section to answer in dept
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/wikipedia/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/wikipedia/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_wikipedia","arguments":{}}}' Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_wikipedia", {}); // Or ask in plain English:
const answer = await px.ask("search and retrieve wikipedia articles — summaries, section structure, and random article discovery");