Knowledge

Knowledge

A local MCP server that gives LLMs long-term memory by indexing code, infrastructure, logs, and docs into a queryable graph. It enables semantic and structural search, evidence-backed reasoning, and tracked plans that persist across sessions and teams.

Category
Visit Server

README

Knowledge

knowledge indexes your code, cloud infrastructure, logs, and docs into cross-linked graphs and serves them over MCP: hybrid code search, call-graph traversal, structural AST search and replace, and a reasoning graph where hypotheses carry their evidence. Runs as a local MCP server; any LLM that speaks MCP works from the graph instead of rediscovering your system every session.

Collectors keep the index current. The LLM queries it and gets the pieces it asked for, sized to the question: a whole-file read bloats the context with text that is not the answer, and a fragment read leaves gaps. Indexed retrieval is how the graph raises accuracy and lowers token spend.

Skills and agents run an engineering workflow (brainstorm → ticket → plan → implement) over the same graphs, with researchers, planners, reviewers, and implementers reading and writing shared state. Thoughts, decisions, tickets, and plans persist across sessions, machines, and teammates. The graph makes the agent's work auditable.

See it work

Index a repo, then ask questions grep can't answer. Against this repository:

search({ "queries": ["bisect embedding batch on token overflow"],
         "repo": "knowledge-mcp" })

// internal/embed/voyage.go — Voyage embedder: batches texts under item
//   and token budgets, classifies errors, bisects token-overflow batches
// internal/embed/voyage.go:180 isBatchTokenOverflow — detects batch token
//   overflow by unwrapping LLMError causes

Each result is a graph node. Walk the call graph from any hit:

traverse({ "start": "internal/embed/voyage.go:voyageEmbedder.EmbedBinaryBatch",
           "graph": "code", "repo": "knowledge-mcp",
           "edge_types": ["CALLS"], "direction": "in" })

// EmbedBinary                                     internal/embed/voyage.go
// TestVoyageEmbedder_BisectsOnBatchTokenOverflow  internal/embed/voyage_test.go
// TestVoyageEmbedder_PacksByTokenBudget           internal/embed/voyage_test.go
// ...

Shape questions get structural answers. This matches the parsed syntax tree, so whitespace, comments, and token order don't matter:

ast({ "operation": "match", "language": "go", "pattern": "defer $X.Close()" })

// 65 matches across 1,560 files in 185ms: every deferred Close,
// through whitespace, comments, and receiver renames

The same engine rewrites. Give replace a capture template ("defer safeClose($X)") and it previews the unified diff without touching disk (dry-run is the default), then applies atomically; a rewrite that no longer parses is rejected, never written. A mechanical multi-file refactor is one tool call.

The retrieval economics from the intro are visible here. When the question is "what is in this file," the index answers without the file: file_symbols returns each symbol's name, signature, line range, and summary.

file_symbols({ "file_path": "internal/embed/voyage.go", "repo": "knowledge-mcp" })

The file is 246 lines. The context gets the symbol list, and the agent can fetch just the symbol it needs.

Reasoning persists the same way. The hypothesis recorded while that overflow was being debugged comes back in a later session with its evidence attached:

thoughts({ "operation": "recall", "query": "voyage batch overflow" })

// 1. Voyage rejects the whole batch on token overflow, not the one long
//    text — bound batches by estimated tokens and bisect on overflow
//    [validated] charges: +2 (bisection test green; overflow retries gone)

And from any node you can keep walking: to the decision that shaped the code, the ticket that shipped it, or the log stream where it failed.

What's in the graph

Code intelligence. Hybrid BM25 + semantic search over 31 tree-sitter-chunked languages, an indexed call graph, and structural AST search and replace: match the shapes regex can't express, then rewrite every site from a capture template, gated by a dry-run diff and a per-file re-parse. "Is there code that does this" gets a real answer, so an agent can check what exists before writing it again.

