search

Pack: mdn-search · Endpoint: https://gateway.pipeworx.io/mdn-search/mcp

Full-text search across MDN content.

Parameters

NameTypeRequiredDescription
querystringyes
localestringnoen-US (default) | fr | es | ja | zh-CN | …
sizenumberno1-100 (default 10)
pagenumberno1-based page

Example call

Arguments

{
  "query": "flexbox layout"
}

curl

curl -X POST https://gateway.pipeworx.io/mdn-search/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"flexbox layout"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search', {
  "query": "flexbox layout"
});

More examples

{
  "query": "async await",
  "locale": "ja",
  "size": 20,
  "page": 1
}

Response shape

FieldTypeDescription
documentsarrayArray of search result documents
metadataobjectSearch metadata
Full JSON Schema
{
  "type": "object",
  "description": "Search results from MDN full-text search",
  "properties": {
    "documents": {
      "type": "array",
      "description": "Array of search result documents",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Document title"
          },
          "slug": {
            "type": "string",
            "description": "MDN document slug"
          },
          "excerpt": {
            "type": "string",
            "description": "Brief excerpt from document"
          },
          "locale": {
            "type": "string",
            "description": "Document locale code"
          },
          "highlight": {
            "type": "object",
            "description": "Search highlight object"
          }
        }
      }
    },
    "metadata": {
      "type": "object",
      "description": "Search metadata",
      "properties": {
        "total": {
          "type": "number",
          "description": "Total number of results"
        },
        "page": {
          "type": "number",
          "description": "Current page number"
        },
        "pages": {
          "type": "number",
          "description": "Total number of pages"
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "mdn-search": {
      "url": "https://gateway.pipeworx.io/mdn-search/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026