MCP server exposing stats-compass-core tools to LLMs like ChatGPT, Claude, and Gemini
Project description
stats-compass-mcp
MCP server that exposes stats-compass-core tools to LLMs like ChatGPT, Claude, and Gemini.
What is this?
This package turns the stats-compass-core toolkit into an MCP (Model Context Protocol) server. Once running, any MCP-compatible client (ChatGPT, Claude, Cursor, VS Code, etc.) can use your data analysis tools directly.
Installation
pip install stats-compass-mcp
Quick Start
Start the server
stats-compass-mcp serve
Configure your MCP client
For Claude Desktop (Recommended)
The easiest way to run this server is using uvx (part of the uv toolkit), which downloads and runs the server in an isolated environment without installation.
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"stats-compass": {
"command": "uvx",
"args": ["stats-compass-mcp", "serve"]
}
}
}
Manual Installation
If you prefer to install it globally:
pip install stats-compass-mcp
Then configure your client:
{
"mcpServers": {
"stats-compass": {
"command": "stats-compass-mcp",
"args": ["serve"]
}
}
}
Available Tools
Once connected, the following tools are available to LLMs:
Data Loading & Management
load_csv- Load CSV files into stateload_dataset- Load built-in sample datasetslist_dataframes- List all DataFrames in stateget_schema- Get column types and infoget_sample- Preview rows from a DataFrame
Data Cleaning
dropna- Remove missing valuesapply_imputation- Fill missing valuesdedupe- Remove duplicate rowshandle_outliers- Detect and handle outliers
Transforms
filter_dataframe- Filter rows by conditiongroupby_aggregate- Group and aggregate datapivot- Pivot tablesadd_column- Add calculated columnsrename_columns- Rename columnsdrop_columns- Remove columns
EDA & Statistics
describe- Summary statisticscorrelations- Correlation matrixhypothesis_tests- T-tests, chi-square, etc.data_quality- Data quality report
Visualization
histogram- Distribution plotsscatter_plot- Scatter plotsbar_chart- Bar chartslineplot- Line plots
Machine Learning
train_linear_regression- Linear regressiontrain_logistic_regression- Logistic regressiontrain_random_forest_classifier- Random forest classificationtrain_random_forest_regressor- Random forest regressionevaluate_model- Model evaluation metrics
Time Series (ARIMA)
check_stationarity- ADF/KPSS testsfit_arima- Fit ARIMA modelsforecast_arima- Generate forecastsfind_optimal_arima- Auto parameter search
How It Works
┌─────────────────────────────────────────────────────────────┐
│ MCP Client │
│ (ChatGPT, Claude, Cursor, VS Code) │
└─────────────────────────┬───────────────────────────────────┘
│ MCP Protocol
▼
┌─────────────────────────────────────────────────────────────┐
│ stats-compass-mcp │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ MCP Server (this package) │ │
│ │ • Registers tools from stats-compass-core │ │
│ │ • Manages DataFrameState per session │ │
│ │ • Converts tool results to MCP responses │ │
│ └─────────────────────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌─────────────────────────────────────────────────────┐ │
│ │ stats-compass-core (PyPI) │ │
│ │ • DataFrameState (server-side state) │ │
│ │ • 40+ deterministic tools │ │
│ │ • Pydantic schemas for all inputs/outputs │ │
│ └─────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Development
# Clone and install
git clone https://github.com/oogunbiyi21/stats-compass-mcp.git
cd stats-compass-mcp
poetry install
# Run tests
poetry run pytest
# Run the server locally
poetry run stats-compass-mcp serve
Related Projects
- stats-compass-core - The underlying toolkit
- stats-compass - Streamlit chat UI for data analysis
License
MIT
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 stats_compass_mcp-0.1.5.tar.gz.
File metadata
- Download URL: stats_compass_mcp-0.1.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ecb665d2ad2fa947761bcf51b43aa8e2b1cd485e7b6a3954779f905a402a001
|
|
| MD5 |
0bc9d3658a7d34c54aa43f82a2b9e3e0
|
|
| BLAKE2b-256 |
fddc70dbfb159f55d7ee9455df327901384c994a509633621371a9510e612bdd
|
File details
Details for the file stats_compass_mcp-0.1.5-py3-none-any.whl.
File metadata
- Download URL: stats_compass_mcp-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.12.5 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c3d79fdfd1e22548004baf7d60b384c86cd2e3675209e1ce844b8f1f5dcdc3a
|
|
| MD5 |
1b5664b196f416f2b23bafd23c6e1276
|
|
| BLAKE2b-256 |
5b696aa567556d6a172f3c64d2aa4ad943f7f16f0d8d62be830a2c9c188166e8
|