Enables querying and analyzing SQLite databases, including executing SQL queries, listing tables and schemas, and performing data analysis operations on database contents.
MCP Tabular Data Analysis Server
A Model Context Protocol (MCP) server that provides powerful tools for analyzing numeric and tabular data. Works with CSV files and SQLite databases.
Features
Core Tools
Tool | Description |
| List available CSV and SQLite files in the data directory |
| Generate comprehensive statistics for a dataset (shape, types, distributions, missing values) |
| Find outliers using Z-score or IQR methods |
| Calculate correlation matrices between numeric columns |
| Filter data using various operators (eq, gt, lt, contains, etc.) |
| Group data and compute aggregations (sum, mean, count, etc.) |
| Execute SQL queries on SQLite databases |
| List all tables and schemas in a SQLite database |
Advanced Analytics Tools (NEW!)
Tool | Description |
| Create Excel-style pivot tables with flexible aggregations |
| Comprehensive data quality assessment with scores and recommendations |
| Time series analysis with trends, seasonality, and moving averages |
| Create visualizations (bar, line, scatter, histogram, pie, box plots) |
| Join/merge two datasets together (inner, left, right, outer joins) |
| Hypothesis testing (t-test, ANOVA, chi-squared, correlation tests) |
| Automatically discover interesting patterns and insights |
| Export filtered/transformed data to new CSV files |
Installation
Prerequisites
Python 3.10+
uv (recommended) or pip
Install with uv
Install with pip
Usage
Running the Server Directly
Configure with Claude Desktop
Quick Setup:
Find your Claude Desktop config file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add this configuration (replace
/Users/kirondeb/mcp-tabularwith your actual path):
Restart Claude Desktop completely (quit and reopen)
Test it by asking Claude: "Describe the dataset in data/sample_sales.csv"
š For detailed instructions and troubleshooting, see CONNECT_TO_CLAUDE_DESKTOP.md
š For example prompts to try, see TEST_PROMPTS.md
Sample Data
The project includes sample data for testing:
data/sample_sales.csv- Sales transaction datadata/sample.db- SQLite database with customers, orders, and products tables
To create the SQLite sample database:
Path Resolution
Important: All file paths are resolved relative to the project root directory. This means:
Relative paths like
data/sample_sales.csvwork from any working directoryAbsolute paths also work as expected
The server automatically resolves paths relative to where
mcp_tabularis installed
Tool Examples
List Data Files
Discover available data files:
Returns all CSV and SQLite files in the data directory with metadata.
Describe Dataset
Get comprehensive statistics about a dataset:
Returns shape, column types, numeric statistics (mean, std, median, skew, kurtosis), categorical value counts, and a sample preview.
Detect Anomalies
Find outliers in numeric columns:
Supports zscore and iqr methods.
Compute Correlation
Analyze relationships between numeric columns:
Returns full correlation matrix and top correlations ranked by strength.
Filter Rows
Filter data based on conditions:
Operators: eq, ne, gt, gte, lt, lte, contains, startswith, endswith
Group & Aggregate
Group data and compute aggregations:
Query SQLite
Execute SQL queries on databases:
List Tables
Explore SQLite database structure:
Advanced Analytics Examples
Create Pivot Table
Create Excel-style pivot tables for business analysis:
Data Quality Report
Get a comprehensive quality assessment before analysis:
Returns completeness score, duplicate detection, outlier analysis, and an overall quality grade (A-F).
Time Series Analysis
Analyze trends and seasonality in time-based data:
Generate Charts
Create visualizations returned as base64 images:
Supported chart types: bar, line, scatter, histogram, pie, box
Merge Datasets
Combine data from multiple sources:
Statistical Testing
Perform hypothesis tests for data science:
Supported tests: ttest_ind, ttest_paired, chi_squared, anova, mann_whitney, pearson, spearman
Auto Insights
Automatically discover interesting patterns:
Returns insights about correlations, outliers, skewed distributions, missing data, and more.
Export Data
Export filtered data to a new CSV:
Development
Run Tests
Project Structure
License
MIT