File Analysis MCP Server
About
# File Analysis MCP Server This Model Context Protocol (MCP) server provides tools for reading and writing files, analyzing data (especially CSV files), generating visualizations, and reading PDF files - all accessible to any MCP client like Claude Desktop. ## Features ### File Operations - Read and write text files…
Explore
- Read and write text files securely within authorized directories
- List files in directories matching patterns and get detailed file info
- Extract text content from PDF files, including specific pages
- Read and sample CSV files with detailed statistical analysis
- Visualize data with bar, line, scatter, histogram, and boxplot charts
- Built-in prompts for EDA, data cleaning, and summary reports
- Python 3.10 or higher
- Claude Desktop or another MCP client
export MCP_FILE_ROOTS="~/Documents:~/Desktop:~/Downloads"
3. Install in Claude Desktop:
bashmcp install file_analysis_server.py
```
Once installed, you can ask Claude questions like:
- "Can you list the files in my Documents folder?"
- "Read the content of ~/Documents/example.txt for me"
- "Extract text from my ~/Documents/report.pdf file"
- "Read page 5 of my PDF document"
- "Analyze the data in ~/Downloads/sample.csv"
- "Create a bar chart of the 'Sales' column from my CSV file"
- "Write a summary report of my quarterly_sales.csv file"
This Model Context Protocol (MCP) server provides tools for reading and writing files, analyzing data (especially CSV files), generating visualizations, and reading PDF files - all accessible to any MCP client like Claude Desktop.
Features
File Operations
- Read and write text files securely - List files in directories matching patterns - Get detailed file information (size, creation time, etc.) - Extract text content from PDF filesData Analysis
- Read and sample CSV files - Analyze CSV data with detailed statistics - Visualize data with various plot types (bar, line, scatter, histogram, boxplot)Included Prompts
- Analyze Data File - Comprehensive data analysis - Data Cleaning Steps - Identifying and fixing data issues - Generate Summary Report - Executive summary for stakeholders - Exploratory Data Analysis - Detailed EDA workflowInstallation
Prerequisites
- Python 3.10 or higher - Claude Desktop or another MCP clientSetup
1. Install dependencies:
pip install "mcp[cli]" pandas numpy matplotlib PyPDF2
2. Set up safe directories (optional):
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



