Skip to main content
Glama
mcp-csv-sql-validator

mcp-csv-sql-validator

by arshi-shaik

mcp-csv-sql-validator

A lightweight MCP (Model Context Protocol) server built with Python that lets AI assistants (Claude Desktop, Cursor) validate CSV, Excel, and SQL database schemas before loading data.

Features

  • CSV & Excel Auditing: Detects empty files, missing/null values per column, and exact duplicate rows using Pandas.

  • SQL Schema Verification: Inspects SQLite and PostgreSQL databases via SQLAlchemy to confirm table existence and list column structures.

  • Ready-to-Test Dataset: Includes sample_data.csv with intentional errors so you can test validation right away.

Related MCP server: mcp-limsdq

Quick Start

  1. Clone the repository

    git clone https://github.com
    cd mcp-csv-sql-validator
  2. Create a virtual environment and install dependencies

    python -m venv venv
    venv\Scripts\activate
    pip install -r requirements.txt
  3. Run a quick test on the sample file

    python -c "from validators import check_csv_or_excel; print(check_csv_or_excel('sample_data.csv'))"

Connect to Claude Desktop or Cursor

Add this configuration to your client's mcpServers JSON file:

{
  "mcpServers": {
    "csv-sql-validator": {
      "command": "C:\\Users\\YOUR_USERNAME\\mcp-csv-sql-validator\\venv\\Scripts\\python.exe",
      "args": ["C:\\Users\\YOUR_USERNAME\\mcp-csv-sql-validator\\server.py"]
    }
  }
}

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to read and edit Excel files and perform PostgreSQL queries, streamlining data analysis workflows.
      12
      ISC
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to ingest CSV/TSV files, profile and categorize tables, generate SQL DDL for multiple engines, and launch background data workflows whose completion and artifacts can be independently verified.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to query SQLite databases and Excel/CSV files read-only, with PII masking, bounded row limits, query timeouts, and audit logging.
      MIT