TabPFN MCP Server

TabPFN MCP Server

Enables AI assistants to train and run TabPFN models for tabular classification and regression tasks via the TabPFN API.

Category
Visit Server

README

TabPFN MCP Server

An MCP server that gives AI assistants the ability to train and run TabPFN models for tabular classification and regression tasks.

This server uses tabpfn-client to call the TabPFN API; no model training or inference is performed locally.

Please note that server-side, remote training and inference is performed when calling the TabPFN API using their client. This involves data transfer to Prior Labs' servers. Refer to TabPFN's privacy policy for details. See this note in the TabPFN client README regarding data privacy and compliance.

What it does

This server exposes two tools to MCP-compatible AI assistants:

  • train_and_predict_classification - Train a classifier and get predictions with probabilities
  • train_and_predict_regression - Train a regressor and get predictions

Both tools accept CSV files, automatically detect headers and whether test data has labels, compute metrics when labels are available, and can write predictions to output files.

Installation

# Clone and install
git clone https://github.com/yourusername/tabpfn-mcp.git
cd tabpfn-mcp
uv pip install -e .

Authentication

TabPFN requires an API token. The server automatically triggers browser-based login on first use if no credentials are cached.

To use a token explicitly, set the TABPFN_TOKEN environment variable in your MCP config (see examples below).

Setup

VS Code Copilot

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "tabpfn-mcp": {
      "command": "uv",
      "args": ["run", "tabpfn-mcp"]
    }
  }
}

Claude Code

claude mcp add tabpfn-mcp -- uv run tabpfn-mcp

Claude Desktop

Add the following to your claude_desktop_config.json file. The path to this file can be found in Claude Desktop under Settings > Developer > Local MCP servers > Edit Config.

{
  "mcpServers": {
    "tabpfn": {
      "command": "uv",
      "args": ["run", "tabpfn-mcp"]
    }
  }
}

Restart Claude Desktop after saving.

Example prompts

Once configured, you can ask the AI assistant to analyze your data. You need to provide locations to two CSV files, one each for the training set and the test set. The last column in the training set needs to contain the target values (labels). In case the test set also contains labels, model performance metrics are computed in addition to generating predictions.

Classification:

Train a TabPFN classifier on data/train.csv and predict labels for data/test.csv.
Save predictions to output/predictions.csv.

Regression:

I have housing data in housing_train.csv with price as the target.
Predict prices for housing_test.csv using TabPFN and save to predicted_prices.csv.

Development

# Install dev dependencies
uv pip install -e ".[dev]"

# Set up pre-commit hooks
uv run pre-commit install

# Run tests
uv run pytest

Disclaimer

This MCP server is a client wrapper only. All data processing, training, and inference is performed by Prior Labs' TabPFN API on their servers. As the developer of this MCP server, I assume no responsibility for how data is handled, processed, or stored by the TabPFN service. Users must review and accept TabPFN's privacy policy and terms of service.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured