search_questions

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

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/search_questions for the schema, then POST the same URL with its arguments for the data.

Search for questions on StackOverflow or any StackExchange site. Returns title, body, score, answer count, tags, and link.

Parameters

NameTypeRequiredDescription
querystringyesSearch query string
sitestringnoStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics
limitnumbernoNumber of results to return (1-20, default 5)

Example call

Arguments

{
  "query": "python async await"
}

curl

curl -X POST https://gateway.pipeworx.io/stackexchange/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_questions","arguments":{"query":"python async await"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('search_questions', {
  "query": "python async await"
});

More examples

{
  "query": "how to install nodejs",
  "site": "askubuntu",
  "limit": 10
}

Response shape

Always returns: site, count, has_more, quota_remaining, questions

FieldTypeDescription
sitestringThe StackExchange site slug used for the search
countnumberNumber of questions returned
has_morebooleanWhether there are more results available
quota_remainingnumber | nullRemaining API quota for this user
questionsarrayArray of search result questions
Full JSON Schema
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string",
      "description": "The StackExchange site slug used for the search"
    },
    "count": {
      "type": "number",
      "description": "Number of questions returned"
    },
    "has_more": {
      "type": "boolean",
      "description": "Whether there are more results available"
    },
    "quota_remaining": {
      "type": [
        "number",
        "null"
      ],
      "description": "Remaining API quota for this user"
    },
    "questions": {
      "type": "array",
      "description": "Array of search result questions",
      "items": {
        "type": "object",
        "properties": {
          "question_id": {
            "type": "number",
            "description": "Unique question identifier"
          },
          "title": {
            "type": "string",
            "description": "Question title"
          },
          "body": {
            "type": [
              "string",
              "null"
            ],
            "description": "Question body HTML content"
          },
          "score": {
            "type": "number",
            "description": "Question score (votes)"
          },
          "answer_count": {
            "type": "number",
            "description": "Number of answers to the question"
          },
          "is_answered": {
            "type": "boolean",
            "description": "Whether the question has an accepted answer"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Question tags"
          },
          "link": {
            "type": "string",
            "description": "URL to the question on StackExchange"
          },
          "view_count": {
            "type": "number",
            "description": "Number of times the question has been viewed"
          },
          "created": {
            "type": "string",
            "description": "ISO 8601 creation timestamp"
          },
          "last_activity": {
            "type": "string",
            "description": "ISO 8601 last activity timestamp"
          }
        },
        "required": [
          "question_id",
          "title",
          "body",
          "score",
          "answer_count",
          "is_answered",
          "tags",
          "link",
          "view_count",
          "created",
          "last_activity"
        ]
      }
    }
  },
  "required": [
    "site",
    "count",
    "has_more",
    "quota_remaining",
    "questions"
  ]
}

Connect

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

{
  "mcpServers": {
    "stackexchange": {
      "url": "https://gateway.pipeworx.io/stackexchange/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 23, 2026