doc-mcp-server
Enables AI to efficiently analyze and extract structured data from complex documents, especially Excel files, by providing tools like section reading and field mapping to reduce token usage and improve success rates.
README
đ Document Analyzer MCP Server
Make AI understand complex documents - MCP server solving AI context limitations
đ¯ Key Features
- â Smart Document Analysis - Auto-detect sections, handle merged cells
- â Multi-format Support - Excel (.xlsx, .xls) | PDF/Word in development
- â Precise Field Mapping - Field mapping table + section-level reading
- â High Performance - Structured caching + lazy loading
đ Quick Start
Installation
macOS / Linux (Recommended with pipx)
# Install pipx
brew install pipx # macOS
# or sudo apt install pipx # Ubuntu/Debian
# Install doc-mcp-server
pipx install doc-mcp-server
Windows
pip install doc-mcp-server
For more installation options, see Full Installation Guide
Configure Claude Code
Add to ~/.claude.json or your project's config file:
{
"mcpServers": {
"document-analyzer": {
"command": "doc-mcp-server"
}
}
}
For detailed configuration, see Quick Start Guide
đ Full Documentation
- Installation Guide - Platform-specific installation steps
- Update Guide - How to upgrade to the latest version
- Quick Start - Configuration and basic usage
- Usage Guide - Complete API and examples
- Troubleshooting - Common issues and solutions
đĄ Usage Example
# 1. Analyze document structure
analyze_document(file_path="/path/to/document.xlsx")
# 2. Read specific section
read_section(file_path="/path/to/document.xlsx", section_name="Section 1")
# 3. Read single field
read_field(file_path="/path/to/document.xlsx", field_key="Section1_CompanyName")
đ ī¸ Available Tools
| Tool | Description |
|---|---|
analyze_document |
Analyze document structure and generate metadata |
get_structure |
Get cached document structure |
read_field |
Read specific field value |
read_section |
Read entire section data |
write_field |
Write field value (Excel only) |
list_sections |
List all sections |
list_fields |
List all fields |
export_structure |
Export document structure |
đ¯ Why Use This?
Problem: Large Excel files consume massive tokens when directly read by AI
- â Traditional: Read entire 323-row Excel â 15000+ tokens â Often fails
- â Using MCP: Structured reading â 2000 tokens â 90%+ success rate
Performance Improvements:
- đ Token consumption reduced by 87% (15000 â 2000)
- â Success rate improved from 30% to 90%+
- ⥠Handles 323 rows à 24 columns with 4249 merged cells
đ¤ Contributing & Feedback
- Report Issues: GitHub Issues
- Contribute Code: CONTRIBUTING.md
đ License
MIT License - see LICENSE for details
Made with â¤ī¸ by Yang Jiahui
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.