get_player
Pack: mlb-stats · Endpoint: https://gateway.pipeworx.io/mlb-stats/mcp
Player biographical profile from the official MLB Stats API. Returns name, number, birth date, age, height, weight, position, bats/throws, and MLB debut date. For season statistics use get_player_stats; for batter-vs-pitcher history use get_matchup.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
person_id | number,string | yes | MLB person/player id (e.g. 660271). |
Example call
Arguments
{
"player_id": 547180
}
curl
curl -X POST https://gateway.pipeworx.io/mlb-stats/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_player","arguments":{"player_id":547180}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_player', {
"player_id": 547180
});
Response shape
| Field | Type | Description |
|---|---|---|
people | array |
Full JSON Schema
{
"type": "object",
"properties": {
"people": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Player ID"
},
"fullName": {
"type": "string",
"description": "Player full name"
},
"link": {
"type": "string",
"description": "API link"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"primaryNumber": {
"type": "string"
},
"birthDate": {
"type": "string",
"description": "YYYY-MM-DD"
},
"currentAge": {
"type": "number"
},
"birthCity": {
"type": "string"
},
"birthCountry": {
"type": "string"
},
"height": {
"type": "string",
"description": "e.g. 6'3\""
},
"weight": {
"type": "number"
},
"active": {
"type": "boolean"
},
"currentTeam": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"name": {
"type": "string"
},
"link": {
"type": "string"
}
}
},
"primaryPosition": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"batSide": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"pitchHand": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"description": {
"type": "string"
}
}
},
"mlbDebutDate": {
"type": "string",
"description": "YYYY-MM-DD"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"mlb-stats": {
"url": "https://gateway.pipeworx.io/mlb-stats/mcp"
}
}
}
See Getting Started for client-specific install steps.