Token导航 LogoToken导航

MCP Server · 数据服务

MCP Csv Server

一个提供全面CSV数据管理功能的MCP服务器,包括CRUD操作和数据分析,可与n8n-mcp客户端无缝集成。

stdio官方级别未说明来源级核验工具 8
数据操作Python数据分析CRUD操作

快速开始

作者 / 组织
rickystanley76
提供方
rickystanley76

工具数量

8

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

MCP Csv Server 属于数据服务类 MCP Server,公开资料标注 8 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

数据服务

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

pip install -r requirements.txt

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 对应的运行时,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 8 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

MCP CSV Server

A Model Context Protocol (MCP) server that provides comprehensive CSV data management capabilities including CRUD operations and data analysis. Designed to integrate seamlessly with n8n-mcp client.

Features

  • Full CRUD Operations: Create, Read, Update, and Delete records in CSV files
  • Data Analysis: Statistical operations (mean, sum, count, min, max, std, median)
  • Search Functionality: Text search across CSV columns
  • Schema Detection: Automatic column type detection and schema information
  • n8n Integration: HTTP transport compatible with n8n-mcp client
  • Generic CSV Support: Works with any CSV file structure

Installation

  1. Install Python dependencies:
pip install -r requirements.txt
  1. Configure environment variables (optional):
cp .env.example .env
# Edit .env file with your settings

Usage

Starting the Server

HTTP Server (for n8n-mcp client):

python -m mcp_csv_server.server

Stdio Server (for direct MCP clients):

python -m mcp_csv_server.server stdio

The server will start on http://0.0.0.0:8000 by default.

Available Endpoints

  • GET / - Server information
  • GET /health - Health check
  • GET /tools - List all available tools
  • POST /tools/{tool_name} - Execute a tool (simple REST API)
  • POST /mcp - Unified MCP endpoint for HTTP transport (n8n-mcp client)

MCP Tools

1. csv_list_files

List all available CSV files in the data directory.

Example:

{
  "filename": null
}

2. csv_get_schema

Get schema information for a CSV file.

Parameters:

  • filename (string, required): Name of the CSV file

Example:

{
  "filename": "data.csv"
}

3. csv_read

Read data from a CSV file with optional filtering and pagination.

Parameters:

  • filename (string, required): Name of the CSV file
  • filters (object, optional): Filter conditions as key-value pairs
  • limit (integer, optional): Maximum number of rows to return
  • offset (integer, optional): Number of rows to skip (default: 0)

Example:

{
  "filename": "data.csv",
  "filters": {"status": "active"},
  "limit": 10,
  "offset": 0
}

4. csv_create

Create a new record in a CSV file.

Parameters:

  • filename (string, required): Name of the CSV file
  • record (object, required): Record data as key-value pairs

Example:

{
  "filename": "data.csv",
  "record": {
    "name": "John Doe",
    "email": "john@example.com",
    "age": 30
  }
}

5. csv_update

Update an existing record in a CSV file.

Parameters:

  • filename (string, required): Name of the CSV file
  • index (integer, required): Row index (0-based)
  • updates (object, required): Fields to update as key-value pairs

Example:

{
  "filename": "data.csv",
  "index": 0,
  "updates": {
    "email": "newemail@example.com"
  }
}

6. csv_delete

Delete a record from a CSV file.

Parameters:

  • filename (string, required): Name of the CSV file
  • index (integer, required): Row index (0-based)

Example:

{
  "filename": "data.csv",
  "index": 0
}

7. csv_search

Search for text within CSV data.

Parameters:

  • filename (string, required): Name of the CSV file
  • query (string, required): Text to search for
  • columns (array, optional): List of column names to search (empty = all columns)

Example:

{
  "filename": "data.csv",
  "query": "John",
  "columns": ["name", "email"]
}

8. csv_analyze

Perform statistical analysis on CSV data.

Parameters:

  • filename (string, required): Name of the CSV file
  • operations (array, optional): List of operations to perform (mean, sum, count, min, max, std, median). Empty = all operations

