file-analysis-mcp
file-analysis-mcp
指定したフォルダ内の非構造化ドキュメント(PDF、PPTX、DOCX、SVG、PNGなどの画像)を読み取り、 呼び出し元ホスト(Claude Code、Codex CLIなど)が内容の要約とフォルダ構造の分析を 行えるように、原文テキスト/画像をそのまま渡す個人用MCPサーバーです。
このサーバーは要約を直接実行しません — テキストを抽出し、画像を そのまま返すだけで、実際の要約はこのツールを呼び出したLLM(Claude Code/Codex)が 実行します。別途APIキーは不要です。
提供ツール
list_folder_structure(path, max_depth=5)指定フォルダを再帰探索し、ツリー構造、拡張子別ファイル数、総容量をJSONで返す。read_document(path, max_chars=20000, max_pages=30)拡張子に応じて内容を抽出し、テキスト/画像で返す。.pdf→ ページごとのテキスト.pptx→ スライドごとのテキスト + ノート.docx→ 段落/見出し/表のテキスト.svg→ 原文XML + ラスタライズしたPNG画像(可能な場合).png/.jpg/.jpeg/.bmp/.gif/.webp→ 画像そのまま(リサイズ後)
Related MCP server: File Context MCP Server
インストール
uvがPythonインタープリタと依存関係をすべて管理します。
cd file-analysis-mcp
uv syncローカルテスト(MCP Inspector)
npx @modelcontextprotocol/inspector uv run --directory . python server.pyブラウザで開くInspector UIで、list_folder_structure、read_documentを
直接呼び出して試せます。test_samples/フォルダにPDF/PPTX/DOCX/SVG/PNGのサンプル
ファイルが用意されており、すぐにテスト可能です。
Claude Codeに登録
claude mcp add file-analysis -s user -- uv run --directory "C:\Users\20210\Desktop\testmcp\file-analysis-mcp" python server.py上記のコマンドでユーザー範囲(user scope)に登録済みのため、すべてのプロジェクトで使用
可能です。新しいMCPサーバーはセッション開始時にロードされるため、Claude Codeを再起動(または
新しいセッションを開始)しないとツールが表示されません。 登録状態の確認: claude mcp list
Codex CLIに登録
codex mcp add file-analysis -- uv run --directory "C:\Users\20210\Desktop\testmcp\file-analysis-mcp" python server.pyすでにグローバル(global)に登録されています。確認: codex mcp list
使用例(登録後の新しいセッションで)
「C:\Users\me\Documents\報告書フォルダの構造を分析して、中のドキュメントを要約して」
と依頼すると、Claude Code/Codexがlist_folder_structureで構造を把握した後、
必要なファイルに対してread_documentを呼び出して内容を読み、直接要約します。
参考 / 制限事項
パスは呼び出しのたびに引数で渡す方式のため、アクセスフォルダ制限(allowlist)は 設定されていません。信頼できるローカル環境で個人用に使用することを前提としています。
テキストは
max_chars、PDFはmax_pagesで長さを制限し、コンテキストの 肥大化を防ぎます。より長い内容が必要な場合は、呼び出し時に値を増やしてリクエストしてください。SVGのラスタライズ(
svglib)は、一部の複雑なSVG機能(フィルター、グラデーションの一部など)を 完全にはサポートしない場合があります。失敗しても原文XMLテキストは常に返されます。
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