Wikipedia

live Reference

Search and retrieve Wikipedia articles — summaries, section structure, and random article discovery

5 tools
0ms auth
free tier 50 calls/day

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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/wikipedia/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_wikipedia", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("search and retrieve wikipedia articles — summaries, section structure, and random article discovery");