# nicholasglazer/gnosis-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/nicholasglazer/gnosis-mcp  
**GitHub Stars:** 33  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nicholasglazer-gnosis-mcp

## Description
Zero-config MCP server for searchable documentation. Loads markdown into SQLite (default) or PostgreSQL with FTS5/tsvector keyword search and optional pgvector hybrid semantic search.

## Tools
Capabilities this server exposes over MCP:

- **search_docs** — Search by keyword or hybrid semantic+keyword
- **get_doc** — Retrieve a full document by path
- **get_related** — Find linked/related documents (multi-hop, relation type filtering)
- **search_git_history** — Search indexed git commit history
- **get_context** — Usage-weighted context summary
- **get_graph_stats** — Knowledge graph topology: orphans, hubs, relation distribution
- **upsert_doc** — Create or replace a document
- **delete_doc** — Remove a document and its chunks
- **update_metadata** — Change title, category, tags

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "gnosis-mcp": {
    "command": "uvx",
    "args": ["gnosis-mcp"],
    "env": {
      "GNOSIS_MCP_RRF_K": "",
      "GNOSIS_MCP_ACCESS_LOG": ""
    }
  }
}
```

**Requires environment variables:** `GNOSIS_MCP_RRF_K`, `GNOSIS_MCP_ACCESS_LOG` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What nicholasglazer/gnosis-mcp MCP server does

The nicholasglazer/gnosis-mcp MCP server indexes documentation into a searchable database and exposes that index to MCP clients. SQLite is the default storage backend; PostgreSQL is available for larger deployments, with PostgreSQL full-text search and optional pgvector support.

Its primary use is local knowledge retrieval. Agents can search indexed content, retrieve a complete document, follow relationships between documents, and inspect how the corpus is structured. The index can also include git commit messages and documentation collected from websites through sitemap or link crawling.

Supported document inputs include Markdown, plain text, Jupyter notebooks, TOML, CSV, and JSON. RST and PDF support is available as an optional extension. File watching can re-ingest documents after changes, while prune and wipe operations help keep an index aligned with a source directory.

## How it works

Run the command-line ingestion step against a documentation directory, then start the MCP service. Keyword search uses SQLite FTS5 by default. Installing the embeddings extra and ingesting with embedding enabled adds local ONNX embeddings and hybrid semantic-plus-keyword retrieval; this does not require an API key. PostgreSQL uses tsvector search and can use pgvector for vector retrieval.

Documents may define `relates_to` frontmatter relationships. Those relationships form a navigable graph that supports multi-hop related-document queries and graph statistics such as orphan documents, highly connected hubs, and relation-type counts. Search results can include highlighted excerpts, while usage logging supports summaries of frequently served documents and unmatched queries.

## Setup and configuration

Install the package with `pip install gnosis-mcp` or use `uv tool install gnosis-mcp`. A basic setup is:

```bash
 gnosis-mcp ingest ./docs/
 gnosis-mcp serve
```

For semantic retrieval, install `gnosis-mcp[embeddings]` and run ingestion with `--embed`. The `check`, `search`, and `stats` commands provide local checks before connecting an editor or agent. The `setup` command can preview or write client configuration, and `doctor` checks whether the service is connected and has received calls.

`GNOSIS_MCP_RRF_K` tunes reciprocal-rank fusion for hybrid search. Access logging is enabled by default and can be disabled with `GNOSIS_MCP_ACCESS_LOG=false`. The database is created automatically for the default SQLite setup.

## Tools and capabilities

The nicholasglazer/gnosis-mcp MCP server exposes these tools:

- `search_docs` performs keyword or hybrid semantic search.
- `get_doc` returns a complete document by path.
- `get_related` follows linked documents, with multi-hop traversal and relation-type filtering.
- `search_git_history` searches indexed commit history.
- `get_context` returns a usage-weighted context summary.
- `get_graph_stats` reports document-graph topology and relation distribution.
- `upsert_doc` creates or replaces a document.
- `delete_doc` removes a document and its chunks.
- `update_metadata` changes a document title, category, or tags.

The command-line interface also supports website ingestion, git-history ingestion, pruning, evaluation, usage reporting, and token-savings reporting. These commands are separate from the MCP tool list but operate on the same indexed knowledge base.

## Limitations and notes

Semantic search requires the optional embeddings installation and increases ingestion work. The optional cross-encoder reranking feature is disabled by default; the README reports worse results and substantially higher latency for its tested development-document workloads, so it should be evaluated against the intended corpus before use.

Retrieval quality and token savings depend on corpus coverage and query specificity. The bundled evaluation command uses fixed sample documents and queries, so it is a smoke test rather than a measurement of a project's own documentation. Data remains on the host in the documented local-storage configuration, with PostgreSQL available when SQLite is not the desired backend.

_Full upstream README: https://allmcps.com/mcp/nicholasglazer-gnosis-mcp/readme_

