drio
Open app

File Analysis MCP Server

Source

Catalog onlyCatalog onlySTDIO

Overview

File Analysis MCP Server is a Model Context Protocol (MCP) server that provides tools for reading and writing files, analyzing data (especially CSV files), generating visualizations, and reading PDF files, accessible to any MCP client like Claude Desktop.

To use the server, install it in an MCP client like Claude Desktop, set up the necessary directories, and then you can interact with it by asking questions related to file operations and data analysis.

  • Securely read and write text files - Analyze CSV data with detailed statistics - Generate various visualizations (bar, line, scatter, etc.) - Extract text from PDF files - Includes prompts for data analysis and reporting
  1. Analyzing sales data from CSV files
  2. Extracting text from PDF reports
  3. Generating visualizations for data presentations
  4. Cleaning and summarizing data for stakeholders

Add to your AI client

Use these steps to connect File Analysis MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "file-analysis-mcp-server-huangyz0918": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "file-analysis-mcp-server-huangyz0918": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "file-analysis-mcp-server-huangyz0918": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "file-analysis-mcp-server-huangyz0918": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "file-analysis-mcp-server-huangyz0918": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "file-analysis-mcp-server-huangyz0918": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-file-analysis-mcp-server-huangyz0918"
      ]
    }
  }
}

FAQ

What are the prerequisites for using the server?

You need Python 3.10 or higher and an MCP client like Claude Desktop.

How do I install the server?

Install dependencies using pip and set up the server in your MCP client.

Can I customize the directories for file access?

Yes, you can set the `MCP_FILE_ROOTS` environment variable to customize allowed directories.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2604,"uuid":"647d14be-eaf3-482b-8cbf-bd8f9c7093bc","name":"file-analysis-mcp-server","title":"File Analysis MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/15646062?v=4","created_at":"2025-03-13T09:06:08.942Z","updated_at":"2025-03-13T09:42:00.836Z","status":"created","author_name":"huangyz0918","author_avatar_url":"https://avatars.githubusercontent.com/u/15646062?v=4","tags":"file-analysis,data-analysis,visualization","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/huangyz0918/file-analysis-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-10 16:33:26\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]