MCP server for advanced baseball analytics (statcast, fangraphs, baseball reference, mlb stats API)
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add mlb-stats -- uv venv~/.codex/config.toml
[mcp_servers.mlb-stats]
command = "uv"
args = ["venv"]
# codex mcp add mlb-stats -- uv venv~/.cursor/mcp.json
{
"mcpServers": {
"mlb-stats": {
"command": "uv",
"args": [
"venv"
]
}
}
}.vscode/mcp.json
{
"servers": {
"mlb-stats": {
"type": "stdio",
"command": "uv",
"args": [
"venv"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mlb-stats": {
"command": "uv",
"args": [
"venv"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mlb-stats": {
"command": "uv",
"args": [
"venv"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"mlb-stats": {
"command": "uv",
"args": [
"venv"
]
}
}
}Remote
claude mcp add --transport http mlb-stats https://mlb-mcp--etweisberg.run.tools~/.codex/config.toml
[mcp_servers.mlb-stats]
url = "https://mlb-mcp--etweisberg.run.tools"
# codex mcp add mlb-stats --url https://mlb-mcp--etweisberg.run.tools~/.cursor/mcp.json
{
"mcpServers": {
"mlb-stats": {
"url": "https://mlb-mcp--etweisberg.run.tools"
}
}
}.vscode/mcp.json
{
"servers": {
"mlb-stats": {
"type": "http",
"url": "https://mlb-mcp--etweisberg.run.tools"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mlb-stats": {
"httpUrl": "https://mlb-mcp--etweisberg.run.tools"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"mlb-stats": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mlb-mcp--etweisberg.run.tools"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"mlb-stats": {
"url": "https://mlb-mcp--etweisberg.run.tools"
}
}
}