USDA's best prediction of dairy lactation yields (BESTPRED) as tools any AI agent can call: an MCP server for Claude, ChatGPT, Codex, Cursor, VS Code and Gemini CLI.
pip install bestpred-mcp Copy PIP instructions
It is an MCP server. MCP is the open standard agents use for tools, so the same server works in Claude, ChatGPT and Codex, Cursor, VS Code and Gemini CLI.
You need uv (it runs the server; nothing else to install).
uvx bestpred-mcp Claude Code: claude mcp add bestpred -- uvx bestpred-mcp
Claude Desktop, Cursor, Gemini CLI: add to the app's MCP settings file:
{ "mcpServers": { "bestpred": { "command": "uvx", "args": ["bestpred-mcp"] } } } VS Code (.vscode/mcp.json): { "servers": { "bestpred": { "command": "uvx", "args": ["bestpred-mcp"] } } }
Codex plugin (with the skill): codex plugin marketplace add padge01/bestpred-python, then install BESTPRED from the Plugins tab.
Codex, the server alone (~/.codex/config.toml):
Pounds by default; pass units: "kg" for kilograms. With no herd average given, the breed average is used.
Run this way, the server runs on your computer: your files are read there and the table is written there. What your agent shows the AI model (the summary it reads back) goes to that model's company, as everything in a chat does.
bestpred-mcp --http serves the same tools over HTTP for hosting. Hosted, it reads no files, keeps nothing, and takes at most 5,000 lactations a call.
Apache-2.0. BESTPRED is USDA-ARS public-domain work (VanRaden; Cole and VanRaden); this is not affiliated with or endorsed by USDA. See the main repository's NOTICE.
ai agents best prediction dairy dhi lactation mcp
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.




