graphql

Pack: stratz · 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/graphql for the schema, then POST the same URL with its arguments for the data.

Send an arbitrary GraphQL query (with optional variables) directly to the STRATZ API at api.stratz.com/graphql. Use when no named tool covers the data you need. Field names are camelCase and must match the STRATZ schema exactly (e.g. numLastHits, goldPerMinute, constants { gameModes }); a query naming an unknown field fails with “Cannot query field”, so introspect the type ({ __type(name: "MatchPlayerType") { fields { name } } }) before guessing. Requires a STRATZ Bearer token.

Parameters

NameTypeRequiredDescription
querystringyes
variablesobjectno
_apiKeystringyesYour own STRATZ API token (BYO — Pipeworx does not supply one). Free at https://stratz.com/api after Steam sign-in.

Example call

Arguments

{
  "_apiKey": "your-stratz-api-token",
  "query": "query { constants { gameModes { id name } } }"
}

curl

curl -X POST https://gateway.pipeworx.io/stratz/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"graphql","arguments":{"_apiKey":"your-stratz-api-token","query":"query { constants { gameModes { id name } } }"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('graphql', {
  "_apiKey": "your-stratz-api-token",
  "query": "query { constants { gameModes { id name } } }"
});

More examples

{
  "_apiKey": "your-stratz-api-token",
  "query": "query GetPlayer($accountId: Long!) { player(steamAccountId: $accountId) { steamAccount { name } matchCount winCount } }",
  "variables": {
    "accountId": 101270074
  }
}

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 stratz pack
{
  "mcpServers": {
    "stratz": {
      "url": "https://gateway.pipeworx.io/stratz/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 12, 2026