Reasoning with evidence. Hypotheses are first-class nodes; evidence attaches as weighted positive or negative charges, and propagation lets contradictory beliefs find equilibrium. "Why did we do it this way" has an answer months later. The graph also reads back on itself: query reflection modes include tensions, which lists pairs of recorded thoughts whose evidence points in opposite directions, and personality, blind_spots, and influence, which read the same thought graph from other angles. See Reasoning.

Workflow. Brainstorm → ticket → plan → implement, with every artifact in the graph and tickets synced to Linear in real time. One coordinator dispatches researchers, planners, reviewers, and implementers against shared state, so no single context has to hold everything, and a compaction or restart loses nothing the graph already holds. Jira, GitHub Issues, and Asana are on the roadmap. The full process model, with its routing and re-entry paths, is in Concepts.

Infrastructure and runtime. Collectors for cloud (AWS, GCP, Azure, Kubernetes), CI/CD, logs (CloudWatch, Loki, Elasticsearch, Stackdriver, K8s Events), web pages, and PDFs — each a graph, all cross-linked to code. An incident traces from log line to deploy to commit to the design decision behind it. The built-in families are not a closed set: custom_collector registers your own collector binary, and the graph it emits gets the same treatment as the rest: summarized, embedded, searchable, syncable.

Practice graphs hold best-practice patterns collected from books, references, and websites, and sit beside your code, so an agent can reach for the established idiom instead of the first thing that compiles. The full write-up for each pillar: Capabilities.

Install

One line, macOS (Apple Silicon) or Linux (x86_64 / arm64):

curl -fsSL https://raw.githubusercontent.com/fulminate-io/knowledge-mcp/main/install.sh | sh

The script downloads the latest release of both binaries (checksum-verified) into ~/.knowledge/bin, then hands off to knowledge setup. Setup writes your first-run config (auto-detecting an LLM provider), installs the agents and skills for Claude Code and/or Codex if those CLIs are present, and registers the MCP daemon with them. It also installs user-level services (launchd on macOS, systemd --user on Linux) so the graph server (127.0.0.1:15022) and MCP daemon (127.0.0.1:15023) start at login. Everything runs as your user; no sudo anywhere.

Re-running the same line upgrades in place; your config is never touched. To configure interactively (pick a provider, paste optional API keys), run knowledge setup in a terminal any time. Headless provisioning: append flags after sh -s -- (e.g. --headless, --no-service); credentials come from the environment (ANTHROPIC_API_KEY, VOYAGE_API_KEY, LINEAR_API_KEY, ...) or ~/.knowledge/config, never from flags. On Windows, follow the manual install guide.

<details> <summary><b>Homebrew</b></summary>

brew tap fulminate-io/knowledge
brew install knowledge
brew services start knowledge-server   # local graph server  (127.0.0.1:15022)
brew services start knowledge          # shared MCP daemon    (127.0.0.1:15023)
knowledge install-claude-assets        # wire Claude Code (or: install-codex-assets)

Run the services as your user, never with sudo: a root LaunchDaemon can't read your login keychain.

</details>

<details> <summary><b>From source</b></summary>

Requirements: Go 1.26+, CGO enabled (tree-sitter C bindings). Building from source produces the knowledge binary only; run knowledge install afterwards to fetch the matching prebuilt knowledge-server from GitHub releases (checksum-verified).

git clone https://github.com/fulminate-io/knowledge-mcp.git
cd knowledge-mcp
CGO_ENABLED=1 go build -o bin/knowledge .

Source-built users (no brew services) run the processes by hand:

knowledge serve                    # MCP daemon on 127.0.0.1:15023
knowledge start / status / stop    # knowledge-server lifecycle (15022)

</details>

First index

Restart your editor so it picks up the new MCP server, then trigger the first index from inside the LLM:

collect({ "type": "code", "id": "/absolute/path/to/repo" })

