
An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

A local-first document search and indexing system offering hybrid semantic and keyword search over local files and Confluence pages through a Model Context Protocol server.
docsearch-mcp: local document search MCP server is cataloged as an MCP server attributed to patrickkoss. A local-first document search and indexing system offering hybrid semantic and keyword search over local files and Confluence pages through a Model Context Protocol server. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License Version 2. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for docsearch-mcp: local document search MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It provides chunk resources accessible via docchunk URIs to retrieve the full content of a specific document chunk by ID.
Yes, the doc-search tool accepts optional source, repo, pathPrefix, and other parameters to filter results, plus a mode for auto, vector, or keyword search.
README.md · 6c18afd5ee2d · Fetched 2026-11-13 12:37:23 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
A local-first document search and indexing system that provides hybrid semantic + keyword search across local files (including PDFs) and Confluence pages through the Model Context Protocol (MCP). Perfect for AI assistants like Claude Code/Desktop to access your documentation, codebase, and research materials.
# Install globally
npm install -g docsearch-mcp
# Or use with npx
npx docsearch-mcp --help
# Pull the image
docker pull ghcr.io/patrickkoss/docsearch-mcp:v0.0.2
# Run the MCP server with proper permissions
docker run --rm -i \
-v /path/to/your/documents:/app/documents \
-v /path/to/data:/app/data \
--env-file .env \
--user $(id -u):$(id -g) \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.2
Add to your MCP client configuration:
{
"mcpServers": {
"docsearch": {
"command": "npx",
"args": ["docsearch-mcp", "start"]
}
}
}
For development or customization:
# Clone the repository
git clone https://github.com/patrickkoss/docsearch-mcp.git
cd docsearch-mcp
# Quick setup with Make
make setup
# Or manual setup
pnpm install
cp .env.example .env
# Edit .env with your API keys and configuration
# Ingest documents
docsearch-mcp ingest files # Index local files
docsearch-mcp ingest confluence # Index Confluence pages
docsearch-mcp ingest all --watch # Index all sources with file watching
# Search documents
docsearch-mcp search "your query" # Basic search
docsearch-mcp search "typescript" -k 5 -o json # JSON output, top 5 results
docsearch-mcp search "API docs" -s confluence # Search only Confluence
# Get help
docsearch-mcp --help
docsearch-mcp search --help
# Run the MCP server directly
npx docsearch-mcp start
# Or if installed globally
docsearch-mcp start
# Run with official Docker image (recommended)
docker run --rm -i \
-v /path/to/your/documents:/app/documents \
-v /path/to/data:/app/data \
--env-file .env \
--user $(id -u):$(id -g) \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.2
# Run CLI commands with Docker
docker run --rm -i \
-v /path/to/your/documents:/app/documents \
-v /path/to/data:/app/data \
--env-file .env \
--user $(id -u):$(id -g) \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.2 \
npx docsearch-mcp search "your query"
# Alternative: Use Docker volumes (simpler but less control)
docker run --rm \
-v ./documents:/app/documents \
-v docsearch-data:/app/data \
--env-file .env \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.2
# For development (requires cloning repo)
docker-compose up -d docsearch-mcp
When using the official Docker image, create a .env file:
echo "OPENAI_API_KEY=your-openai-key" > .env
echo "FILE_ROOTS=/app/documents" >> .env
Key considerations for Docker deployment:
/app/documents in the container/app/data to persist the SQLite database--user $(id -u):$(id -g) to avoid permission issues with mounted volumes.env file or environment variablesghcr.io/patrickkoss/docsearch-mcp:v0.0.2 for production deploymentsRecommended approach with proper permissions:
# Basic usage with user permissions (avoids file ownership issues)
docker run --rm -i \
-v /absolute/path/to/documents:/app/documents \
-v /absolute/path/to/data:/app/data \
--env-file .env \
--user $(id -u):$(id -g) \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.5
# For MCP server integration (background service)
docker run -d --name docsearch-mcp \
-v /absolute/path/to/documents:/app/documents \
-v /absolute/path/to/data:/app/data \
--env-file .env \
--user $(id -u):$(id -g) \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.5
Alternative approach with Docker volumes:
# Using Docker volumes (simpler but less direct file access)
docker run --rm \
-v ./documents:/app/documents \
-v docsearch-data:/app/data \
--env-file .env \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.2
Docker Permissions Explained:
--user $(id -u):$(id -g): Runs the container with your user ID and group ID, preventing file permission issuesCreate a .env file from .env.example and configure:
EMBEDDINGS_PROVIDER=openai
OPENAI_API_KEY=your_openai_key
OPENAI_EMBED_MODEL=text-embedding-3-small
FILE_ROOTS=.
FILE_INCLUDE_GLOBS=**/*.{ts,js,py,md,txt,pdf,png,jpg,jpeg,gif,svg,webp}
FILE_EXCLUDE_GLOBS=**/node_modules/**,**/dist/**
ENABLE_IMAGE_TO_TEXT=true
IMAGE_TO_TEXT_PROVIDER=openai
IMAGE_TO_TEXT_MODEL=gpt-4o-mini
# Use SQLite (default, local-first)
DB_TYPE=sqlite
DB_PATH=./data/index.db
# OR use PostgreSQL with pgvector (for scalability)
DB_TYPE=postgresql
POSTGRES_CONNECTION_STRING=postgresql://user:password@localhost:5432/docsearch
# OR use PostgreSQL with VectorChord (high-performance vector search)
DB_TYPE=vectorchord
POSTGRES_CONNECTION_STRING=postgresql://user:password@localhost:5432/docsearch
# Optional VectorChord tuning (shown with defaults)
VECTORCHORD_RESIDUAL_QUANTIZATION=true
VECTORCHORD_LISTS=100
VECTORCHORD_SPHERICAL_CENTROIDS=true
VECTORCHORD_BUILD_THREADS=4
VECTORCHORD_PROBES=10
VectorChord is a PostgreSQL extension that uses RaBitQ compression and hierarchical K-means for faster indexing and lower storage costs compared to pgvector's IVFFlat. It is fully pgvector-compatible and requires the vchord extension installed in your PostgreSQL instance (or use the tensorchord/vchord-suite Docker image).
CONFLUENCE_BASE_URL=https://yourcompany.atlassian.net
CONFLUENCE_EMAIL=your@email.com
CONFLUENCE_API_TOKEN=your_confluence_token
CONFLUENCE_SPACES=SPACE1,SPACE2
# Advanced filtering (all optional)
# Filter by parent page IDs - only index pages under these parent pages
CONFLUENCE_PARENT_PAGES=12345678,87654321
# Title patterns to include (supports * wildcards)
CONFLUENCE_TITLE_INCLUDES=API*,User Guide,*Documentation*
# Title patterns to exclude (supports * wildcards)
CONFLUENCE_TITLE_EXCLUDES=Draft*,*Archive*,Test*
Confluence Filtering Options:
* for flexible pattern matching (e.g., API* matches any title starting with "API")The system automatically detects and processes different file types:
.ts, .js, .py, .go, .rs, .java, .cpp, .c, .rb, .php, .kt, .swift.md, .mdx, .txt, .rst, .adoc, .yaml, .yml, .json.pdf files are automatically parsed with text extraction and metadata preservation.docx, .xlsx, .pptx files with text extraction and format-specific metadata; .doc, .xls, .ppt via OnlyOffice conversion.epub files with chapter-aware parsing and metadata extraction.mp3, .wav, .flac, .ogg, .m4a, .aac files with metadata extraction and optional transcription.mp4, .webm, .mkv, .avi, .mov files with metadata extraction and optional transcription.png, .jpg, .jpeg, .gif, .svg, .webp files with optional AI-powered description generationPDF files are processed with:
Office documents are processed with:
mammoth, preserving document structureLegacy Office formats require a running OnlyOffice Document Server:
docker run -d --name onlyoffice -p 8080:80 onlyoffice/documentserver
Then configure in .env:
ONLYOFFICE_URL=http://localhost:8080
# ONLYOFFICE_JWT_SECRET=your-secret # if JWT auth is enabled on your server
# ONLYOFFICE_TIMEOUT=30000 # conversion timeout in ms (default: 30000)
When ONLYOFFICE_URL is not set, legacy Office files are silently skipped during ingestion.
For superior PDF parsing with OCR, layout analysis, and table extraction, you can use Docling as the document parser:
# Run docling-serve as a Docker container
docker run -d --name docling -p 5001:5001 quay.io/docling-project/docling-serve
# For CPU-only (smaller image):
docker run -d --name docling -p 5001:5001 quay.io/docling-project/docling-serve-cpu
Then configure in .env:
DOCUMENT_PARSER=docling
DOCLING_URL=http://localhost:5001
Docling supports: PDF, DOCX, PPTX, XLSX, HTML, images (PNG, JPG, TIFF), and EPUB. Audio, video, and code files always use the built-in parsers regardless of this setting.
When DOCUMENT_PARSER is not set or set to builtin, the existing lightweight parsers (pdf-parse, mammoth, etc.) are used.
EPUB files are processed with:
Audio/video files are processed with:
music-metadataENABLE_AUDIO_TRANSCRIPTION=trueWHISPER_API_KEY (defaults to OPENAI_API_KEY), WHISPER_BASE_URL, WHISPER_MODEL (defaults to whisper-1)Image files support optional AI-powered description generation:
ENABLE_IMAGE_TO_TEXT environment variableThe CLI tool provides a convenient way to ingest and search documents directly from the command line:
All CLI flags support configuration precedence: CLI args > Environment variables > Config file
| Flag | Environment Variable | Default | Description |
|---|---|---|---|
-c, --config <file> | - | .env | Configuration file path |
--embeddings-provider <provider> | EMBEDDINGS_PROVIDER | openai | Embeddings provider (openai or tei) |
--openai-api-key <key> | OPENAI_API_KEY | - | OpenAI API key |
--openai-base-url <url> | OPENAI_BASE_URL | - | OpenAI base URL (for custom endpoints) |
--openai-embed-model <model> | OPENAI_EMBED_MODEL | text-embedding-3-small | OpenAI embedding model |
--openai-embed-dim <dimension> | OPENAI_EMBED_DIM | 1536 | OpenAI embedding dimension |
--tei-endpoint <url> | TEI_ENDPOINT | - | Text Embeddings Inference endpoint |
--enable-image-to-text | ENABLE_IMAGE_TO_TEXT | false | Enable image-to-text processing |
--image-to-text-provider <provider> | IMAGE_TO_TEXT_PROVIDER | openai | Image-to-text provider |
--image-to-text-model <model> | IMAGE_TO_TEXT_MODEL | gpt-4o-mini | Image-to-text model |
--confluence-base-url <url> | CONFLUENCE_BASE_URL | - | Confluence base URL |
--confluence-email <email> | CONFLUENCE_EMAIL | - | Confluence email |
--confluence-api-token <token> | CONFLUENCE_API_TOKEN | - | Confluence API token |
--confluence-spaces <spaces> | CONFLUENCE_SPACES | - | Confluence spaces (comma-separated) |
--file-roots <roots> | FILE_ROOTS | . | File roots to index (comma-separated) |
--file-include-globs <globs> | FILE_INCLUDE_GLOBS | **/*.{go,ts,tsx,js,py,rs,java,md,mdx,txt,yaml,yml,json,pdf} | File include patterns |
--file-exclude-globs <globs> | FILE_EXCLUDE_GLOBS | **/{.git,node_modules,dist,build,target}/** | File exclude patterns |
--db-type <type> | DB_TYPE | sqlite | Database type (sqlite, postgresql, or vectorchord) |
--db-path <path> | DB_PATH | ./data/index.db | SQLite database path |
--postgres-connection-string <string> | POSTGRES_CONNECTION_STRING | - | PostgreSQL connection string |
docsearch ingest [source] [options]
Arguments:
source - Source to ingest: files, confluence, or all (default: all)Options:
-w, --watch - Watch for file changes and re-indexExamples:
# Basic ingestion with environment config
docsearch ingest files
docsearch ingest confluence
docsearch ingest all --watch
# Override config with CLI args
docsearch ingest files --file-roots "./src,./docs" --openai-api-key sk-xxx
# Use custom config file and database
docsearch --config prod.env --db-path /data/prod.db ingest all
# Ingest with custom file patterns
docsearch ingest files \
--file-include-globs "**/*.{ts,md,py}" \
--file-exclude-globs "**/node_modules/**,**/venv/**"
# Use PostgreSQL instead of SQLite
docsearch ingest all \
--db-type postgresql \
--postgres-connection-string "postgresql://user:pass@localhost:5432/docs"
docsearch search <query> [options]
Arguments:
query - Search query (required)Options:
| Flag | Default | Description |
|---|---|---|
-k, --top-k <number> | 10 | Number of results to return (1-100) |
-s, --source <source> | - | Filter by source: file or confluence |
-r, --repo <repo> | - | Filter by repository name |
-p, --path-prefix <prefix> | - | Filter by path prefix |
-m, --mode <mode> | auto | Search mode: auto, vector, or keyword |
-o, --output <format> | text | Output format: text, json, or yaml |
--include-images | - | Include images in search results |
--images-only | - | Search only images |
Examples:
# Basic search
docsearch search "typescript interface"
# Limit results and format as JSON
docsearch search "API documentation" --top-k 5 --output json
# Search only Confluence with repository filter
docsearch search "deployment guide" --source confluence --repo backend-docs
# Semantic search only with path filtering
docsearch search "authentication" --mode vector --path-prefix src/auth/
# Override database and output as YAML
docsearch --db-path /custom/index.db search "error handling" --output yaml
# Complex search with multiple filters
docsearch search "React hooks" \
--source file \
--repo frontend \
--path-prefix src/components/ \
--mode auto \
--top-k 20 \
--output json
# Search including images (architecture diagrams, screenshots)
docsearch search "user authentication flow" --include-images
# Search only images for diagrams and charts
docsearch search "system architecture" --images-only --output json
The CLI supports multiple configuration sources in order of precedence:
--config path/to/.env).env.local file.env file (lowest priority)The MCP (Model Context Protocol) server provides seamless integration with Claude Code and other MCP-compatible tools.
All configuration options are passed via environment variables to the MCP server:
| Environment Variable | Default | Description |
|---|---|---|
EMBEDDINGS_PROVIDER | openai | Embeddings provider (openai or tei) |
OPENAI_API_KEY | - | OpenAI API key (required if using OpenAI) |
| Environment Variable | Default | Description |
|---|---|---|
OPENAI_BASE_URL | - | OpenAI base URL (for custom endpoints) |
OPENAI_EMBED_MODEL | text-embedding-3-small | OpenAI embedding model |
OPENAI_EMBED_DIM | 1536 | OpenAI embedding dimension |
TEI_ENDPOINT | - | Text Embeddings Inference endpoint |
FILE_ROOTS | . | File roots to index (comma-separated) |
FILE_INCLUDE_GLOBS | **/*.{go,ts,tsx,js,py,rs,java,md,mdx,txt,yaml,yml,json,pdf} | File include patterns |
FILE_EXCLUDE_GLOBS | **/{.git,node_modules,dist,build,target}/** | File exclude patterns |
CONFLUENCE_BASE_URL | - | Confluence base URL |
CONFLUENCE_EMAIL | - | Confluence email |
CONFLUENCE_API_TOKEN | - | Confluence API token |
CONFLUENCE_SPACES | - | Confluence spaces (comma-separated) |
DB_TYPE | sqlite | Database type (sqlite, postgresql, or vectorchord) |
DB_PATH | ./data/index.db | SQLite database path |
POSTGRES_CONNECTION_STRING | - | PostgreSQL connection string |
Install the package:
npm install -g docsearch-mcp
Create your configuration:
# Create a .env file in your project directory
echo "OPENAI_API_KEY=your-openai-key" > .env
echo "FILE_ROOTS=." >> .env
Add to Claude Code MCP settings:
{
"mcpServers": {
"docsearch": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "your-openai-key",
"EMBEDDINGS_PROVIDER": "openai",
"FILE_ROOTS": ".,../other-project",
"DB_PATH": "/path/to/your/index.db"
}
}
}
}
{
"mcpServers": {
"docsearch": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-v",
"/path/to/your/documents:/app/documents",
"-v",
"docsearch-data:/app/data",
"--env-file",
".env",
"ghcr.io/patrickkoss/docsearch-mcp:v0.0.2"
]
}
}
}
Create a docker-compose.yml file:
version: '3.8'
services:
docsearch-mcp:
image: ghcr.io/patrickkoss/docsearch-mcp:v0.0.5
volumes:
- ./documents:/app/documents
- docsearch-data:/app/data
env_file:
- .env
stdin_open: true
volumes:
docsearch-data:
Then configure MCP:
{
"mcpServers": {
"docsearch": {
"command": "docker",
"args": ["exec", "-i", "docsearch-mcp", "node", "dist/src/server/mcp.js"]
}
}
}
{
"mcpServers": {
"docsearch-work": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"FILE_ROOTS": "/work/projects/frontend,/work/projects/backend",
"FILE_INCLUDE_GLOBS": "**/*.{ts,tsx,js,py,md,yaml}",
"DB_PATH": "/work/data/work-index.db",
"CONFLUENCE_BASE_URL": "https://company.atlassian.net",
"CONFLUENCE_SPACES": "DEV,API,DOCS"
}
},
"docsearch-personal": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"FILE_ROOTS": "/home/user/projects,/home/user/documents",
"DB_PATH": "/home/user/.docsearch/personal.db",
"EMBEDDINGS_PROVIDER": "tei",
"TEI_ENDPOINT": "http://localhost:8080/embeddings"
}
}
}
}
{
"mcpServers": {
"docsearch": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"DB_TYPE": "postgresql",
"POSTGRES_CONNECTION_STRING": "postgresql://user:pass@localhost:5432/docsearch",
"FILE_ROOTS": ".,/other/projects"
}
}
}
}
{
"mcpServers": {
"docsearch": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"DB_TYPE": "vectorchord",
"POSTGRES_CONNECTION_STRING": "postgresql://user:pass@localhost:5432/docsearch",
"FILE_ROOTS": ".,/other/projects",
"VECTORCHORD_PROBES": "20"
}
}
}
}
The MCP server provides these tools for Claude Code:
doc-searchSearch indexed documents with optional output formatting.
Parameters:
query (string, required): Search querytopK (number, optional): Number of results to return (default: 10, max: 100)source (string, optional): Filter by source (file or confluence)repo (string, optional): Filter by repository namepathPrefix (string, optional): Filter by path prefixmode (string, optional): Search mode (auto, vector, keyword, default: auto)outputFormat (string, optional): Output format (text, json, yaml, default: text)includeImages (boolean, optional): Include images in search resultsimagesOnly (boolean, optional): Search only imagesExample:
Use the doc-search tool to find "TypeScript interfaces" with JSON output format, limited to 5 results from file sources only.
doc-ingestIngest documents from files or Confluence.
Parameters:
source (string, required): Source to ingest (files, confluence, or all)watch (boolean, optional): Watch for file changes and re-index (default: false)Example:
Use the doc-ingest tool to index all local files and Confluence pages.
doc-ingest-statusGet indexing statistics and status.
No parameters required.
Example:
Use the doc-ingest-status tool to check how many documents are currently indexed.
The server also provides chunk resources via URIs:
docchunk://{chunk_id}: Retrieve full content of a specific document chunk by ID# 1. Install globally
npm install -g docsearch-mcp
# 2. Configure with your API key
echo "OPENAI_API_KEY=sk-your-key-here" > .env
echo "FILE_ROOTS=.,../other-project" >> .env
# 3. Index your documents
docsearch-mcp ingest all --watch &
# 4. Test search
docsearch-mcp search "how to deploy" --output json --top-k 3
# 5. Test MCP server
npx docsearch-mcp start
# 1. Setup production environment
echo "OPENAI_API_KEY=sk-your-key" > .env
echo "FILE_ROOTS=/app/documents" >> .env
# Add other configuration as needed
# 2. Create documents directory
mkdir -p documents
cp -r /path/to/your/docs/* documents/
# 3. Run the official Docker image
docker run -d \
--name docsearch-mcp \
-v $(pwd)/documents:/app/documents \
-v docsearch-data:/app/data \
--env-file .env \
ghcr.io/patrickkoss/docsearch-mcp:v0.0.5
# 4. Index documents
docker exec docsearch-mcp npx docsearch-mcp ingest all
# 5. Test search
docker exec docsearch-mcp npx docsearch-mcp search "authentication" -o json
Setup for a TypeScript/React Project:
# CLI configuration
docsearch-mcp ingest files \
--file-roots "./src,./docs,./README.md" \
--file-include-globs "**/*.{ts,tsx,md,yaml,json}" \
--file-exclude-globs "**/node_modules/**,**/dist/**,**/.git/**"
# Search for React patterns
docsearch-mcp search "useEffect hook patterns" --source file --top-k 10
docsearch-mcp search "TypeScript interface" --mode vector --output json
MCP Configuration:
{
"mcpServers": {
"project-docs": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"FILE_ROOTS": "./src,./docs,./README.md",
"FILE_INCLUDE_GLOBS": "**/*.{ts,tsx,md,yaml,json}",
"FILE_EXCLUDE_GLOBS": "**/node_modules/**,**/dist/**",
"DB_PATH": "./project-search.db"
}
}
}
}
Team Documentation Hub:
{
"mcpServers": {
"team-knowledge": {
"command": "npx",
"args": ["docsearch-mcp", "start"],
"env": {
"OPENAI_API_KEY": "sk-your-key",
"FILE_ROOTS": "/team/frontend,/team/backend,/team/mobile,/team/docs",
"CONFLUENCE_BASE_URL": "https://company.atlassian.net",
"CONFLUENCE_SPACES": "TEAM,API,ARCH,DEPLOY",
"CONFLUENCE_EMAIL": "team@company.com",
"CONFLUENCE_API_TOKEN": "your-token",
"DB_TYPE": "postgresql",
"POSTGRES_CONNECTION_STRING": "postgresql://user:pass@localhost/team_docs"
}
}
}
}
Personal Research Setup:
# Index academic papers and personal notes
docsearch-mcp ingest files \
--file-roots "/home/user/papers,/home/user/notes,/home/user/projects" \
--file-include-globs "**/*.{pdf,md,txt,py,ipynb}" \
--embeddings-provider tei \
--tei-endpoint "http://localhost:8080/embeddings"
# Search across all personal knowledge
docsearch-mcp search "machine learning optimization" --mode auto --top-k 15
# Search for diagrams and technical images
docsearch-mcp search "neural network architecture" --include-images --top-k 10
docsearch-mcp search "flowchart" --images-only --output json
# Setup for research document collection
docsearch-mcp ingest files \
--file-roots "/research/papers,/research/reports" \
--file-include-globs "**/*.{pdf,docx,md,txt}" \
--openai-embed-model "text-embedding-3-large" \
--openai-embed-dim 3072
# Search through research papers
docsearch-mcp search "neural network architectures" \
--mode vector \
--top-k 20 \
--output yaml
# Search only TypeScript files in components directory
docsearch-mcp search "button component" \
--source file \
--path-prefix src/components/ \
--mode auto
# Find Confluence deployment docs from specific space
docsearch-mcp search "kubernetes deployment" \
--source confluence \
--repo DEVOPS \
--mode keyword
# Semantic search across all sources with high precision
docsearch-mcp search "error handling patterns" \
--mode vector \
--top-k 50 \
--output json | jq '.results[] | select(.score > 0.8)'
# Search for architecture diagrams and flowcharts
docsearch-mcp search "system design diagram" \
--images-only \
--mode vector \
--output json
# Include images when searching for UI/UX content
docsearch-mcp search "user interface design" \
--include-images \
--path-prefix docs/ \
--top-k 20
Text Output (Human-readable):
docsearch-mcp search "authentication middleware" --output text
JSON Output (For scripts):
# Get results for further processing
RESULTS=$(docsearch-mcp search "API rate limiting" --output json)
echo "$RESULTS" | jq '.results[].path' | head -5
YAML Output (For documentation):
# Generate documentation from search results
docsearch-mcp search "configuration options" --output yaml > config-docs.yml
# Compare search modes
docsearch-mcp search "async function" --mode keyword --top-k 5
docsearch-mcp search "async function" --mode vector --top-k 5
docsearch-mcp search "async function" --mode auto --top-k 5
# Check what's indexed
docsearch-mcp ingest-status
# Use smaller embedding model for speed
docsearch-mcp ingest all \
--openai-embed-model "text-embedding-3-small" \
--openai-embed-dim 1536
# Use local TEI for privacy/speed
docker run -d --name tei -p 8080:80 \
ghcr.io/huggingface/text-embeddings-inference:cpu-1.2 \
--model-id sentence-transformers/all-MiniLM-L6-v2
docsearch-mcp ingest all \
--embeddings-provider tei \
--tei-endpoint http://localhost:8080/embeddings
# .github/workflows/docs-index.yml
name: Update Documentation Index
on:
push:
paths: ['docs/**', 'src/**/*.md', 'README.md']
jobs:
update-index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Build docsearch
run: pnpm build
- name: Update search index
run: |
pnpm start:cli ingest files \
--file-roots "." \
--openai-api-key "${{ secrets.OPENAI_API_KEY }}" \
--db-path "./search-index.db"
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
#!/bin/bash
# update-docs.sh - Automated documentation indexing
# Check if API key is set
if [ -z "$OPENAI_API_KEY" ]; then
echo "Please set OPENAI_API_KEY environment variable"
exit 1
fi
# Index all project documentation
echo "Indexing project documentation..."
docsearch-mcp ingest files \
--file-roots "./src,./docs,./examples" \
--file-include-globs "**/*.{ts,js,md,yaml,json}" \
--db-path "./project-index.db"
# Generate search summary
echo "Search index updated. Statistics:"
docsearch-mcp ingest-status --output json | jq '.documents'
Run make help to see all available commands:
# Development Commands
make install # Install dependencies
make dev # Start development server for MCP
make dev-ingest # Start development ingestion
make setup # Setup project for development
# Build Commands
make build # Build the project
make clean # Clean all generated files
# Quality Assurance
make lint # Run linter
make lint-fix # Run linter with auto-fix
make format # Format code with Prettier
make typecheck # Run TypeScript type checking
make test # Run tests
make test-run # Run tests once
make test-unit # Run unit tests only
make test-integration # Run integration tests (requires Docker)
make check-all # Run all quality checks
# Production Commands
make start # Start production MCP server
make start-ingest # Start production ingestion
# Data Management
make ingest-files # Ingest local files
make ingest-confluence # Ingest Confluence pages
make watch # Watch for file changes and re-index
make clean-data # Clean data directory
# CLI Tool
pnpm dev:cli # CLI development mode
pnpm start:cli # CLI production mode (after build)
# Ingestion (legacy scripts)
pnpm dev:ingest files # Index local files
pnpm dev:ingest confluence # Index Confluence pages
pnpm dev:ingest watch # Watch for file changes
# MCP Server
pnpm dev:mcp # Development server
pnpm start:mcp # Production server
# Quality
pnpm lint # Run linter
pnpm test # Run tests
pnpm test:unit # Run unit tests only
pnpm test:integration # Run integration tests (requires Docker)
pnpm build # Build project
The system follows a clean ports and adapters (hexagonal) architecture:
┌─────────────────┐ ┌─────────────────┐
│ Local Files │ │ Confluence │
└─────────┬───────┘ └─────────┬───────┘
│ │
▼ ▼
┌─────────────────────────────────┐
│ Ingestion Engine │
│ • Content extraction │
│ • Smart chunking │
│ • Embedding generation │
└─────────────┬───────────────────┘
│
▼
┌─────────────────────────────────┐
│ Database Layer │
│ SQLite (sqlite-vec) OR │
│ PostgreSQL (pgvector) OR │
│ PostgreSQL (VectorChord) │
│ • Document metadata │
│ • Text chunks │
│ • Vector embeddings │
│ • Full-text search index │
└─────────────┬───────────────────┘
│
┌─────────┴─────────┐
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ CLI Tool │ │ MCP Server │
│ • Text output │ │ • Tool calls │
│ • JSON output │ │ • Resources │
│ • YAML output │ │ • Claude integration │
│ • Config mgmt │ │ • Ingestion tools │
└─────────────────┘ └─────────────────┘
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the project
Create your feature branch (git checkout -b feature/AmazingFeature)
Set up the development environment:
make setup
Make your changes and ensure quality:
make check-all # Run linter, typecheck, and tests
make format # Format your code
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Open a Pull Request
SQLite is the default for local development and requires no extra infrastructure. When you're ready to run Postgres or VectorChord on a production VM, use the Ansible playbook in deploy/ansible/.
It handles:
ansible-vaultpg_dump backups with optional S3 uploadSee deploy/ansible/README.md for the full operator guide.
This project is licensed under the Apache License Version 2 - see the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for docsearch-mcp: local document search MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/docsearch-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Runs a free Answer Engine Optimization and AI visibility report for a domain and returns a shareable report plus a structured summary.

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.