file-analysis-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@file-analysis-mcpAnalyze the folder structure of ~/Documents and summarize the PDFs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
file-analysis-mcp
A personal MCP server that reads unstructured documents (PDF, PPTX, DOCX, SVG, PNG, and other images) in a specified folder and passes the raw text/images as-is so that the calling host (Claude Code, Codex CLI, etc.) can summarize the contents and analyze the folder structure.
This server does not perform summarization itself — it only extracts text and returns images as-is; the actual summarization is done by the LLM (Claude Code/Codex) that calls this tool. No separate API key is required.
Provided Tools
list_folder_structure(path, max_depth=5)Recursively explores the specified folder and returns the tree structure, file count by extension, and total size as JSON.read_document(path, max_chars=20000, max_pages=30)Extracts content based on the file extension and returns it as text/images..pdf→ per-page text.pptx→ per-slide text + notes.docx→ paragraph/heading/table text.svg→ raw XML + rasterized PNG image (when possible).png/.jpg/.jpeg/.bmp/.gif/.webp→ image as-is (after resizing)
Related MCP server: File Context MCP Server
Installation
uv manages both the Python interpreter and dependencies.
cd file-analysis-mcp
uv syncLocal Testing (MCP Inspector)
npx @modelcontextprotocol/inspector uv run --directory . python server.pyIn the Inspector UI that opens in your browser, you can directly call list_folder_structure and read_document. Sample PDF/PPTX/DOCX/SVG/PNG files are prepared in the test_samples/ folder, so you can test right away.
Registering with Claude Code
claude mcp add file-analysis -s user -- uv run --directory "C:\Users\20210\Desktop\testmcp\file-analysis-mcp" python server.pyIt is already registered at the user scope with the command above and is available in all projects. New MCP servers are loaded at session start, so you must restart Claude Code (or start a new session) for the tools to appear. Check registration status: claude mcp list
Registering with Codex CLI
codex mcp add file-analysis -- uv run --directory "C:\Users\20210\Desktop\testmcp\file-analysis-mcp" python server.pyIt is already registered globally. Check: codex mcp list
Usage Example (in a new session after registration)
"Analyze the structure of the C:\Users\me\Documents\reports folder and summarize the documents in it"
If you make a request like this, Claude Code/Codex will first understand the structure with list_folder_structure, then call read_document on the needed files to read the contents and summarize them directly.
Notes / Limitations
Since paths are passed as arguments on each call, there is no access folder restriction (allowlist). It is intended for personal use in a trusted local environment.
Text is limited by
_charsand PDFs by_pagesto prevent context overflow. If you need content, you can the values when the call.SVG rasterization (
svglib) not fully support some complex SVG features (filters some gradients, etc.). Even if it fails, the raw XML text is always returned.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Large Language Models to safely browse and interact with local file systems through secure directory listing, file reading, and content search capabilities. Built with comprehensive security controls and high-performance handling of large directories and files.
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to read, search, and analyze local file systems with tools for reading file contents, listing directories, searching by patterns, and analyzing folder structures for context-aware queries.
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to generate annotated file trees, retrieve file statistics, list git-changed files, and read file contents from local directories or GitHub repositories.MIT
- FlicenseAqualityCmaintenanceEnables read-only analysis of local unstructured documents by scanning a folder, extracting text and structural metadata, and passing content with truncation and error-awareness to an LLM for summarization.9
Related MCP Connectors
Securely search and manage workspace context files for AI agents and teams.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Seonja-Lee/testmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server