juanmaalt/csv_analyzer_mcp_server
If you are the rightful owner of csv_analyzer_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
CSV Analyzer MCP Server is a lightweight tool designed to analyze CSV datasets and produce structured summaries for language models.
CSV Analyzer MCP Server
A lightweight, modular tool designed to analyze CSV datasets and produce structured summaries suitable for consumption by language models (LLMs) like ChatGPT or Claude.
Features
- CSV Content Analysis: Processes CSV data provided as raw content.
- Data Cleaning: Options to remove duplicate entries and rows with missing values.
- Flexible Output: Returns results in JSON or Markdown format.
- Customizable Delimiters: Supports various CSV delimiters.
Installation
-
Clone the repository:
git clone https://github.com/juanmaalt/csv_analyzer_mcp_server.git cd csv_analyzer_mcp_server
-
Install dependencies using uv:
uv pip install -r requirements.txt
Note: Ensure you have uv installed. If not, refer to the uv installation guide.
Usage
The primary function analyze_csv can be invoked with the following parameters:
- csv_content (str): Raw CSV data as a string.
- delimiter (str): Delimiter used in the CSV (default: ,).
- remove_duplicates (bool): Remove duplicate rows (default: True).
- remove_non_valid_data (bool): Remove rows with missing values (default: True).
- output_format (str): Output format - 'json' or 'markdown' (default: 'json').
Project Structure
csv_analyzer_mcp_server/
āāā core/ # Core functionality
āāā data/ # Sample CSV files
āāā main.py # Entry point
āāā pyproject.toml # Project metadata
āāā uv.lock # Dependency lock file for uv
āāā .gitignore # Git ignore rules
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.