file-analysis
File Analysis MCP
特定フォルダの非構造化ドキュメント(PDF、DOCX、PPTX、SVG、PNG、JPG)を読み取り、構造・内容を抽出する個人用MCPサーバー。 要約はこのサーバーではなく、このサーバーを呼び出すClaude Code/CodexのLLMが行う。 このサーバーは テキスト・画像の抽出とフォルダ構造の把握のみを担当する。
事前準備
1. Python
python、pipが正常に動作する必要がある。WindowsでpythonがMicrosoft Storeのインストール案内を
表示する場合は、以下を確認:
python.orgからPython 3.11以上(64-bit)をインストールし、インストール中に "Add python.exe to PATH"にチェックを入れる。
それでも
pythonがStoreスタブを指す場合は: 設定 → アプリ → 詳細なアプリ設定 → アプリ実行エイリアスで、 App Installerのpython.exe/python3.exe項目をオフにする。
2. Tesseract-OCR (PNGのOCR機能に必要、任意)
UB-Mannheim Tesseract installerでインストール後、
.mcp.jsonのTESSERACT_CMDの値を実際のインストールパスに合わせる。インストールしなくてもサーバーは正常に動作し、
PNG分析時は画像自体(マルチモーダル)は返され、OCRテキストのみ「unavailable」メッセージに置き換えられる。
Related MCP server: ReadPDFx - OCR PDF MCP Server
インストール
cd C:\Users\20229\Desktop\MCP
python -m venv .venv
.venv\Scripts\pip install -r requirements.txt検証
# 1. 샘플 파일 생성 (pdf/docx/pptx/svg/png/txt 각 1개)
.venv\Scripts\python scripts\generate_fixtures.py
# 2. MCP 없이 extractor만 직접 테스트
.venv\Scripts\python scripts\smoke_test.pyClaude Code登録
このフォルダの.mcp.jsonがすでにプロジェクトスコープでサーバーを登録している。commandパスが実際の
.venv\Scripts\python.exeの場所と一致するか確認した後、Claude Codeを再起動するか、/mcpコマンドで
file-analysisサーバーがconnected状態か確認する。
提供ツール
scan_folder(folder_path, max_depth=3, max_files=200): フォルダツリーと拡張子別のファイル数のみを返す (内容は読み取らない)。analyze_file(file_path, max_chars=None): 1つのファイルを拡張子に応じて抽出。pdf/docx/pptx/svg → テキスト・構造情報
png/jpg/jpeg → 画像(マルチモーダル) + OCRテキスト
制約事項
SVGはXML構造のみをパースする(テキストノード、図形数、viewBox)。テキストのない純粋なベクター画像は 視覚的に何を描いているか分からない — 必要ならPNGに変換して再度分析すること。
PDF 50ページ/5万字、PPTX 100スライド/5万字、PNG OCR 2万字など、抽出量に上限がある。 超過時は結果に
truncated: trueと案内文が含まれる。
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
- AlicenseNot gradedqualityDmaintenanceEnables reading and processing various document formats including Word, PDF, RTF, and text files. Supports extracting media elements like images and links, with features for PDF page range selection and automatic text encoding detection.8MIT
- AlicenseNot gradedqualityDmaintenanceProvides intelligent OCR and PDF processing capabilities that automatically detect whether PDFs contain digital text or scanned images and apply appropriate extraction methods. Supports text extraction, OCR processing, structure analysis, and batch operations.MIT
- AlicenseNot gradedqualityFmaintenanceEnables PDF document processing including text, image, and table extraction, as well as intelligent classification and similarity analysis across multiple languages.49MIT
- FlicenseNot gradedqualityCmaintenanceEnables local, read-only extraction of text and structure from PDF, DOCX, PPTX, SVG, and PNG files, including OCR for images, directory tree and metadata reporting, with strict path isolation and audit logging.
Related MCP Connectors
Read PDFs and images as markdown or text, with exact costs and hard spend caps. $0.75/1k pages.
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
Tag, rename, and enrich PDFs and images. Free tier: 1,500 tags/month, no credit card.
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/JAEJOONYOO/YJJ_MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server