Home / Servers / Public Knowledge / stackexchange_search
Stackexchange search
An MCP tool from the Public Knowledge server, hosted on mcp.hjlabs.in.
Search Stack Overflow (or another Stack Exchange site) for questions: title, score, answer count, whether accepted, tags, dates and link. The anonymous API allows only 300 requests a day for the whole service, so this is limited to about 5 fresh searches a minute and cached for an hour; prefer it for specific error messages.
Name on the gateway: knowledge__stackexchange_search · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
query required | string | Search text or an error message. |
site | string | Site slug. Default "stackoverflow" (others: "superuser", "serverfault", "askubuntu", "unix", "dba", "security"). |
tagged | string | Semicolon-separated tags, e.g. "python;pandas". |
limit | integer | Results (default 10, max 30). |
sort | relevance | votes | activity | creation | Default relevance. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "knowledge__stackexchange_search",
"arguments": {
"query": "…"
}
}Or connect the Public Knowledge server directly, which lists 47 tools including this one:
claude mcp add --transport http hj-knowledge https://mcp.hjlabs.in/mcp/knowledge \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the stackexchange search tool with query set to ….