mcp-file-processor
v0.1.1Text extraction, keyword extraction, language detection, and chunking for RAG
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
extract_text
Extract text content from a file. Supports PDF, DOCX, CSV, JSON, Markdown, HTML, and code files. Pass file content as base64 (for binary formats like PDF/DOCX) or raw text (for text formats). Returns extracted text, word count, and processing time.
| Parameter | Type | Description |
|---|---|---|
content * | string | File content — base64-encoded for binary formats (PDF, DOCX), raw text for text formats |
fileType * | string | MIME type (e.g. "application/pdf") or file extension (e.g. ".pdf", "pdf", ".ts") |
extract_keywords
Extract ranked keywords from text. Returns keywords sorted by frequency, useful for tagging, search indexing, and topic identification.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to extract keywords from |
limit | number | Maximum number of keywords to return (default: 20) |
detect_language
Detect whether content is code, natural language, or mixed. Optionally detects the programming language from file extension. Useful for routing content to appropriate processing pipelines.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text content to analyse |
fileName | string | Optional file name for extension-based detection (e.g. "app.ts") |
chunk_text
Split text into overlapping chunks suitable for RAG/embedding pipelines. Configurable chunk size and overlap. Returns chunks with positional metadata.
| Parameter | Type | Description |
|---|---|---|
text * | string | Text to split into chunks |
chunkSize | number | Target chunk size in characters (default: 1000) |
overlap | number | Overlap between chunks in characters (default: 200) |
process_file
All-in-one file processing: extract text, detect content type, extract keywords, and chunk for RAG. Returns the complete processed result in a single call.
| Parameter | Type | Description |
|---|---|---|
content * | string | File content — base64-encoded for binary formats (PDF, DOCX), raw text for text formats |
fileType * | string | MIME type or file extension (e.g. "application/pdf", ".md", "csv") |
chunkOverlap | number | Overlap between chunks in characters (default: 200) |
chunkSize | number | Target chunk size in characters (default: 1000) |
keywordLimit | number | Maximum keywords to extract (default: 20) |
server_info
Returns server metadata: name, version, registered tools, and registered resources. Useful for introspection and health checks.