The first pass takes 30s–2min for a typical repo: tree-sitter chunks the files, the LLM summarizes each node. Subsequent indexes are incremental: only changed files re-summarize.

No credentials are required to get here. On first run the server auto-detects an LLM provider: it prefers a logged-in Claude or Codex CLI on $PATH, then falls back to ANTHROPIC_API_KEY, OPENAI_API_KEY, or GEMINI_API_KEY from the environment.

[!WARNING] A large first index is thousands of LLM calls — one summary per node. If your summarizer is a logged-in claude or codex CLI, every call draws on that subscription's session quota. For a big repo, point the summarizer at an API provider first: add a [summarizer] section to ~/.knowledge/config with provider = "anthropic", "openai", or "gemini" and the matching key, then restart the daemon. See Configuration. Subsequent indexes are incremental and cheap either way.

Full walkthroughs: Set up with Claude Code · Set up with Codex. knowledge doctor diagnoses install and daemon/server health. To connect another MCP client by hand, point it at the daemon's streamable-HTTP endpoint: http://127.0.0.1:15023/mcp.

Two keys worth setting

Both are optional; both change what you get.

Key With it Without it
VOYAGE_API_KEY Hybrid semantic + keyword search; the LLM finds code and knowledge by meaning Keyword (BM25) search only
LINEAR_API_KEY Projects and tickets sync to Linear in real time; status flows both ways Tickets stay local to the graph

Get a Voyage key at voyageai.com; the Linear key is a personal API key from Linear's settings (Settings → API). Both go in ~/.knowledge/config (TOML, auto-created on first run; config wins over the environment):

[credentials]
voyage_api_key = "..."
linear_api_key = "..."

To pin LLM providers and models explicitly, the same file takes [default] and per-consumer sections; see Configuration for the full reference.

Documentation

Step-by-step guides ship in docs/guides/: setup (Claude Code, Codex, Configuration), the mental model (Concepts, Capabilities, Reasoning), collection (Web · PDF · Recipes), and reference (Binaries & CLI · Agents · Skills).

Tools

23 MCP tools across ten graph families. The full reference is KNOWLEDGE_TOOLS.md. The ones you'll touch daily: search, ast, traverse, thoughts, record_decision, create_project / create_ticket / create_plan, assemble, collect. Generic primitives (query, mutate, delete, manage) route by graph and operation.

Fulminate Cloud (optional)

Knowledge OSS runs entirely local: bring your own LLM, zero credentials, full feature set. Fulminate Cloud runs the same graph as a shared team environment: cloud machines your coding agents run in, one graph the whole team reads and writes, workflows and routing that turn inbound events (webhooks, cron ticks, Slack) into runs, and dashboards assembled over a dev environment and published as pages. The environment tracks every run and agent, keeps usage analytics and audit logs, gates what agents may run with hooks, and supports BYOC when everything must stay in your own cloud account. All tiers are BYOK: bring your own LLM key; Fulminate never resells tokens.

If one machine and one developer is your whole setup, the local server is the product, not a trial of the paid one.

knowledge login    # browser-PKCE OAuth flow; token stored in your keychain
knowledge logout   # revoke + clear keychain

Logged in, the daemon serves tool calls from the hosted graph server; logged out, it runs fully local. A subscription with mcp:knowledge:write permission unlocks the sync tool: push local graph state to cloud, pull team-visible state down, promote a working copy as the team head.

Status

Pre-1.0. Active development toward Apache 2.0 OSS launch.

Shipping today: MCP server with ten-graph architecture, thought reasoning with DeGroot propagation, 30+ topology analyzers, branch overlays, auto-compaction recovery, tokenless OSS boot, browser-PKCE OAuth login with keychain-backed credentials.

Contributing

Contribution guide, build rules, test conventions, and architectural constraints: CLAUDE.md.

License

Apache 2.0 on OSS launch. See LICENSE. Fulminate Cloud commercial use is separately licensed; see fulminate.io/legal.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured