home / mcp / mcp data analytics server
Un potente servidor de análisis de datos construido con FastMCP que proporciona herramientas especializadas para el procesamiento, análisis y visualización de datos, accesible a través de una interfaz web moderna construida con Streamlit.
Configuration
View docs{
"mcpServers": {
"edwin1719-mcp-data-analytics-server": {
"command": "python",
"args": [
"server.py"
],
"env": {
"OPENAI_API_KEY": "YOUR_API_KEY"
}
}
}
}You run the MCP Data Analytics Server to process, analyze, and visualize data through a web interface. It combines a data-processing backend with a Streamlit frontend so you can upload files, perform statistical analyses, create dynamic tables, and visualize results interactively with Plotly.
Start the MCP server on one terminal to serve data analytics capabilities. In a second terminal, run the Streamlit client to interact with the results through a web UI. Use the available tools to analyze files, generate visualizations, perform data conversions, and fetch external data as needed.
Typical workflows you can perform include: - Analyze a data file to obtain statistics, read properties, and detect types. - Create and read documents for reporting. - Generate interactive charts and tables to explore your dataset. - Convert data between formats such as CSV, JSON, Excel, and Parquet. - Retrieve information from GitHub, scrape web pages, and download files when needed.
Follow these steps to set up the MCP Data Analytics Server locally and start using the client UI.
# Prerequisites
Python 3.8+
# 1. Clone the project
git clone https://github.com/Edwin1719/mcp-data-analytics-server.git
cd mcp-data-analytics-server
# 2. Install dependencies
pip install -r requirements.txt
# 3. Configure API key
cp .env.example .env
# Edit .env and add your OPENAI_API_KEY
# 4. Run the server and the client
# Terminal 1: MCP server
python server.py
# Terminal 2: Streamlit client
streamlit run app.py
# Open in browser
# http://localhost:8501Prerequisites include Python 3.8 or newer and a valid OpenAI API key. The server uses the key to power data processing and natural language interactions. The client UI runs on Streamlit and is accessible via http://localhost:8501 once started.
Store sensitive keys in a secure environment file. Do not commit your OPENAI_API_KEY to version control. The environment variable OPENAI_API_KEY is required to run the server. You can replace YOUR_API_KEY in the configuration with your actual key.
Performs a full analysis of file properties, including size, type, and metadata; provides statistics and detects data types.
Creates new files with specified content and saves them in the designated location.
Reads documents such as PDFs, TXT, and CSV with configurable limits and previews.
Runs statistical analyses on datasets, generating summary statistics and distributions.
Generates advanced pivot tables with aggregations and grouped views.
Creates interactive charts using Plotly (bar, line, etc.) for data exploration.
Performs advanced searches on GitHub to discover relevant data science repositories.
Web scraping with CSS selectors to extract targeted content from web pages.
Downloads files from given URLs for offline use.
Converts data between formats such as CSV, JSON, Excel, and Parquet.