fantrax-mcp
Fantasy baseball MCP server for Fantrax. Exposes roster analysis, lineup optimization, MLB game context, FanGraphs projections, and a multi-agent recommendation ledger via the Model Context Protocol (streamable HTTP).
Power your agent
Install from the publisher. Not a PlugMCP endpoint.
Host a copy with our keys and logs.
No packaged release in the registry yet. Follow the repository README.
Remote URL or a command on your machine? How the two installs differ
Run on PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
LaunchFrom the publisher
Fantasy baseball MCP server for Fantrax. Exposes roster analysis, lineup optimization, MLB game context, FanGraphs projections, and a multi-agent recommendation ledger via the Model Context Protocol (streamable HTTP).
Fantasy baseball MCP server for Fantrax — roster analysis, waiver wire suggestions, lineup optimization
Copy the example config and fill in your values:
cp config.toml.example config.toml
The config requires:
fantrax.user_secret_id -- your Fantrax API secret (find under account settings or extract from authenticated requests)[[leagues]] -- one or more league entries with id, name, league_type, lineup, and optional keeper flagprojections.source -- FanGraphs projection system (steamer, zips, atc, thebat, thebatx)server.bind_addr -- bind address (127.0.0.1 for local, 0.0.0.0 for containers)server.port and server.db_path -- port and SQLite database pathSee config.toml.example for all fields with comments.
cargo build --release
./target/release/fantrax-mcp --config config.toml
CLI options:
-c, --config <PATH> Path to TOML config file [default: config.toml]
-p, --port <PORT> Override server port from config
--bind-addr <ADDR> Override bind address (e.g. 0.0.0.0 for containers)
--db-path <PATH> Override database path from config
--max-sessions <N> Maximum concurrent MCP sessions [default: 10]
--idle-timeout-secs <N> Idle session timeout in seconds, 0 to disable [default: 14400]
-V, --version Print version
-h, --help Print help
The server starts on http://<bind_addr>:<port> with:
GET /healthz -- liveness probeGET /readyz -- readiness probe (verifies DB access)/mcp -- MCP streamable HTTP endpointdocker build -t fantrax-mcp .
docker run -p 3001:3001 -v ./config.toml:/config.toml:ro fantrax-mcp
Or with a custom db path mounted:
docker run -p 3001:3001 \
-v ./config.toml:/config.toml:ro \
-v fantrax-data:/data \
fantrax-mcp --config /config.toml
Set RUST_LOG to control log verbosity:
RUST_LOG=info ./target/release/fantrax-mcp
RUST_LOG=fantrax_mcp=debug,tower_http=info ./target/release/fantrax-mcp
Connect any MCP client to http://127.0.0.1:3001/mcp using the streamable HTTP transport. Example Claude Code configuration:
{
"mcpServers": {
"fantrax": {
"type": "streamable-http",
"url": "http://127.0.0.1:3001/mcp"
}
}
}
See docs/design/ for full design documents:
problem.md -- problem space and user storiesrequirements.md -- functional and non-functional requirementsarchitecture.md -- system architecture, data flow, module breakdownLicensed under either of Apache License, Version 2.0 or MIT license at your option.
Fantasy baseball MCP server for Fantrax — roster analysis, waiver wire suggestions, lineup optimization
Tools
No tool list yet. Remote servers get one after the first health check.
FAQ
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
No required environment variable is listed on this record.
Fantrax runs locally over stdio.
Last checked 2026-10-28. Fantasy baseball MCP server for Fantrax — roster analysis, waiver wire suggestions, lineup optimization