MCP server exposing PredictLM tabular foundation models as a tool for LLM agents (Claude Desktop, Cursor, Continue, etc.)
Project description
predictlm-mcp
MCP server exposing the PredictLM tabular foundation model as a tool for LLM agents.
Give Claude Desktop, Cursor, Continue.dev, Cody — any MCP client — a calibrated tabular-prediction tool. Drop a CSV in chat, ask "predict who'll churn", get answers back with uncertainty bars. No fine-tuning, no per-dataset training, no hallucinated numbers.
Status: alpha (0.1.0). API likely to evolve based on early-adopter feedback.
Install
pip install predictlm-mcp
Use with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"predictlm": {
"command": "predictlm-mcp",
"args": ["--model", "predictlm-mini-13m", "--device", "cpu"]
}
}
}
Restart Claude Desktop. The tabular_predict and tabular_describe tools are now available to Claude.
Use with Cursor / Continue.dev
Both clients support MCP servers via their MCP config files — point the command at predictlm-mcp.
Tools
tabular_predict
Predict labels for query rows given a context of labeled rows.
Inputs:
context_table(CSV string OR array of objects) — labeled rows including the target columntarget_column(string) — name of the column to predictquery_table(CSV string OR array of objects) — unlabeled rows to predicttask_type(auto|classification|regression, defaultauto)return_uncertainty(bool, defaulttrue)
Returns:
{
"task_type": "classification",
"predictions": ["churn", "stay", "churn", ...],
"class_probabilities": [[0.82, 0.18], ...],
"uncertainty": [0.18, 0.45, 0.12, ...],
"context_n_rows": 200,
"query_n_rows": 50,
"model": {"name": "predictlm-mini-13m", "params": 13500000, "license": "Apache-2.0"}
}
tabular_describe
Inspect the loaded model: name, params, license, supported tasks, recommended context size.
Example agent transcript
User: I dropped customers.csv. Predict next-month churn for the 50 rows in
new_customers.csv. Use the first 200 rows of customers.csv as context.
Claude: (calls tabular_describe — confirms PredictLM-Mini, 13M params)
(calls tabular_predict with context_table=customers.csv[:200],
target_column="churn", query_table=new_customers.csv)
Claude: Of 50 new customers, PredictLM predicts 12 are likely to churn next
month with high confidence (≥0.8 probability), 21 are uncertain
(0.4–0.8), and 17 are likely to stay. The 12 high-confidence churn
predictions share a tenure < 4 months and >2 support tickets in the
last 30 days — that's the dominant signal in the context data.
This is the difference between an LLM hallucinating predictions and an LLM delegating prediction to a calibrated model and reasoning about the result.
Why PredictLM specifically?
- Apache-2.0 open weights — commercial-OK, on-device, HIPAA/SOC2 compliant by deployment
- Calibrated uncertainty — BarDistribution head returns predictive distributions, not just point predictions
- 13M / 26M parameters — runs on a laptop (no GPU required)
- In-context learning — no per-dataset training; just label some context rows
- Distilled from a 26M Base — proven recipe, eval'd on 25 OpenML datasets
License
Apache-2.0. Free for commercial use, including in agent products.
Links
- Homepage: https://zerooneresearch.ai/predictlm/
- Model card (Mini): https://huggingface.co/zerooneresearch/predictlm-mini-13m
- Model card (Base): https://huggingface.co/zerooneresearch/predictlm-base-26m
- Issues: https://github.com/matej-01RAI/predictlm-mcp/issues
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file predictlm_mcp-0.1.0.tar.gz.
File metadata
- Download URL: predictlm_mcp-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76a98bb06946ff0a9cbf2a90fee3e36c604d0d7092037ad05b6f33cf1e538318
|
|
| MD5 |
e1aeb6a942179a2fa5acc523b783ce1a
|
|
| BLAKE2b-256 |
c444340aa956cf1448cfa8fbb408a7a09f7e313247530bb0ecb709f135ca0a39
|
File details
Details for the file predictlm_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: predictlm_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7334f392ab176afd6d190bf123a091afca87d7e3f3bd8a6531f92d5c2b007609
|
|
| MD5 |
a96282b6051554ca0642079cdf6496d5
|
|
| BLAKE2b-256 |
ff9722f90bb3824bd3d8ca98312380c621376c0a01069251edaaabbd7891115e
|