Skip to main content

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 column
  • target_column (string) — name of the column to predict
  • query_table (CSV string OR array of objects) — unlabeled rows to predict
  • task_type (auto | classification | regression, default auto)
  • return_uncertainty (bool, default true)

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.

Metadata

Release files for predictlm-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for predictlm-mcp 0.1.0
File Size Uploaded Provenance Actions
predictlm_mcp-0.1.0.tar.gz 7.2 kB Without provenance Details for predictlm_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for predictlm-mcp 0.1.0
File Interpreter ABI Platform Actions
predictlm_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for predictlm_mcp-0.1.0-py3-none-any.whl

Total release size: 14.9 kB

Release files / predictlm_mcp-0.1.0.tar.gz

Download URL predictlm_mcp-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
76a98bb06946ff0a9cbf2a90fee3e36c604d0d7092037ad05b6f33cf1e538318
BLAKE2b-256 checksum
How to use checksums
c444340aa956cf1448cfa8fbb408a7a09f7e313247530bb0ecb709f135ca0a39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / predictlm_mcp-0.1.0-py3-none-any.whl

Download URL predictlm_mcp-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7334f392ab176afd6d190bf123a091afca87d7e3f3bd8a6531f92d5c2b007609
BLAKE2b-256 checksum
How to use checksums
ff9722f90bb3824bd3d8ca98312380c621376c0a01069251edaaabbd7891115e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for predictlm-mcp 0.1.0

Provenance

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page