MCP Data Analysis Agent
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., "@MCP Data Analysis AgentRun a statistical test to see if the conversion rate differs between the two landing pages."
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.
π Autonomous Data Analysis System (MCP)
An AI data analyst that answers natural-language questions over CSV / Excel / SQL data. The language model plans and interprets β all computation (SQL, stats, cleaning, charts) runs in deterministic MCP tools, so results are exact, reproducible, and auditable.
Core principle: the LLM never does arithmetic. It reads schemas, chooses which tool to call with which arguments, and turns the returned numbers into business insight.
Architecture
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Streamlit UI (upload Β· chat Β· charts Β· report Β· switch) β
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββ
β Agent host β
β β’ Provider switch (LiteLLM): Ollama Β· Groq Β· Gemini β
β β’ MCP client: MCP tool schemas β OpenAI function calls β
β β’ Loop: plan β call tool β observe β answer β
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββ
β MCP protocol (stdio)
βββββββββββββββββΌβββββββββββββββββββββββββββββββββββββββββββ
β MCP analysis server β
β load Β· profile Β· sql Β· eda Β· clean Β· stats Β· viz Β· reportβ
β Dataset registry Β· Pandas Β· DuckDB Β· SciPy Β· matplotlib β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββSee DESIGN.md for the full design and milestone tracker.
Related MCP server: xtai-mcp-data-analysis
Features
Upload CSV / Excel; DuckDB SQL over your files with no database server.
Automated profiling & EDA β schema, nulls, cardinality, correlations, group aggregates.
Non-destructive cleaning β missing values, duplicates, type casts, outliers (each returns a new versioned dataset).
Statistics β t-test / ANOVA / chi-square, correlation tests, trend analysis, distribution/normality.
Charts β bar, line, scatter, histogram, box, correlation heatmap (PNG).
Self-contained HTML reports with embedded charts.
Pluggable LLM β local Ollama by default, switch to Groq or Gemini free tiers.
Setup
python3 -m venv .venv
source .venv/bin/activate # fish: source .venv/bin/activate.fish
pip install -r requirements.txt
cp .env.example .env # then fill in the provider you wantChoosing a provider (edit .env)
Provider | Setup | Notes |
Ollama (default, local) |
| Free & private; smaller models plan tools less reliably |
Groq (free tier) |
| Fast, strong tool-calling β best for reliable planning |
Gemini (free tier) |
| Large context, strong function-calling |
You can also switch provider live from the sidebar dropdown in the UI.
Run the app
streamlit run ui/streamlit_app.pyThen upload one of the samples in data/ (e.g. sample_sales.csv) and ask
things like "Which region sells the most units, and is the trend rising?" or
"Which plan has the highest churn β build me a report."
Use the MCP server directly (e.g. Claude Desktop)
The server speaks stdio and works with any MCP client:
python -m mcp_server.serverClaude Desktop config:
{ "mcpServers": {
"data-analysis": { "command": "python", "args": ["-m", "mcp_server.server"] }
} }MCP tool catalog
Group | Tools |
Load |
|
Profile |
|
SQL |
|
EDA |
|
Clean |
|
Stats |
|
Viz |
|
Report |
|
Testing
PYTHONPATH="$PWD" pytest -q15 tests spawn the real MCP server over stdio and exercise every tool group; the agent loop is tested with a scripted fake LLM (deterministic, no network).
Project structure
mcp_server/ FastMCP server + registry + tools/
agent/ provider switch (config, providers) + mcp_client + agent loop
ui/ streamlit_app.py
data/ sample datasets + uploads/
reports/ generated charts and HTML reports
tests/ per-milestone test suitesThis server cannot be installed
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
- FlicenseBqualityDmaintenanceAn MCP server that provides data visualization and machine learning tools, featuring automated intent-based pipeline routing for data cleaning and model training. It enables LLMs to process CSV or JSON data to generate visual charts, perform regressions, or execute clustering analysis.Last updated16
- Flicense-qualityDmaintenanceAn MCP server for data analysis and visualization supporting CSV and Excel files. It enables users to generate statistical summaries and create multi-dimensional charts like heatmaps and bar plots through natural language.Last updated
- Alicense-qualityDmaintenanceAI-native data analysis agent as an MCP Server. Connect your Excel files, CSVs, and MySQL databases. Understand business semantics. Query with natural language.Last updatedMIT
- Flicense-qualityDmaintenanceAn MCP server that enables the analysis of CSV and Parquet files by providing tools for statistical summaries, data previews, and structure exploration. It allows users to query local datasets and create sample data using natural language.Last updated
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP server for generating rough-draft project plans from natural-language prompts.
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/SomanGaurav/MCP-Data-Analysis-Agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server