mcp-csv-analyst

mcp-csv-analyst

An MCP server that enables AI assistants to load, query, and analyze local CSV files using tools for filtering, aggregation, and grouping. It provides capabilities to describe schemas, calculate statistics, and sample data directly from CSV files.

Category
Visit Server

README

<div align="center">

mcp-csv-analyst

MCP server for querying and analyzing CSV files

npm version License: MIT

Give Claude (or any MCP client) the ability to load, query, filter, aggregate, and analyze CSV data.

</div>


Features

  • csv_describe - Load a CSV and get schema, row count, column types, and statistics
  • csv_filter - Filter rows by column conditions (eq, gt, lt, contains, etc.)
  • csv_aggregate - Compute sum, avg, min, max, count, median on numeric columns
  • csv_group_by - Group by a column and aggregate another
  • csv_sample - Get sample rows with offset/limit
  • csv_unique - Get unique values and their counts for any column

Quick Start

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "csv-analyst": {
      "command": "npx",
      "args": ["-y", "mcp-csv-analyst"]
    }
  }
}

With Claude Code

claude mcp add csv-analyst npx mcp-csv-analyst

Manual Install

npm install -g mcp-csv-analyst

Tools

csv_describe

Load a CSV file and get an overview of its structure.

Parameters:

  • file_path (string) - Absolute path to CSV file

csv_filter

Filter rows by a column condition.

Parameters:

  • file_path (string) - Path to CSV
  • column (string) - Column to filter on
  • operator (enum) - eq, neq, gt, gte, lt, lte, contains, starts_with
  • value (string) - Value to compare
  • limit (number, optional) - Max rows to return (default 50)
  • sort_by (string, optional) - Column to sort by
  • sort_dir (enum, optional) - asc or desc

csv_aggregate

Compute an aggregate on a numeric column.

Parameters:

  • file_path (string) - Path to CSV
  • column (string) - Numeric column
  • operation (enum) - sum, avg, min, max, count, median

csv_group_by

Group rows and compute an aggregate.

Parameters:

  • file_path (string) - Path to CSV
  • group_column (string) - Column to group by
  • agg_column (string) - Column to aggregate
  • operation (enum) - sum, avg, count, min, max

csv_sample

Get sample rows from a CSV.

Parameters:

  • file_path (string) - Path to CSV
  • count (number, optional) - Number of rows (default 10)
  • offset (number, optional) - Starting row offset

csv_unique

Get unique values with counts.

Parameters:

  • file_path (string) - Path to CSV
  • column (string) - Column name
  • limit (number, optional) - Max values (default 50)

Example Conversation

You: Analyze the sales data in /data/sales.csv

Claude: Let me look at the structure of your CSV first... Uses csv_describe to examine the file

The file has 10,000 rows with columns: date, product, region, quantity, price, total. Let me compute some key metrics... Uses csv_group_by to sum total by region Uses csv_aggregate to get the overall average price

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured