Skip to main content

document-intelligence-mcp

PyPI version License: MIT Python 3.10+

Local document intelligence for AI agents — extract text, detect tables, read metadata, analyze structure, search keywords, and detect language from PDF and DOCX files. No cloud API required, no API key needed.

Features

  • 10 MCP Tools for PDF and DOCX processing
  • Local processing — no data leaves your machine
  • No API key required
  • Supports PDF (via PyMuPDF + pdfplumber) and Microsoft Word DOCX (via python-docx)
  • Language detection via langdetect (55+ languages)

Tools

Tool Description
tool_extract_text_from_pdf Extract all text from a PDF, page by page
tool_extract_tables_from_pdf Detect and extract tables from PDF
tool_get_pdf_metadata Read PDF metadata: title, author, dates, outline
tool_analyze_document_structure Detect headings, font sizes, section structure
tool_search_in_pdf Search for keywords with context in PDF
tool_extract_text_from_docx Extract all text from a Word DOCX file
tool_extract_tables_from_docx Extract all tables from a DOCX file
tool_analyze_docx_structure Analyze headings, styles, and structure of DOCX
tool_count_words_and_stats Word count, sentence count, reading time, top words
tool_detect_document_language Detect language of PDF or DOCX (55+ languages)

Installation

pip install document-intelligence-mcp

Claude Desktop Configuration

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "document-intelligence": {
      "command": "document-intelligence-mcp"
    }
  }
}

Usage Examples

Extract text from a PDF:

Extract the text from /path/to/report.pdf

Find tables in a PDF:

Find all tables in /path/to/financial_report.pdf

Search for a keyword:

Search for "revenue" in /path/to/annual_report.pdf

Get document stats:

Count the words and estimate reading time for /path/to/document.docx

Detect language:

What language is /path/to/document.pdf written in?

Requirements

  • Python 3.10+
  • PyMuPDF >= 1.24.0
  • pdfplumber >= 0.11.0
  • python-docx >= 1.1.0
  • langdetect >= 1.0.9

License

MIT License — free to use, modify, and distribute.


Built by AiAgentKarl | Part of the AI Agent Economy toolkit

Metadata

Release files for document-intelligence-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for document-intelligence-mcp 0.1.0
File Size Uploaded
document_intelligence_mcp-0.1.0.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for document-intelligence-mcp 0.1.0
File Interpreter ABI Platform
document_intelligence_mcp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.3 kB

Release files / document_intelligence_mcp-0.1.0.tar.gz

Download URL document_intelligence_mcp-0.1.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5f0dd4394bfcb467d9d25e9fd08db106bd65b90f952dd80e521b926ec3e61354
BLAKE2b-256 checksum
How to use checksums
01cbd7c843f0cd85b51a2c8e286c2efb3972b2ac7054d2456f16bdf84611a730
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release files / document_intelligence_mcp-0.1.0-py3-none-any.whl

Download URL document_intelligence_mcp-0.1.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
503ccb77761b3a449d58c726dd334cb8103b54644162f7e7e835194204684442
BLAKE2b-256 checksum
How to use checksums
d24b65ec158e1ab6102e15b0f134c68be896a9b646c4c50e72bafbffa5ca1b39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page