mlb_player
Pack: mlb-stats · 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/mlb_player for the schema, then POST the same URL with its arguments for the data.
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 mlb_player_stats; for per-game form use mlb_player_game_log; for batter-vs-pitcher history use mlb_matchup.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
person_id | number,string | yes | MLB person/player id (e.g. 660271). |
Example call
Arguments
{
"person_id": 660271
}
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":"mlb_player","arguments":{"person_id":660271}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('mlb_player', {
"person_id": 660271
});
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 mlb-stats pack
{
"mcpServers": {
"mlb-stats": {
"url": "https://gateway.pipeworx.io/mlb-stats/mcp"
}
}
}
See Getting Started for client-specific install steps.