Back to Browse

Sextant MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Search your own PDFs, Markdown and text files from any assistant. Local, no key, cited passages.

About

Search your own PDFs, Markdown and text files from any assistant. Local, no key, cited passages.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

5 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

env_vars

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

What You'll Need

Set these up before or after installing:

A folder of documents to index on start and keep in step with, e.g. ~/DocumentsOptional

Environment variable: SEXTANT_FOLDER

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "sextant-kb": {
      "command": "uvx",
      "args": [
        "sextant-kb==0.14.0"
      ],
      "env": {
        "SEXTANT_FOLDER": "your-sextant-folder-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

sextant

Search your own documents from any AI assistant — and see the numbers that say how well the search works.

sextant is a knowledge base that runs on your own machine as a standard Model Context Protocol server. Point it at a folder of PDF, Markdown or text files, plug it into Claude Desktop or any other MCP client, and ask. Answers come from your documents and name the file and the page.

A question answered from the indexed documents, each claim followed by a numbered citation

A real answer from the project's own web interface (2026-11-12). Each numbered marker opens the passage it came from.

Install

Mac or Linux: open Terminal, paste this line and press Enter.

curl -LsSf https://github.com/hulagerushikesh/sextant/releases/latest/download/install.sh | sh

Windows: open PowerShell, paste this line and press Enter.

powershell -ExecutionPolicy ByPass -c "irm https://github.com/hulagerushikesh/sextant/releases/latest/download/install.ps1 | iex"

It asks one question, which folder to search, and then:

  • installs sextant together with the Python it needs, so there is nothing to install first;
  • downloads the search models, once (about 350 MB in all the first time);
  • adds sextant to every AI tool it finds on the computer: Claude Code, Claude Desktop, Codex (the ChatGPT app or the terminal program), VS Code and Cursor. Each settings file is backed up first.

Then quit and reopen your AI tool and ask: "search my documents for …". In the ChatGPT app, sextant works inside Codex tasks, not plain chat.

Installed a new AI tool later, or want a different folder? Run the same line again. sextant-kb --doctor checks everything and names the fix; sextant-kb --remove takes sextant out of every tool.

No terminal? For the Claude desktop app only, download the .mcpb file from the releases page and double-click it (Claude Desktop: one file, below).

The installer has been run end to end on clean Windows, Linux and Mac test machines; tell us in an issue if it does not work on yours.

Install by hand with pip

Four steps. Most of the time is two downloads — about 170 MB of libraries, then about 180 MB of search models. No account and no key. It needs Python 3.11 to 3.14 — check first, because an older or newer one fails with a confusing "no matching distribution" message:

python3 --version

1. Install it into a folder of its own, so its location is known:

python3 -m venv ~/sextant
~/sextant/bin/pip install sextant-kb

Then get it ready: this downloads the search models (about 180 MB, once) and checks everything, so the assistant's first start needs no internet.

~/sextant/bin/sextant-kb --setup

2. Add your documents — any folder of PDF, Markdown or text files. Scanned PDFs are read with text recognition, which downloads about 4 MB the first time it meets one; for another language set SEXTANT_OCR_LANG=eng+mar (English and Marathi) or eng+hin.

~/sextant/bin/sextant-ingest ~/Documents/notes -r

A note that it is storing text only is expected: an optional model-written overview per document needs a Gemini key, and nothing else does. Searching happens on your machine, over the folder you choose. Your assistant reads only the passages that answer each question, as it would if it opened those files itself, and sextant hides card numbers, CVVs, passwords, PINs, keys and identity or bank account numbers in them first (What is hidden, below). To add more documents later, quit the assistant first: only one program may write the library at a time, and sextant-ingest refuses, saying so, while an assistant has it open.

3. Plug it into your assistant. In Claude Desktop: Settings → Developer → Edit Config, then add this and restart the app. The command must be a full path; echo ~/sextant/bin/sextant-kb prints yours.

{
  "mcpServers": {
    "knowledge-base": {
      "command": "/Users/you/sextant/bin/sextant-kb"
    }
  }
}

4. Ask. For example: "Search my knowledge base — what do my notes say about onboarding?" The assistant calls the search tool and answers from your documents, with the source of each passage.

To see what is indexed, or take a document back out:

~/sextant/bin/sextant-forget --list

Any other MCP client works the same way: its server command is the full path to sextant-kb. On Windows the config file is %APPDATA%\Claude\claude_desktop_config.json and a virtual environment keeps its commands in Scripts\ rather than bin/; this project has not been tested on Windows.

Claude Desktop: one file

A sextant-<version>.mcpb file, from the releases page, installs it in the Claude desktop app with no terminal: double-click it, choose the folder to search, and wait while it indexes. It needs Python 3.11 to 3.14 on the computer. Without one, the app downloads Python (about 20 MB) from github.com during the install, which is where two of the first three people to try it got stuck:

  • "operation timed out" while downloading cpython-… from github.com: the network blocked or slowed that site. Switch networks (a phone hotspot works), or install Python 3.12 from python.org, quit Claude fully, and install the file again.
  • onnxruntime has no wheel (or no matching distribution) for the computer: an older bundle picked a Python newer than 3.14. Use a bundle from 0.11.2 or later, which asks for a supported one.

On a Mac with Apple silicon there is a second file, sextant-<version>-macos-arm64.mcpb (about 330 MB), which carries its own Python, libraries and search models: from 0.12.6 it downloads nothing, at install or on its first start, so neither error above can happen and it works with no internet connection. Reading scans in a language other than English downloads a few MB once. The other file downloads the search models (about 180 MB) on its first start.

By hand, one tool at a time

The installer above does this for you. To do it yourself: with uv installed, one pasted line replaces the four steps: it installs sextant, gets it ready, tells the assistant about it, and points it at a folder. Change ~/Documents to the folder you want searched. Each line runs --setup first, which installs sextant and downloads its search models (a few hundred MB, once) in the terminal, so the assistant's first start downloads nothing and works offline. When the assistant starts it, the folder is indexed in the background and kb_stats shows the progress and any file it could not read. While it runs, files added, changed or deleted in the folder show up in search within about a minute; only files it indexed from the folder are ever removed, and a folder that goes missing (an unplugged drive) removes nothing. --python keeps uv off a Python newer than sextant's libraries support.

Claude Code (the terminal program; for the Claude desktop app, use the .mcpb bundle instead):

uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb --setup && claude mcp add sextant --scope user --env SEXTANT_FOLDER=~/Documents -- uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb

Codex (the codex terminal program):

uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb --setup && codex mcp add sextant --env SEXTANT_FOLDER=~/Documents -- uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb

In the ChatGPT app, sextant works in Codex tasks, not in ChatGPT's plain chat, which runs nothing on your computer. Without the codex command, run the part before && above, then add this to ~/.codex/config.toml and restart the app. Some apps cannot find uvx by name: if sextant does not start, replace uvx with the full path that which uvx prints.

[mcp_servers.sextant]
command = "uvx"
args = ["--python", ">=3.11,<3.15", "--from", "sextant-kb>=0.13.0", "sextant-kb"]
env = { SEXTANT_FOLDER = "~/Documents" }

VS Code and Cursor take the same command; neither has been tried with sextant yet. VS Code (needs the code command: in VS Code run Shell Command: Install 'code' command in PATH once):

uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb --setup && code --add-mcp '{"name":"sextant","command":"uvx","args":["--python",">=3.11,<3.15","--from","sextant-kb>=0.13.0","sextant-kb"],"env":{"SEXTANT_FOLDER":"~/Documents"}}'

Cursor: add this to ~/.cursor/mcp.json.

{"mcpServers": {"sextant": {"command": "uvx", "args": ["--python", ">=3.11,<3.15", "--from", "sextant-kb>=0.13.0", "sextant-kb"], "env": {"SEXTANT_FOLDER": "~/Documents"}}}}

One library for every assistant. Claude, Codex and the rest share one library on this computer, whatever folder each is given: a document indexed for one can answer a question asked in another.

If it does not work, this checks everything, downloads nothing, and names the fix:

uvx --python '>=3.11,<3.15' --from 'sextant-kb>=0.13.0' sextant-kb --doctor

What your assistant gets

ToolDoes
kb_searchFinds the passages that answer a question, ranked, with source and page
kb_listLists every document with its title, size and what it is about
kb_ingestAdds documents; re-using an id replaces the old version
kb_statsLibrary size, search model, where it is stored
kb_ann_benchmark, kb_ann_compareCompare index types on your own library
kb_selftest_sample, kb_selftest_gradeA self-test: your assistant writes a question for a sample of passages and sextant checks whether search finds each one. Ask "how well does search work on my documents?". It answers with a short report: one score with how far chance could move it, the questions it missed, the files search cannot use (scanned, empty or copies), and at most one thing to fix first, backed by a number. A rough guide: on public test sets it followed true quality only roughly

What is hidden

Every tool result passes through one filter before your assistant sees it. Card numbers (checked with the card checksum), CVVs, passwords, PINs, one-time codes, API keys and tokens, private keys, and Aadhaar, PAN, passport, voter ID, driving licence and bank account numbers become [hidden: CVV] and so on, and the result says what was hidden. No tool argument turns it off, so asking for the value does not show it: the assistant points you to the file and page instead. Your files and the index are not changed. Names, addresses, dates of birth, phone numbers and e-mail addresses are left readable, since most questions about your own documents are about them. The filter matches patterns and labels ("Password: …"), so a secret written in a plain sentence with no label can still get through: keep documents you would never show anyone out of the folder.

Your library is stored in your user-data folder (set SEXTANT_CHROMA_DIR to move it), never inside the install, so reinstalling does not lose it.

How good is the search

Measured, on a committed test set, and re-checked on every change:

Search stageRight passage first
Meaning search only87%
Keyword search only78%
Both, fused91%
Both, fused, then re-read (the shipped pipeline)93%

65 test questions over 21 documents. Asked 10 questions those documents cannot answer, it declines 8.

On three public test sets (BEIR) the full search beats the published BM25 + re-reading baseline on all three sets; where a stage loses to a plain baseline is the first thing on the results page.

The full comparison, the nine ideas that were measured and rejected, and what a question costs are on one page: docs/RESULTS.md. Every figure there is generated from the measurement files.

The full app (optional)

The package above is the reusable part. This repository also holds what is built on it: an agent that decides for itself what to look up, a web interface with clickable citations, and the evaluation tools. That part needs a Gemini API key, which is the only key the project reads.

git clone https://github.com/hulagerushikesh/sextant && cd sextant
python3 -m venv .venv && ./.venv/bin/pip install -e ".[dev]" && (cd frontend && npm install)
cp .env.example .env

Add your key to .env, then:

./start_all_services.sh

The interface opens on http://localhost:3000. Or run both halves in containers with docker compose up --build. Details, every setting and the HTTP routes are in docs/running.md.

Honest status

Last checked 2026-11-12.

WhatState
Search over your own documents: PDF, Markdown, text; add, replace, removeWorking
Standard MCP server, published as sextant-kbWorking — on the public package index and in the official MCP registry as io.github.hulagerushikesh/sextant; the quickstart installs the latest release
Measured search quality with a check on every changeWorking
Agent, web interface, citations, cost per question, daily spend capWorking
Each person's uploads kept apart on a shared deploymentWorking — proven on a hosted box 2026-11-04
Hosted demoNone. The hosted box was removed 2026-11-13; deploy/ is the recipe to build one
Used by anyone outside the projectNot yet — see planning/PLAN.md

Known limits, stated plainly, are in docs/known-issues.md. The two that matter most to a new user: a scanned PDF is read by text recognition, in English unless you name other languages, so a poor scan gives wrong words; and the test questions were written alongside the test documents, so the numbers grade the search pipeline, not your library.

Read more

PageWhat is in it
docs/RESULTS.mdThe numbers, and what was rejected
docs/how-it-works.mdThe agent loop, the search stages and why each exists, the model port
docs/running.mdSetup, settings, routes, repository layout
docs/interface.mdWhat the web interface does and why
docs/known-issues.mdLimits and deliberate trade-offs
docs/history.mdThe roadmap as it was built, phase by phase
learning/A study path, plus the note behind every measurement
planning/The plan, progress and cost

License

MIT licensed — see LICENSE. PDF reading uses PyMuPDF, which is AGPL-licensed.

Reviews

No reviews yet

Be the first to review this server!