Doc Agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Doc Agentextract data from my latest invoice.pdf"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
doc-agent
Document extraction and semantic search CLI with MCP integration. Extract structured data from invoices, receipts, and bank statements using Vision AI.
Features
š Document Extraction: Extract structured data from PDFs and images using Vision AI
š¦ Ollama-First: Privacy-first default using local
llama3.2-visionmodelš§ Zero Setup: Auto-installs Ollama via Homebrew if needed, auto-pulls models
š Multi-Format: Supports PDFs and images (PNG, JPEG, WebP)
š¬ OCR-Enhanced: Uses Tesseract.js for accurate text extraction from receipts
š¾ Local Storage: All data persists to local SQLite database
š Semantic Search: Natural language search over indexed documents (coming soon)
š¤ MCP Integration: Use via Claude Desktop or any MCP-compatible assistant
š Privacy-First: Data stays on your machine (unless you opt for cloud AI)
Related MCP server: Expense Tracker MCP Server
Quick Start
Installation
npm install -g doc-agentUsage
Extract document data (uses Ollama by default):
doc extract invoice.pdfš” Don't have Ollama? No problem! The CLI will offer to install it for you via Homebrew.
With Gemini (cloud, higher accuracy):
export GEMINI_API_KEY=your_key_here
doc extract invoice.pdf --provider geminiStart MCP server:
doc mcpClaude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"doc-agent": {
"command": "npx",
"args": ["-y", "doc-agent", "mcp"],
"env": {
"GEMINI_API_KEY": "your_key_here"
}
}
}
}Then in Claude Desktop:
"Extract data from ~/Downloads/invoice.pdf"
Development
# Clone and install dependencies
git clone https://github.com/prosdevlab/doc-agent
cd doc-agent
pnpm install
# Build the project
pnpm build
# Run CLI locally
pnpm dev extract examples/invoice.pdf
# Run tests
pnpm test
# Start MCP server
pnpm mcpArchitecture
The CLI is built with Ink (React for CLIs) for rich interactive output:
packages/
āāā cli/ # Ink-based CLI with services, hooks, and components
āāā core/ # Shared types and interfaces
āāā extract/ # Document extraction (Gemini, Ollama) + OCR
āāā storage/ # SQLite persistence (Drizzle ORM)
āāā vector-store/ # Vector database for semantic searchRoadmap
See ROADMAP.md for the project plan.
License
MIT
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
- Flicense-qualityDmaintenanceParse and query investment statements from multiple institutions (Questrade, Interactive Brokers, Scotia) using natural language or structured queries. Supports semantic search for dividends, holdings, transactions, and account balances with hybrid SQLite and vector database storage.Last updated
- FlicenseAqualityDmaintenanceParses PDF receipts to extract grocery and shopping expenses, automatically categorizes items using smart rules and LLM fallback, and stores them in a local SQLite database for querying purchase history and spending patterns.Last updated3
- Alicense-qualityCmaintenanceEnables AI agents to extract structured JSON from invoices and receipts in PDF and image formats using Claude Vision. Supports full document parsing, line item extraction, validation, and batch CSV export with API key or cryptocurrency payment options.Last updatedMIT
- Alicense-qualityCmaintenanceBuilds searchable SQLite databases from PDFs, preserving inline image locations for AI agents to discover and caption visual content. Supports full-text search over text, image placeholders, and saved captions.Last updated1MIT
Related MCP Connectors
Turn any PDF into structured JSON via AI + OCR: invoices, bank statements, contracts.
AU GST/ABN receipt extraction ā assigns entertainment/ITC tax codes per line, not just OCR.
Local-first RAG engine with MCP server for AI agent integration.
Appeared in Searches
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/prosdevlab/doc-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server