Wikipedia
live ReferenceSearch and retrieve Wikipedia articles — summaries, section structure, and random article discovery
4 tools
0ms auth
free tier 50 calls/day
Tools
search_wikipedia
required: query Search Wikipedia articles by keyword. Returns title, snippet, page ID, and word count for each result.
Parameters
Name Type Description
query req string Search query limit opt number Number of results to return (1-50, default 10) Try it
Response
get_article_summary
required: title Get a summary for a Wikipedia article by title. Returns the introduction extract, description, thumbnail URL, and content URLs.
Parameters
Name Type Description
title req string Wikipedia article title (e.g., "Albert Einstein") Try it
Response
get_article_sections
required: title Get the section structure (table of contents) of a Wikipedia article by title.
Parameters
Name Type Description
title req string Wikipedia article title (e.g., "World War II") Try it
Response
get_random_articles Get random Wikipedia articles. Returns title, extract, and page ID for each article.
Parameters
Name Type Description
count opt number Number of random articles to fetch (1-10, default 5) Try it
Response
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":{"query": "hello"}}}' 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", {"query":"example"}); ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("search and retrieve wikipedia articles — summaries, section structure, and random article discovery");