stack_get_user

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

Look up a StackExchange user by numeric ID. Returns display name, reputation, badges (gold/silver/bronze counts), location, website, account age, last access, and per-site activity counts (questions/answers). Works on any StackExchange site (default: stackoverflow).

Parameters

NameTypeRequiredDescription
user_idnumberyesThe numeric StackExchange user ID (visible in profile URL, e.g., stackoverflow.com/users/17034 → 17034)
sitestringnoStackExchange site slug (default: stackoverflow). Examples: serverfault, superuser, askubuntu, math, physics

Example call

Arguments

{
  "user_id": 17034
}

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":"stack_get_user","arguments":{"user_id":17034}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('stack_get_user', {
  "user_id": 17034
});

More examples

{
  "user_id": 22656,
  "site": "physics"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "site": {
          "type": "string",
          "description": "StackExchange site slug"
        },
        "user_id": {
          "type": "number",
          "description": "The user ID"
        },
        "found": {
          "type": "boolean",
          "enum": [
            false
          ],
          "description": "User not found"
        },
        "hint": {
          "type": "string",
          "description": "Explanation of why user was not found"
        }
      },
      "required": [
        "site",
        "user_id",
        "found",
        "hint"
      ]
    },
    {
      "type": "object",
      "properties": {
        "site": {
          "type": "string",
          "description": "StackExchange site slug"
        },
        "found": {
          "type": "boolean",
          "enum": [
            true
          ],
          "description": "User was found"
        },
        "user_id": {
          "type": "number",
          "description": "The user ID"
        },
        "display_name": {
          "type": "string",
          "description": "User's display name"
        },
        "reputation": {
          "type": "number",
          "description": "User's reputation score"
        },
        "badges": {
          "type": "object",
          "properties": {
            "gold": {
              "type": "number",
              "description": "Gold badges earned"
            },
            "silver": {
              "type": "number",
              "description": "Silver badges earned"
            },
            "bronze": {
              "type": "number",
              "description": "Bronze badges earned"
            }
          },
          "required": [
            "gold",
            "silver",
            "bronze"
          ]
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's location or null"
        },
        "website_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "User's website URL or null"
        },
        "link": {
          "type": "string",
          "description": "URL to user's profile"
        },
        "user_type": {
          "type": [
            "string",
            "null"
          ],
          "description": "User type (e.g., 'registered') or null"
        },
        "activity": {
          "type": "object",
          "properties": {
            "questions": {
              "type": "number",
              "description": "Number of questions asked"
            },
            "answers": {
              "type": "number",
              "description": "Number of answers given"
            },
            "up_votes": {
              "type": "number",
              "description": "Upvotes received"
            },
            "down_votes": {
              "type": "number",
              "description": "Downvotes received"
            },
            "profile_views": {
              "type": "number",
              "description": "Profile view count"
            }
          },
          "required": [
            "questions",
            "answers",
            "up_votes",
            "down_votes",
            "profile_views"
          ]
        },
        "created": {
          "type": "string",
          "description": "ISO 8601 account creation timestamp"
        },
        "last_access": {
          "type": "string",
          "description": "ISO 8601 last access timestamp"
        },
        "quota_remaining": {
          "type": [
            "number",
            "null"
          ],
          "description": "Remaining API quota or null"
        }
      },
      "required": [
        "site",
        "found",
        "user_id",
        "display_name",
        "reputation",
        "badges",
        "location",
        "website_url",
        "link",
        "user_type",
        "activity",
        "created",
        "last_access",
        "quota_remaining"
      ]
    }
  ]
}

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 June 27, 2026