user_profile

Pack: leetcode · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

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

Fetch a LeetCode user’s public profile by username via GraphQL; returns real name, bio, avatar, global ranking, country, company, school, and star rating.

Parameters

NameTypeRequiredDescription
usernamestringyes

Example call

Arguments

{
  "username": "john_doe"
}

curl

curl -X POST https://gateway.pipeworx.io/leetcode/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"user_profile","arguments":{"username":"john_doe"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('user_profile', {
  "username": "john_doe"
});

More examples

{
  "username": "algorithm_master"
}

Response shape

FieldTypeDescription
matchedUserobject
Full JSON Schema
{
  "type": "object",
  "properties": {
    "matchedUser": {
      "type": "object",
      "properties": {
        "username": {
          "type": "string",
          "description": "LeetCode username"
        },
        "profile": {
          "type": "object",
          "properties": {
            "realName": {
              "type": [
                "string",
                "null"
              ],
              "description": "User's real name"
            },
            "aboutMe": {
              "type": [
                "string",
                "null"
              ],
              "description": "User bio or about section"
            },
            "userAvatar": {
              "type": [
                "string",
                "null"
              ],
              "description": "Avatar URL"
            },
            "ranking": {
              "type": [
                "number",
                "null"
              ],
              "description": "User's global ranking"
            },
            "countryName": {
              "type": [
                "string",
                "null"
              ],
              "description": "User's country"
            },
            "company": {
              "type": [
                "string",
                "null"
              ],
              "description": "User's company"
            },
            "school": {
              "type": [
                "string",
                "null"
              ],
              "description": "User's school"
            },
            "websites": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              },
              "description": "User's websites"
            },
            "starRating": {
              "type": [
                "number",
                "null"
              ],
              "description": "User's star rating"
            }
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the leetcode pack
{
  "mcpServers": {
    "leetcode": {
      "url": "https://gateway.pipeworx.io/leetcode/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 5, 2026