Dataset Explorer MCP Server
This server provides tools for exploratory data analysis on CSV datasets via MCP. You can:
Get a dataset overview: feature names, missing-value counts, categorical/numerical columns, and data types.
Check dataset shape (rows and columns).
Compute statistical summaries (mean, median) for numerical features.
Inspect a specific column: data type, missing values, unique values, min/max/mean for numericals; most common values for categoricals.
Analyze a target variable: heuristic classification vs. regression indication and statistics.
Find duplicate rows: count, percentage, and examples.
Analyze missing values: counts, percentages, affected row indices, and handling suggestions.
Find strongly correlated numerical feature pairs (configurable threshold, default 0.8).
Detect outliers using IQR: counts, percentages, row indices, outlier values, and bounds.
Access a dataset exploration guide via resource
dataset://guide.Use the
explore_datasetprompt to guide structured exploration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dataset Explorer MCP ServerAnalyze the dataset and show me missing values and correlations."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dataset Explorer MCP — Version 2
A lightweight Model Context Protocol (MCP) project for exploring CSV datasets through natural-language questions.
Version 1 focused on building the MCP server and testing its tools through MCP Inspector. Version 2 adds a custom MCP client with Google Gemini, allowing the LLM to dynamically choose and use dataset-analysis tools.
Certified Badge
Related MCP server: Vibe Preprocessing and Analysis MCP Server
What It Does
The user selects a CSV dataset at runtime and asks questions in natural language. Gemini sees the tools exposed by the MCP server, decides which tool is appropriate, the custom client executes it, and the result is returned to Gemini for a readable answer.
The client also maintains in-memory conversation context for follow-up questions and includes safeguards to reduce unnecessary or repeated tool calls.
Architecture
User
↓
Google Gemini
↓ chooses tool
Custom MCP Client
↓ MCP
Dataset Explorer Server
↓
Python / Pandas
↓
CSV Dataset
↓
Tool Result → Gemini → UserThe key idea is separation of responsibilities: Gemini handles reasoning and tool selection, the MCP client handles orchestration, and the MCP server provides deterministic dataset capabilities.
MCP Tools
Tool | What it does |
| Returns feature names, data types, missing-value counts, and numerical/categorical columns. |
| Returns the number of rows and columns. |
| Calculates basic statistics such as mean, median, and mode. |
| Summarizes one feature including data type, missing values, unique values, min/max/mean or common categorical values. |
| Analyzes a target variable and heuristically identifies classification or regression. |
| Finds duplicate observations in the dataset. |
| Reports missing-value counts, percentages, affected rows, and basic suggestions. |
| Finds strongly correlated numerical feature pairs above a configurable threshold. |
| Detects numerical outliers using the IQR method. |
Dynamic Tool Selection
The client discovers tools from the MCP server and converts their schemas into Gemini-compatible function declarations.
There are no hardcoded rules such as:
if "outlier" in question:
call_detect_outliers()Instead, Gemini decides which available tool best answers the user's question.
"How many rows are there?"
↓
Gemini chooses dataset_shape
↓
MCP client executes it
↓
Server returns structured result
↓
Gemini produces the final answerConversation Context
Conversation history is maintained in memory during the session, allowing follow-up questions such as "Can this column be used for a machine-learning model?" to refer to a column discussed previously.
The client also limits repeated and unnecessary tool calls so simple questions generally require only the minimum analysis needed.
Project Structure
MCP-Dataset-Explorer/
├── mcp_server.py
├── mcp_client.py
├── README.md
├── pyproject.toml
├── uv.lock
└── .gitignoreRunning the Project
Install the project dependencies and run:
python mcp_client.pyThe client starts the MCP server through stdio, asks for a CSV dataset path, and opens the interactive natural-language query loop.
Tech Stack
Python · Pandas · Model Context Protocol (MCP) · FastMCP · Google Gemini · Google GenAI SDK · uv · MCP Inspector
Current Limitations
The project currently supports CSV datasets and focuses on exploratory analysis rather than training or modifying machine-learning models.
Future Improvements
Add visualizations generated from dataset analysis.
Build a simple web interface on top of the MCP client.
Purpose
This project was built to understand MCP beyond the server side by implementing the complete flow from LLM reasoning → MCP client orchestration → MCP server tools → external data.
Version 1 taught me how to expose capabilities through MCP. Version 2 helped me understand how an LLM-powered application can dynamically discover and use those capabilities.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceEnables autonomous data exploration on .csv-based datasets, providing intelligent insights with minimal effort.2544MIT
- FlicenseNot gradedqualityDmaintenanceEnables users to preprocess, analyze, and visualize CSV data through comprehensive tools for data manipulation, statistical analysis, and graph generation.3
- FlicenseAqualityDmaintenanceEnables comprehensive analysis of CSV files and SQLite databases through tools for statistics, correlations, anomaly detection, pivot tables, time series analysis, visualization, and automated insights discovery.16
- FlicenseAqualityBmaintenanceEnables exploratory data analysis and machine learning on CSV datasets with tools for profiling, missing values, correlation, plotting, model training, and prediction.8
Related MCP Connectors
Paste-your-data analytics: CSV profiling, A/B tests, correlation, growth. 4 of 7 free.
The statistical analyst in your AI chat — validated, citable, re-runnable analysis of your data.
Find novel, statistically validated patterns in tabular data — hypothesis-free.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/khanarmaghanrasheed-18/MCP-Dataset-Explorer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server