Example:

{
  "filename": "data.csv",
  "operations": ["mean", "sum", "count"]
}

n8n-mcp Client Configuration

Setup in n8n

  1. Add MCP Client Tool Node to your n8n workflow
  2. Configure the connection:

- Server Transport: Select "HTTP" or "HTTP Streamable" - Endpoint URL: http://your-server:8000/mcp - Authentication: None (or configure as needed) - Tools to Include: Select the CSV tools you want to use

  1. Use in AI Agent workflows:

- Connect the MCP Client Tool node to an AI Agent node - The AI Agent can now use the CSV tools to interact with your data

Example n8n Workflow

Webhook Trigger → MCP Client Tool → AI Agent → Response

The AI Agent can now execute queries like:

  • "List all CSV files"
  • "Read the first 10 rows from data.csv"
  • "Find all records where status is 'active'"
  • "Calculate the average age from users.csv"

CSV File Format

  • CSV files should be placed in the data/ directory (configurable via CSV_DATA_DIR env var)
  • Standard CSV format with comma delimiter
  • First row should contain column headers
  • Supports UTF-8 encoding
  • Automatic type detection for numeric columns

Configuration

Environment Variables

  • CSV_DATA_DIR - Directory path containing CSV files (default: data)
  • SERVER_HOST - Server host (default: 0.0.0.0)
  • SERVER_PORT - Server port (default: 8000)
  • MCP_ENDPOINT - MCP endpoint path (default: /mcp)
  • CORS_ORIGINS - CORS allowed origins, comma-separated (default: *)
  • MAX_FILE_SIZE_MB - Maximum file size in MB (default: 100)

Security Considerations

  • File paths are validated to prevent directory traversal attacks
  • Only files within the configured data directory are accessible
  • Consider implementing authentication for production deployments
  • Restrict CORS origins in production environments

Development

Project Structure

mcp_csv_server/
├── __init__.py
├── server.py              # Main MCP server with HTTP transport
├── csv_handler.py         # CSV operations (CRUD + analysis)
└── tools.py                # MCP tool definitions

Testing

Test the server endpoints using curl or Postman:

# Health check
curl http://localhost:8000/health

# List tools
curl http://localhost:8000/tools

# Execute a tool
curl -X POST http://localhost:8000/tools/csv_list_files \
  -H "Content-Type: application/json" \
  -d "{}"

Publishing for Others

See PUBLISHING.md for instructions on publishing this server for others to use with n8n.

See DEPLOYMENT.md for deployment instructions and n8n configuration.

License

MIT License

Support

  • Issues: https://github.com/rickystanley76/mcp-csv-server/issues
  • Documentation: See DEPLOYMENT.md for n8n setup
  • For MCP protocol questions, refer to the MCP documentation

工具与能力

工具数量

8

资源数量

0

提示词数量

0

能力标签

CSV管理Python本地部署数据操作n8n集成数据分析CRUD操作

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

用自然语言查库

不用手写 SQL,直接问数据,让模型组织查询语句。

数据巡检

定期拉指标、做对比,把异常项整理成一段说明。

打通业务数据

把数据库、数仓和接口接进同一个上下文,减少导出再上传。

选择建议

值得选的地方

  • 只提供 8 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 运行环境,换机器要重新装一遍。
  • 公开摘要偏短,具体能力和限制要回到仓库确认。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在数据服务场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
MCP Csv Server

MCP World · 本页

8stdio有1 个2026-05-17
Memory 9d25f64e

MCP World

9未说明未标注1 个2026-05-17
Prisma MCP Server

MCP World

0stdio有3 个2026-05-17
Astr Bot

MCP World

0stdio有1 个2026-05-17
Getzep MCP

MCP World

9stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

MCP Csv Server 怎么安装?

公开资料给出的安装命令是 pip install -r requirements.txt,运行环境为 未标注。装完后按客户端要求写进 MCP 配置,重启客户端生效。

MCP Csv Server 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

MCP Csv Server 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

MCP Csv Server 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

MCP Csv Server 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP