directory
(string, optional): The path to the folder containing .md files. Defaults to current directory.
How to use it
directory is exposed by the MCP Markdown RAG MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the directory tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install MCP Markdown RAG
$
npx @modelcontextprotocol/inspector uv --directory /ABSOLUTE/PATH/TO/MCP-Markdown-RAG run server.pyOther tools in MCP Markdown RAG (6)
force_reindex
(boolean, optional): If True, clears and rebuilds the full index. Defaults to False.
index_documents
limit
(integer, optional): Max number of chunks to return (default is usually 5–10).
query
(string, required): Your natural language query.
recursive
(boolean, optional): If True, recursively indexes all subdirectories. Defaults to False.
search