Local MCP server for indexing, searching, linking, and managing documentation with SQLite or PostgreSQL.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Gnosis MCP.
search_docsSearch by keyword or hybrid semantic+keyword
get_docRetrieve a full document by path
get_relatedFind linked/related documents (multi-hop, relation type filtering)
search_git_historySearch indexed git commit history
get_contextUsage-weighted context summary
get_graph_statsKnowledge graph topology: orphans, hubs, relation distribution
Stop pasting files into context. Your AI agent searches your local docs instead.
5โ10ร fewer tokens per lookup. 92 % Hit@5 on real dev docs. Zero cloud dependencies.
Quick Start ยท Documentation ยท Tools ยท Configuration ยท Full Reference
Ingest docs โ Search with highlights โ Stats overview โ Serve to AI agents
search_docs returns ranked, highlighted excerpts โ typically 300โ800 tokensgnosis-mcp eval), and a chunk-size sweep showing where the quality plateau actually sits.Full side-by-side vs Context7 / docs-mcp-server / mcp-local-rag: gnosismcp.com#compare.
pip install and goGNOSIS_MCP_RRF_K.[reranking] extra with a 22M-param ONNX model. Off by default. Test on your own corpus before enabling โ the bundled MS-MARCO reranker hurts dev-doc retrieval in our measurements.ingest-git).md .txt .ipynb .toml .csv .json + optional .rst .pdfrelates_to frontmatter creates a navigable document graphgnosis-mcp ingest --prune removes chunks whose source file was deleted. --wipe for a full reset before re-ingest.gnosis-mcp eval prints Hit@K / MRR / Precision@K in one command, against a bundled fixed fixture setFast. 8.7 ms mean MCP round-trip. Hybrid search p50 < 30 ms on a 700-doc corpus. Keyword QPS scales from 9,463 @ 100 docs to 471 @ 10,000 docs (full numbers).
Finds the right answer. On 558 real dev docs with 25 hand-written golden queries: Hit@5 = 0.92, nDCG@10 = 0.87, MRR = 0.79. On BEIR SciFact (5,183 docs, public retrieval benchmark): nDCG@10 = 0.671 โ within 1 % of the Lucene BM25 baseline.
Tokens saved. Each search_docs call returns 200โ500 tokens of on-point snippets instead of the 3,000โ15,000 tokens a full-file Read would have cost. Track your own with gnosis-mcp savings (v0.12.0+) โ the ledger writes to search_access_log on every call and aggregates per tool per --days N:
Typical compression runs 10โ60ร depending on corpus coverage and query specificity โ verify on yours. access_log is on by default; GNOSIS_MCP_ACCESS_LOG=false opts out.
The same ledger answers the other question โ what is this corpus being asked, and where does it come up empty โ with gnosis-mcp usage (v0.17.4+): calls, the queries that matched nothing, which documents are served most, which have never been served, and which clients are doing the asking.
Reproducible. gnosis-mcp eval runs a bundled retrieval-quality harness locally in one second โ but it ingests nine hardcoded sample documents into a temporary database and answers ten bundled queries, so it returns the same numbers for every corpus and is a smoke test, not a measurement of your docs. To score your own corpus, run python tests/bench/bench_real_corpus.py --corpus <docs-root> --golden <golden.jsonl> (the numbers above come from tests/bench/golden-knowledge.jsonl). tests/bench/*.py reproduce every number. Methodology: docs/benchmarks.md.
Rerankers stay off by default. The bundled MS-MARCO cross-encoder drops nDCG@10 by 27 points on dev-docs and adds 400ร latency; BGE-reranker-v2-m3 drops it 31 points at 2400ร. Test on your corpus before enabling โ full write-up: bench-experiments-2026-04-18.
That's it. Your AI agent can now search your docs.
Connect your client โ see llms-install.md for copy-paste JSON snippets for Claude Code, Claude Desktop, Cursor, Zed, opencode, Windsurf, VS Code, JetBrains, Cline, and any other MCP client.
Re-organized your docs? gnosis-mcp ingest ./docs --prune re-ingests and removes any DB chunk whose source file no longer exists. --wipe resets the entire index first. Or run gnosis-mcp prune ./docs --dry-run to preview what would be deleted. Pruning only touches documents this root is responsible for: crawled URLs and generated documents (git history) are left alone unless --include-crawled / --include-generated says otherwise.
Want semantic search? Add local embeddings โ no API key needed:
Test it before connecting to an editor:
Then wire it into the clients you actually use โ one command, no paths to edit:
setup resolves the command path for the machine it runs on instead of the one the README
assumed, and each block it installs is marker-delimited so re-running rewrites it in place. Where
a client does not read the server's own MCP instructions, it also installs the short rule that
gives the agent a reason to prefer gnosis over reading files โ a mounted server nobody calls is
the silent failure mode. doctor is the check for that: it reads the access log and tells you
whether a client has really called the server. Details:
docs/cli.md.
gnosis-mcp check is the gate: it exits 0 only when the backend started and the schema the
server needs is present, and it names whatever is missing before exiting 1. Keyword search needs
SQLite FTS5, which is compiled into your Python's SQLite rather than guaranteed by it โ check
reports it as FTS5: ready. Anything else: docs/troubleshooting.md.
Multi-arch image, ~140 MB, ships with local ONNX embeddings + REST:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/nicholasglazer-gnosis-mcp)<a href="https://allmcps.com/mcp/nicholasglazer-gnosis-mcp"><img src="https://allmcps.com/api/badge/nicholasglazer-gnosis-mcp?style=directory" alt="Gnosis MCP on AllMCPs" /></a>