graphql
Pack: stratz · Endpoint: https://gateway.pipeworx.io/stratz/mcp
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
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | |
variables | object | no | |
_apiKey | string | yes | Your 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, or use one-click install buttons:
{
"mcpServers": {
"stratz": {
"url": "https://gateway.pipeworx.io/stratz/mcp"
}
}
}
See Getting Started for client-specific install steps.