Let the AI you run in KoboldCpp search your own documents, and the KoboldCpp wiki, while you chat.
This program plugs into KoboldCpp through MCP (Model Context Protocol), KoboldCpp's way of letting a model use outside tools. Once it's connected, you can ask the AI in Kobold Lite to:
- search a vector database of your files and answer from the passages it finds, naming the files they came from;
- create a new database from files and folders on your computer;
- list your databases, and check on or stop a database that's being created.
It comes with kobold_wiki, a ready-made database of the entire official KoboldCpp wiki, so you can ask KoboldCpp questions as soon as it's set up.
- What you need
- Part 1: Install the program
- Part 2: Start KoboldCpp with the program
- Part 3: Turn on tool calling in Kobold Lite
- Part 4: Ask questions
- Next time
- Tips
- Embedding models
- The command line
- Keeping the KoboldCpp wiki database current
- Troubleshooting
- Windows 10 or 11.
- Python 3.11, 3.12, 3.13 or 3.14 (the standard version, not the free-threaded one). When you install it, tick Add python.exe to PATH.
- Git.
- Microsoft C++ Build Tools with the Desktop development with C++ workload.
- KoboldCpp 1.106 or newer (this guide uses 1.123), and a GGUF model that can use tools. This guide uses Qwen3.5 4B.
- About 12 GB of free disk space: roughly 7 GB for the program's libraries, 1.2 GB for the embedding model that searches the wiki, and room for the installer's downloads.
- An NVIDIA graphics card is recommended. Without one the program still works, but creating databases is slower.
Download the latest release from the Releases page (under Assets, choose Source code (zip)) and unzip it to a short folder path that uses only English letters and numbers, for example C:\VectorDB-Plugin-for-KoboldAI. Inside, you'll find a src folder.
Open the src folder in File Explorer, click the address bar, type cmd and press Enter. A command prompt opens in that folder.
Type these two commands, pressing Enter after each:
python -m venv ..\Scripts\activateThe prompt now starts with (src).
python setup_windows.pyThe installer first asks four questions. Click Yes on each one. (The second one describes your graphics card, so its wording may differ.)
It then installs everything the program needs, which can take a while since most of it is downloaded. At the end it downloads Yuan-embedding-2.0-en, the embedding model that searches the KoboldCpp wiki database, and saves a file called mcp.json in the folder you unzipped (next to src). The last lines look like this:
Saved C:\VectorDB-Plugin-for-KoboldAI\mcp.json
Load it in KoboldCpp's launcher: open the Loaded Files tab and choose this file as the MCP JSON file.
mcp.json tells KoboldCpp how to start this program. You'll pick it in KoboldCpp's launcher in Step 7.
From the KoboldCpp releases page, download koboldcpp.exe if you have an NVIDIA graphics card, koboldcpp-nocuda.exe if you don't, or koboldcpp-oldpc.exe for an older computer.
You also need a model in GGUF format. This guide uses Qwen3.5-4B-Q4_K_M.gguf (2.7 GB) from unsloth/Qwen3.5-4B-GGUF (open Files and versions and click the download arrow next to the file).
Double-click koboldcpp.exe. In the launcher's Quick Launch tab, click Browse next to GGUF Text Model and pick the model file.
- Click Loaded Files in the list on the left.
- Click Browse next to MCP JSON and pick the
mcp.jsonfile from Step 4.
Click Launch. KoboldCpp loads the model, starts this program in the background and opens Kobold Lite, its chat page, in your browser at http://localhost:5001.
The launcher doesn't remember your choices. To keep them, click Save Config (blue) before Launch and save the .kcpps file. Next time, click Load Config, pick that file and click Launch.
The first time Kobold Lite opens, it asks you to pick a UI style. Any style works; this guide uses Classic UI. Click Set UI.
Click Settings in the menu bar at the top.
- Tick Enable Toolcalling. The program's tools, whose names start with
vectordb_, appear in the list below. Leave Include KoboldCpp MCP Bridge ticked. - Click OK.
- Optional, in blue: tick Automatically Execute Tools before you click OK if you trust this program. The AI then runs its searches without asking you to approve each one.
Kobold Lite remembers these settings in your browser, so you only do this once.
Type a question in the box at the bottom and press Enter. Naming the database helps the AI pick it, for example:
Search the kobold_wiki database: how do I set up MCP tool calling in KoboldCpp?
Unless you ticked Automatically Execute Tools, each tool call waits for you. Click Approve to let it run. Inspect shows exactly what the AI wants to search for first.
The AI then answers from the passages it found:
One question can need more than one approval. After each result, KoboldCpp asks the AI whether it needs another tool call before it answers.
Ask the AI to create one, giving it a name and the full path of a folder or file:
Create a vector database called recipes from the files in D:\Recipes
Approve its calls. The database is built in the background, and the AI can check on it for you. A few files take under a minute; large folders can take much longer, and you can keep chatting meanwhile. The AI chooses an embedding model that suits the language of your files; see Embedding models.
Then ask about your files:
Search my recipes: how long do I bake the banana bread, and at what temperature?
The program reads PDF, Word, text, Markdown, HTML, e-mail, spreadsheet, RTF and image files. Images are described by a small vision model, which is downloaded the first time a database includes images.
- Start
koboldcpp.exe, click Load Config and pick the file you saved in Step 8 (or repeat Steps 6 and 7). - Click Launch.
- Ask away. Kobold Lite still has tool calling turned on.
- Choose a capable model. Small models sometimes pick the wrong tool or repeat a search. If the AI repeats exactly the same search within three minutes, the program tells it to use the passages it already has.
- Ask for more passages. A search returns 5 passages by default. Ask for a number, such as "search kobold_wiki and give me 10 passages about context shifting", and you'll get up to 20.
- Scanned PDFs have no text to search. Mention that your PDFs are scans and the AI can make them searchable first; it saves a searchable copy named
NAME_OCR.pdfnext to each one. - The first search is slower, about 10 seconds, because the embedding model has to load. Later searches are quick.
- Deleting a database is only possible from the command line, so the AI can never delete one.
Each database is built with one embedding model, which turns text into the numbers a search compares. When the AI creates a database, it picks a model for the language of your files using the rankings below. You can also name one yourself, for example "Create a database called notes from C:\Notes using geevec". A model is downloaded the first time a database uses it.
Scores are retrieval benchmark results; higher is better.
| Rank | Model | English retrieval | Legal retrieval (RTEB) | Download size | Dimensions |
|---|---|---|---|---|---|
| 1 | Yuan-embedding-2.0-en | 70.69 | — | 1,192 MB | 1,024 |
| 2 | Jasper-Token-Compression-600M | 66.19 | 43.93 | 1,215 MB | 2,048 |
| Rank | Model | Multilingual retrieval | English retrieval | Download size | Dimensions |
|---|---|---|---|---|---|
| 1 | geevec-embeddings-1.0-lite | 70.91 | 62.23 | 732 MB | 4,096 |
| 2 | harrier-oss-v1-0.6b | 70.75 | — | 1,190 MB | 1,024 |
The kobold_wiki database uses Yuan-embedding-2.0-en, which the installer downloads. python cli.py models shows the same rankings and which models you've downloaded.
Everything the AI can do, and more, is also available from a command prompt. Open one in the src folder, activate the virtual environment with .\Scripts\activate, then run a command:
| Command | What it does |
|---|---|
python cli.py databases |
List your databases |
python cli.py create NAME FOLDER --model yuan |
Create a database from a folder |
python cli.py search NAME "your question" |
Search a database |
python cli.py files NAME |
List the files in a database |
python cli.py delete NAME |
Delete a database |
python cli.py status |
Show the progress of a database being created |
python cli.py models |
List the embedding models and what each is best for |
python cli.py settings |
Show or change settings, such as the number of passages per search |
python cli.py wiki |
Check whether the KoboldCpp wiki database is current |
python cli.py mcp-config |
Save mcp.json again, for example after moving the program's folder |
Run python cli.py --help, or python cli.py COMMAND --help for one command, to see every option.
Each release of this program comes with the KoboldCpp wiki as it was when the release was made. To check for changes since then:
python cli.py wikiTo download the current wiki and rebuild the database when it has changed:
python cli.py wiki update- Kobold Lite's Tools tab says "No tools were found from any reachable server." KoboldCpp was started without
mcp.json. Close KoboldCpp and repeat Steps 6 to 8, making sure the MCP JSON field shows the file. - KoboldCpp's window shows
MCP Init ErrororMCP Setup Error. KoboldCpp couldn't start the program, usually because the program's folder was moved or renamed aftermcp.jsonwas saved. Runpython cli.py mcp-configin the activatedsrcfolder and pick the newmcp.jsonin the launcher. - A search says the embedding model isn't downloaded. Run the
python cli.py downloadcommand it shows. - The AI answers without searching. Name the database in your question, as in the examples above.
- The AI asks for approval many times. That's KoboldCpp asking it after every result whether another tool call is needed. Tick Automatically Execute Tools (Step 12) if you trust this program.











