# okf-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/mfdaves/okf-mcp  
**GitHub Stars:** 10  
**npm Downloads (last month):** 2178  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/okf-mcp

## Description
Validate, search, graph, and safely author local Open Knowledge Format bundles.

## Tools
Capabilities this server exposes over MCP:

- **inputSchema**
- **code**
- **okf.read**
- **okf.write**

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

```json
"mcpServers": {
  "okf-mcp": {
    "command": "npx",
    "args": ["-y","@mfdaves/okf-mcp@0.12.0-rc.1"]
  }
}
```

## Documentation

## What okf-mcp does

okf-mcp works with Open Knowledge Format v0.2 bundles: directory trees containing Markdown concept files with YAML frontmatter. It turns those files into searchable concepts, graph relationships, provenance views, and MCP resources and tools. A local root maps directly to one bundle, while an optional project configuration can combine multiple bundles into a workspace.

The server supports both inspection and controlled authoring. Agents can validate concepts and proposed changes, create proposals for new concepts or updates, review proposal details, and explicitly accept or reject them. Producer workflows can generate candidate content from configured external sources, validate that output, and publish it under an ownership manifest that limits which files the producer may change.

## How it works

The default operating mode is local-first. The process reads a bundle from `--root`, discovers concepts by their extensionless paths, and builds in-memory search and graph views. Search uses BM25+ retrieval through MiniSearch; YAML is parsed with `js-yaml`, and Markdown structure is handled with CommonMark. The core does not require a database, embeddings, build step, or hosted service.

Multiple roots can be federated through `okf.project.yaml`. The project file can also define relation types, generators, remote bundles, and metadata producers. Public GitHub bundles may be loaded with `--remote-bundle`; the loader fetches Markdown concepts and only explicitly referenced inert assets. Remote material is read-only.

Attested-computation features are deliberately static. The server can inspect contracts and digests, prepare checks, and verify declared parameter and receipt field names, but it does not execute computation code or claim that a receipt has been attested. Compatibility checks support selected OKF v0.1 forms, including legacy timestamp and citation patterns, as review-oriented migration checks.

## Setup and configuration

Node.js 22 or newer is required. Install the package or clone the repository, then run the `okf` or `okf-mcp` binary with a bundle root:

```bash
npx -y @mfdaves/okf-mcp@latest --root ./path/to/okf validate
okf-mcp --root ./path/to/okf mcp
```

Without an explicit CLI command, the process starts a stdio MCP server. The `--root` option is the recommended single-bundle setup. `--project` selects an optional multi-bundle configuration, and `--remote-bundle id=https://github.com/<owner>/<repo>/tree/<ref>/<path>` adds a public GitHub bundle for read-only use.

A project configuration can assign bundle IDs and paths, include or exclude file patterns, define typed relations, configure filesystem plugins, and attach external producers. The `--authoring` option enables MCP authoring workflows, while `--allow-remote-tool` enables the related remote-tool behavior. The HTTP `serve` command can use `OKF_WRITE_TOKEN` for write access.

## Tools and capabilities

The MCP tool set covers:

- Bundle, concept, type, tag, relation, and edge-kind listing.
- Structured concept lookup, text search, graph traversal, and provenance inspection.
- Reading bundle assets and mapped Git sources without implicitly executing referenced code.
- Validation of concepts, changes, computation contracts, receipts, and v0.2 migrations.
- Loading and listing remote bundles from public GitHub paths.
- Preparing computation checks and inspecting attested-computation data.
- Suggesting concept paths and proposing new concepts, updates, computations, and migrations.
- Listing, retrieving, accepting, and rejecting proposals before changes are applied.
- Listing configured producers and applying validated changes under explicit ownership rules.

The CLI provides corresponding commands for validation, search, concept lookup, graph output, neighbors, paths, provenance, assets, source reading, migration checks, generation, producer operations, MCP, and HTTP serving.

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

