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

NameTypeDescription
query requiredstringSearch text or an error message.
sitestringSite slug. Default "stackoverflow" (others: "superuser", "serverfault", "askubuntu", "unix", "dba", "security").
taggedstringSemicolon-separated tags, e.g. "python;pandas".
limitintegerResults (default 10, max 30).
sortrelevance | votes | activity | creationDefault 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:

call_tool arguments
{
  "name": "knowledge__stackexchange_search",
  "arguments": {
    "query": "…"
  }
}

Or connect the Public Knowledge server directly, which lists 47 tools including this one:

Run in your terminal
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 ….

More from Public Knowledge