Document Search MCP Server
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., "@Document Search MCP Serverlist all files in my Documents folder"
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.
Document Search MCP Server
A local MCP server that provides read-only access to documents (Word, PDF, Excel, CSV, Visio, PNG, JPG) via the Model Context Protocol (MCP).
Features
Read-only access: Enforced at the code level.
Recursive scanning: Scans all subdirectories of configured directories.
File type validation: Uses magic numbers to validate file types.
Metadata extraction: Extracts metadata from all supported file types.
Logging: Logs all actions to a file (configurable).
Related MCP server: Docalyze
Installation
Clone the repository:
git clone https://github.com/bpweatherill/Document-Search-MCP-server.git cd Document-Search-MCP-serverInstall dependencies:
pip install -r requirements.txt
Usage
Start the Server
# Default: Scans ~/Documents
python -m src.main
# Custom directories and settings
python -m src.main --dir "C:\Users\Me\Documents" --dir "C:\Users\Me\Desktop" --max-file-size 50000000 --log-file "C:\logs\mcp.log" --log-level DEBUGMCP Client Interaction
Send JSON-RPC requests over stdio. Example:
{
"id": 1,
"method": "tools/call",
"params": {
"name": "list_files",
"arguments": {}
}
}Tools
Tool | Description | Arguments |
| List all allowed files. | None |
| Read a file and return its content. |
|
| Get metadata for a file. |
|
Configuration
Argument | Default | Description |
|
| Directories to scan (recursive). |
| 100MB | Skip files larger than this. |
|
| Path to the log file. |
|
| Logging level ( |
Security
Read-only: All file operations are read-only.
Path validation: Prevents directory traversal attacks.
File type validation: Ensures files match their extensions.
Testing
Run unit tests:
python -m unittest discover testsThis 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.
Latest Blog Posts
- 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/bpweatherill/Document-Search-MCP-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server