Gnosis MCP logo

Gnosis MCP

by nicholasglazer

Indexes local documentation for keyword, semantic, graph, and git-history search through MCP.

Install Gnosis MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nicholasglazer-gnosis-mcp": {
      "command": "uvx",
      "args": [
        "gnosis-mcp"
      ],
      "env": {
        "GNOSIS_MCP_RRF_K": "YOUR_VALUE_HERE",
        "GNOSIS_MCP_ACCESS_LOG": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GNOSIS_MCP_RRF_K=YOUR_VALUE_HERE --env GNOSIS_MCP_ACCESS_LOG=YOUR_VALUE_HERE --transport stdio nicholasglazer-gnosis-mcp -- uvx gnosis-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx gnosis-mcp

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Searches local documentation through the nicholasglazer/gnosis-mcp MCP server, using SQLite by default or PostgreSQL with full-text and optional vector search. It ingests Markdown and other supported formats, exposes document retrieval and graph tools, and can index git commit history or crawled websites. Reach for it when an agent needs searchable, local documentation context instead of loading whole files.

Use cases

  • Search a local documentation corpus from an AI agent
  • Retrieve related architecture and API documents
  • Index git commit history for development context
  • Track document usage and knowledge-graph structure

Key features

  • SQLite FTS5 keyword search
  • Optional local ONNX hybrid semantic search
  • PostgreSQL with tsvector and pgvector support
  • Document relationship and graph analysis
  • Git history and website ingestion
  • Document create, update, and delete tools

Tools9

What Gnosis MCP lets your agent do. Expand a tool for its parameters.

Self-reported~116 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 117d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev · gnosis-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars33Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed9Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Gnosis MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gnosis MCP

nicholasglazer/gnosis-mcp is an MCP server that connects AI clients to a searchable local documentation index stored in SQLite or PostgreSQL. Its main tools search and retrieve documents, find related content, inspect graph statistics, search indexed git history, summarize usage context, and modify indexed documents and metadata.

Install it with `pip install gnosis-mcp` or `uv tool install gnosis-mcp`. Then ingest a directory with `gnosis-mcp ingest ./docs/` and start the service with `gnosis-mcp serve`. The `setup` command can preview or write MCP client configuration.

Install the embeddings extra and ingest with embedding enabled: `pip install gnosis-mcp[embeddings]`, followed by `gnosis-mcp ingest ./docs/ --embed`. The server then uses local ONNX embeddings with keyword search for hybrid retrieval and does not require an API key.

Yes, Cursor is named as a supported MCP client in the project documentation. Use `gnosis-mcp setup --write` to write client configuration, or use the installation snippets provided by the project for manual setup.

Yes, it can search indexed git commit history through the `search_git_history` tool. Git history must first be ingested into the knowledge base with the project's git-ingestion command.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGnosis MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nicholasglazer-gnosis-mcp?style=directory)](https://allmcps.com/mcp/nicholasglazer-gnosis-mcp)
HTML Embed
<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>