search_questions
Pack: stackexchange · Endpoint: https://gateway.pipeworx.io/stackexchange/mcp
Search for questions on StackOverflow or any StackExchange site. Returns title, body, score, answer count, tags, and link.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search query string |
site | string | no | StackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics |
limit | number | no | Number 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
| Field | Type | Description |
|---|---|---|
site | string | The StackExchange site slug used for the search |
count | number | Number of questions returned |
has_more | boolean | Whether there are more results available |
quota_remaining | number | null | Remaining API quota for this user |
questions | array | Array 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.