All Guides
indexing
local-docs
mcp

Index Your Local Docs, PDFs, and Obsidian Notes for AI

Point any MCP-compatible agent at your personal knowledge — markdown, PDFs, DOCX, Obsidian vaults.

April 6, 2026

Index Your Local Docs, PDFs, and Obsidian Notes for AI

Your Obsidian vault, project docs, and design specs sit on disk — but your AI agent can't search them. It opens files one by one, guessing at paths, and a 200-page vault might as well not exist. Indexed turns any local folder into a semantic search index that your agent can query through MCP. Markdown, PDFs, DOCX — everything stays local, nothing gets uploaded.

Prerequisites

Create a collection

Point Indexed at your folder. It recursively scans, parses every supported format, chunks, and embeds — all on your machine.

Terminal
indexed index create files -c project-docs -p ~/work/docs

The CLI streams progress while it parses, chunks, and embeds, then reports the finished collection.

Markdown, PDFs, DOCX, TXT, HTML — all parsed and embedded into a local vector index.

Obsidian vaults

Point -p at your vault root (e.g., ~/Documents/ObsidianVault). Indexed scans nested folders recursively and indexes the Markdown files themselves — wiki-link syntax and frontmatter are not interpreted.

Verify the collection:

Terminal
indexed index inspect project-docs

indexed index inspect project-docs prints the collection's type and source plus its document count, chunk count, size, and creation time.

Filter what gets indexed

Use regex patterns to include or exclude specific files:

Terminal
# Only index Markdown and text files
indexed index create files -c docs-only -p ~/work/docs \
  --include ".*\.md$" --include ".*\.txt$"

# Skip drafts and work-in-progress files
indexed index create files -c final-docs -p ~/work/docs \
  --exclude ".*\.draft\.md$" --exclude ".*WIP.*"

Patterns are regular expressions. Repeat --include or --exclude for multiple patterns.

Connect your AI agent

Add Indexed as a stdio MCP server (indexed → mcp → run). Use MCP Setup for Claude, Codex, Cursor, Copilot, and a copy-paste mcpServers pattern.

Example: asking your agent

You: What's our deployment process?

Your agent searches the project-docs collection and answers from your own files. Each result carries the document name and an excerpt of the matched chunk, so a question about the deployment process can come back with deploy-guide.md (the release pipeline and CI checks) and runbook.md (the rollback procedure) — because semantic search retrieves by meaning, not just string overlap.

Keeping the index fresh

Update a collection

Terminal
indexed index update project-docs

The output reports how many documents and chunks were before and after the update.

Only changed files are re-parsed when change tracking is configured appropriately — see Local Files & Code.

Update all collections at once

Terminal
indexed index update

Re-index from scratch

If you've changed configuration (chunk size, filters), run with --force to start clean:

Terminal
indexed index create files -c project-docs -p ~/work/docs --force

Automate with cron

crontab
# Update all Indexed collections every day at 8am (use `which indexed` for the path)
0 8 * * * /path/to/indexed index update 2>&1 >> ~/.indexed/update.log

CLI flags, OCR via configuration, and filtering are covered in Local Files & Code and Index commands.

Troubleshooting

Unsupported file format error — Check the supported formats list. If your format isn't listed, convert to PDF or Markdown, which parse most reliably.

No results returned — Verify the collection exists with indexed index inspect <name>, then test from the CLI:

Terminal
indexed index search "your query here"

If CLI search works but your agent returns nothing, the issue is in your MCP server configuration.

OCR not working on scanned PDFs — enable ocr_enabled in configuration, then re-index (see Parsing architecture).

Next steps