Perform advanced CSV analysis and generate insights using Google's Gemini AI. Requires Gemini and Plotly API keys.
A powerful Model Context Protocol (MCP) server that provides advanced CSV analysis and thinking generation capabilities using Google's Gemini AI. This tool integrates seamlessly with Claude Desktop and offers sophisticated data analysis, visualization, and natural language processing features.
analyze-csv
)basic
: Quick overview and essential statisticsdetailed
: In-depth analysis with advanced insightsvisualize-data
)basic
: Automatic visualization selection based on data typesadvanced
: Complex multi-variable visualizationscustom
: User-defined chart configurationsgenerate-thinking
)git clone [your-repo-url]
cd mcp-csv-analysis-gemini
npm install
.env
file:GEMINI_API_KEY=your_api_key_here
npm run build
%AppData%/Claude/claude_desktop_config.json
:{
"mcpServers": {
"CSV Analysis": {
"command": "node",
"args": ["path/to/mcp-csv-analysis-gemini/dist/index.js"],
"cwd": "path/to/mcp-csv-analysis-gemini",
"env": {
"GEMINI_API_KEY": "your_api_key_here",
"PLOTLY_USERNAME": "your_plotly_username",
"PLOTLY_API_KEY": "your_plotly_api_key"
}
}
}
}
{
"name": "analyze-csv",
"arguments": {
"csvPath": "./data/your_file.csv",
"analysisType": "detailed",
"outputDir": "./custom_output"
}
}
{
"name": "visualize-data",
"arguments": {
"csvPath": "./data/your_file.csv",
"visualizationType": "basic",
"columns": ["column1", "column2"],
"chartTypes": ["histogram", "scatter"],
"outputDir": "./custom_output"
}
}
{
"name": "generate-thinking",
"arguments": {
"prompt": "Your complex analysis prompt here",
"outputDir": "./custom_output"
}
}
output/
āāā analysis/
ā āāā csv_analysis_[timestamp]_part1.txt
ā āāā csv_analysis_[timestamp]_part2.txt
ā āāā csv_analysis_[timestamp]_summary.txt
āāā visualizations/
ā āāā histogram_[column]_[timestamp].png
ā āāā scatter_[columns]_[timestamp].png
ā āāā correlation_heatmap_[timestamp].png
āāā thinking/
āāā gemini_thinking_[timestamp].txt
npm run build
: Compile TypeScript to JavaScriptnpm run start
: Start the MCP servernpm run dev
: Run in development mode with ts-nodeGEMINI_API_KEY
: Your Google Gemini API keyPLOTLY_USERNAME
: Your Plotly usernamePLOTLY_API_KEY
: Your Plotly API key.env
fileAPI Key Error
.env
file existsCSV Parsing Error
Claude Desktop Connection
Add DEBUG=true
to your .env
file for verbose logging:
GEMINI_API_KEY=your_key_here
DEBUG=true
interface AnalyzeCSVParams {
csvPath: string; // Path to CSV file
outputDir?: string; // Optional output directory
analysisType?: 'basic' | 'detailed'; // Analysis type
}
interface VisualizeDataParams {
csvPath: string; // Path to CSV file
outputDir?: string; // Optional output directory
visualizationType?: 'basic' | 'advanced' | 'custom'; // Visualization type
columns?: string[]; // Columns to visualize
chartTypes?: ('scatter' | 'line' | 'bar' | 'histogram' | 'box' | 'heatmap')[]; // Chart types
customConfig?: Record<string, any>; // Custom configuration
}
interface GenerateThinkingParams {
prompt: string; // Analysis prompt
outputDir?: string; // Optional output directory
}
MIT License - See LICENSE file for details
A Python monorepo for AI-powered project management and productivity servers, utilizing the Claude API.
Manage your Todoist tasks and projects using the Todoist Python API.
Interact with your local Obsidian vault using a REST API.
Marketing insights and audience analysis from Audiense reports, covering demographic, cultural, influencer, and content engagement analysis.
Notion official MCP server
Integrate with the Goodday project management platform to manage projects, tasks, and users via its API.
A comprehensive travel planning server for flight search, accommodation booking, currency exchange, and weather forecasting.
Manage Zendesk tickets and comments, analyze tickets, draft responses, and access Help Center articles as a knowledge base.
An MCP server for managing Tempo worklogs in Jira. It connects to Jira and Tempo services using API tokens and environment variables.
Connects AI assistants to your Notion workspace to search and manage pages, databases, and content.