Full-text search inside Word, PPT, Excel and PDF files, with precise locators.
MCPpedia last refreshed this data
io.github.Asgoresmilelong/officegrep is an MCP server that full-text search inside Word, PPT, Excel and PDF files, with precise locators. Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 82/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"officegrep": {
"args": [
"mcp",
"--db",
"/Users/me/.officegrep/index.db"
],
"command": "officegrep"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Full-text search inside Word, PPT, Excel and PDF files, with precise locators.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
uvx 'https' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked https against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in search / productivity
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
Open-source web scraper for AI agents with scrape, crawl, and map tools
MCP Security Weekly
Get CVE alerts and security updates for io.github.Asgoresmilelong/officegrep and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Full-text search inside Word, PowerPoint, Excel and PDF — for agents.
grep cannot see a single character inside a .docx. officegrep extracts the text, indexes it into one SQLite file, and hands it to any agent over MCP.
$ officegrep search "bending moment"
Found 3 hits:
F:\reports\pole-design.docx [table p 89]
design bending moment (load point 0.25 m from tip); deflection limit; test moment = 2× …
F:\notes\composites.md [line 32]
… utilization 81%. **test bending moment = 2× the standard test moment** …
中文说明:README.zh-CN.md
grep / ripgrep only read plain text. .docx is a zip of XML, .xlsx keeps strings in a shared table, .pdf is a compressed stream.# one command, no clone, no uv
pip install https://github.com/Asgoresmilelong/officegrep/releases/download/v0.1.1/officegrep-0.1.1-py3-none-any.whl
# or from source
pip install git+https://github.com/Asgoresmilelong/officegrep
Runtime deps: lxml, openpyxl; PDF support adds optional pypdf.
Listed in the official MCP Registry as io.github.Asgoresmilelong/officegrep; there is also an .mcpb bundle on the releases page for MCP hosts that install bundles (needs uv).
officegrep index ~/Documents ~/Downloads # build / update (incremental)
officegrep search "island reef" --limit 5
officegrep search "wind load" --under ~/Documents
officegrep stats
The index lives in ~/.officegrep/index.db; override with --db or OFFICEGREP_DB.
Nothing to do. If the index is empty when officegrep mcp starts, it scans ~/Documents, ~/Downloads and ~/Desktop in the background (25 MB per-file cap) while the agent keeps talking; a search_docs call made in the meantime answers with a "still building" note instead of a misleading "no results".
OFFICEGREP_AUTOINDEX=0OFFICEGREP_ROOTS="~/work;~/papers"officegrep watch ~/Documents # re-index on change: 2s poll, no extra dependency
officegrep watch ~/Documents --once # single sync pass (cron / CI friendly)
Or let the MCP server watch in the background:
OFFICEGREP_WATCH="~/Documents;~/Downloads" officegrep mcp
The index runs in WAL mode, so a watch process and an MCP server can share one database file concurrently — something that fails with database is locked on a default rollback journal.
officegrep mcp
Client config (Claude Desktop / Cursor / Codex / any MCP host):
{
"mcpServers": {
"officegrep": {
"command": "officegrep",
"args": ["mcp", "--db", "/Users/me/.officegrep/index.db"]
}
}
}
| Tool | What it does |
|---|---|
search_docs | Full-text search → file path, locator (p 42, slide 3, Sheet1!12, page 7), highlighted snippet |
list_docs | Indexed files with block counts |
index_folder | Build / refresh the index (incremental) |
The protocol is a hand-written JSON-RPC over stdio — no MCP SDK dependency.
docx / pptx → zipfile + lxml, read the XML directly
xlsx → openpyxl (read_only)
pdf → pypdf (optional)
txt / md → line chunks, line numbers kept