limit
(integer, optional): Max number of chunks to return (default is usually 5–10).
How to use it
limit is exposed by the MCP Markdown RAG MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the limit 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)
directory
(string, optional): The path to the folder containing .md files. Defaults to current directory.
force_reindex
(boolean, optional): If True, clears and rebuilds the full index. Defaults to False.
index_documents
query
(string, required): Your natural language query.
recursive
(boolean, optional): If True, recursively indexes all subdirectories. Defaults to False.
search