search_wikipedia

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

Search Wikipedia for articles by keyword. Returns matching titles, snippets, page IDs, and word counts. Use get_article_summary to read full content.

Parameters

NameTypeRequiredDescription
querystringyesSearch query
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
}

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 May 9, 2026