Structurize-MCP
Generates structured CSV files from natural language descriptions using Google Gemini AI.
Structurize-MCP
Structurize-MCP 是一个基于 Model Context Protocol 的服务,可以根据自然语言描述生成结构化的 CSV 文件。它使用 Google Gemini AI 来解析和生成数据。
功能特点
- 根据自然语言描述生成 CSV 文件
- 自动提取列结构和数据内容
- 生成描述性的文件名
- 支持自定义分隔符
- 当 Gemini API 调用失败时,有本地解析方法作为后备
安装
NPM 全局安装
npm install -g structurize-mcp
直接通过 npx 使用
npx structurize-mcp --gemini-api-key YOUR_GEMINI_API_KEY
从源码安装
克隆仓库并安装依赖:
git clone https://github.com/your-username/structurize-mcp.git
cd structurize-mcp
npm install
npm run build
使用方法
命令行参数
工具支持以下命令行参数:
--gemini-api-key,-k: Google Gemini API Key(必需)--csv-dir,-d: CSV 文件保存目录(可选,默认为项目下的 csv 目录)--help,-h: 显示帮助信息
运行示例
# 通过 npx 运行
npx structurize-mcp --gemini-api-key YOUR_GEMINI_API_KEY --csv-dir /path/to/save/csv
# 如果全局安装过
structurize-mcp --gemini-api-key YOUR_GEMINI_API_KEY --csv-dir /path/to/save/csv
# 从源码目录运行
node ./bin/structurize.js --gemini-api-key YOUR_GEMINI_API_KEY --csv-dir /path/to/save/csv
与 Claude Desktop 集成
要在 Claude Desktop 中使用此 MCP 服务器,你需要在 Claude Desktop 的配置文件中添加以下内容:
{
"mcpServers": {
"csv-generator": {
"command": "npx",
"args": [
"structurize-mcp",
"--gemini-api-key",
"YOUR_GEMINI_API_KEY_HERE",
"--csv-dir",
"/absolute/path/to/csv_output_directory"
]
}
}
}
如果是从源码运行,可以使用:
{
"mcpServers": {
"csv-generator": {
"command": "node",
"args": [
"/absolute/path/to/structurize-mcp/build/index.js",
"--gemini-api-key",
"YOUR_GEMINI_API_KEY_HERE",
"--csv-dir",
"/absolute/path/to/csv_output_directory"
]
}
}
}
确保替换以下内容:
YOUR_GEMINI_API_KEY_HERE: 你的 Google Gemini API Key/absolute/path/to/csv_output_directory: CSV 文件保存目录的绝对路径
配置完成后,重启 Claude Desktop,然后你就可以要求 Claude 生成 CSV 文件了。
示例
# 使用自定义 API Key 和保存目录
npx structurize-mcp --gemini-api-key YOUR_GEMINI_API_KEY --csv-dir ~/Documents/csv_files
# 只自定义 API Key,使用默认保存目录
npx structurize-mcp --gemini-api-key YOUR_GEMINI_API_KEY
# 只自定义保存目录(但需要确保 API Key 以其他方式提供)
npx structurize-mcp --csv-dir /data/csv_exports
获取 Google Gemini API Key
要使用此工具,您需要一个 Google Gemini API Key:
- 访问 Google AI Studio
- 登录您的 Google 账户
- 转到 API Keys 页面
- 创建一个新的 API Key
CSV 文件存储
- 默认情况下,CSV 文件存储在项目根目录下的
csv文件夹中 - 可以通过
--csv-dir参数指定自定义存储路径 - 生成的文件名基于 CSV 内容(标题、列名和数据)自动生成,并附加时间戳以确保唯一性
主要功能说明
- 根据自然语言描述自动生成 CSV 文件
- 智能解析列结构和数据内容
- 生成描述性文件名
- 支持自定义分隔符
贡献
欢迎提交 Issues 和 Pull Requests。
许可
MIT
Server Terkait
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Laravel Docs
Search and access Laravel documentation from version 6.x onwards, with automatic daily updates.
XcodeProj MCP Server
An MCP server for manipulating Xcode project files (.xcodeproj) using Swift. Requires Docker and macOS.
Remote MCP Server (Authless)
A remote MCP server deployable on Cloudflare Workers without authentication.
Roblox Studio MCP Server
An AI-powered MCP server for Roblox Studio development, featuring advanced NLP, semantic analysis, and multi-turn conversation capabilities.
MCP Memory Gateway (rlhf-feedback-loop)
Local-first RLHF feedback loop for AI agents — capture preference signals, promote memories, block repeated mistakes, export DPO/KTO training pairs
Web3 Playground & Sandbox - Learn, Develop, Test MCP Servers + Toolkit SDK
Free Solidity compiler & Web3 IDE with interactive tutorials. Learn blockchain development, deploy smart contracts to 8+ chains (Ethereum, Polygon, Base, Arbitrum, Solana). Templates for tokens, NFTs, DeFi, DAOs. Monaco Editor, AI assistance, WCAG accessible. Remix alternative. Gas optimization, MetaMask integration, open source. Beginner-friendly. MCP toolkit.
MCP SSE Launcher
A Python management system for MCP servers that wraps stdio-based servers as SSE endpoints and includes a web inspector for testing.
MCP LSP Go
An MCP server that connects AI assistants to Go's Language Server Protocol (LSP) for advanced code analysis.
MCP Chaos Rig
A local MCP server that breaks on demand. Test your client against auth failures, disappearing tools, flaky responses, and token expiry, all from a web UI.
mcp-ssh-sre
An MCP server providing read-only server monitoring tools to AI assistants. Runs predefined diagnostic commands over SSH and passes only the results to the LLM - your server credentials and shell are never exposed.