Skip to main content
Glama

Kioku — persistent memory for AI agents in Obsidian

Kioku (記憶) means “memory” in Japanese.

Latest tagged server release: 2.3.0 · Documentation · Releases

Kioku is a local-first Model Context Protocol server that lets Claude Code, Codex, OpenCode, and other MCP clients continue work across fresh sessions by reading and updating structured knowledge in an Obsidian vault.

It combines typed MCP contracts, a strict vault filesystem boundary, concurrent work-session ownership, full-text and semantic retrieval, and an optional Obsidian bridge. The server supports local stdio and authenticated Streamable HTTP deployments.

The develop branch can contain verified but unreleased changes beyond the latest tag. Use generated contracts from the branch you are running.

The handoff, proven

Kioku's core claim is that one agent's work survives its process exiting, and a second, unrelated agent can pick it up cold. scripts/Kioku.HandoffDemo drives the real MCP stdio protocol end to end. Agent 1 opens a work session, records a plan, an ADR, and a bug, then closes the session. Agent 2 starts in another process and connection, calls get_project_context, retrieves the persisted work, and continues without accessing Agent 1's session. A third connection verifies both sessions afterward.

See docs/multi-agent-handoff-demo.md for the reproducible procedure and captured transcript.

Related MCP server: Grove

Why Kioku

  • Deterministic handoff — agents can record project context, decisions, plans, bugs, daily notes, and session handoffs.

  • Obsidian-native storage — Markdown and YAML frontmatter remain readable and editable without Kioku.

  • Safe vault access — writes stay inside the configured vault; external reads and permanent deletion require explicit opt-in.

  • Stable MCP contracts — tool schemas, annotations, prompts, and resources are mechanically documented from live discovery.

  • Local AI support — optional Ollama embeddings and generation keep note content on your machine under the default configuration.

  • Optional UI bridge — the Obsidian plugin can open notes, run approved commands, and integrate supported plugins.

Repository scope

This repository is the source of truth for the .NET MCP server, its integrations, packaging, deployment, tests, and public operational documentation. The Obsidian plugin is maintained and released separately in sandovaldavid/kioku-obsidian.

Open issues, historical plans, and pull-request descriptions are not implementation evidence. Current behavior is defined by the target branch's code, tests, and generated contracts.

Quick start

Install the server

dotnet tool install --global kioku-mcp-server

Set the vault path and register kioku in your MCP client:

export KIOKU_VAULT_PATH="/absolute/path/to/your/vault"
kioku

For supported client installers:

./scripts/add-to-client.sh codex --vault /absolute/path/to/your/vault
./scripts/add-to-client.sh opencode --vault /absolute/path/to/your/vault
./scripts/add-to-client.sh antigravity --vault /absolute/path/to/your/vault

Claude Code users can install the bundled plugin and skill:

claude plugin marketplace add sandovaldavid/kioku
claude plugin install kioku@kioku

See the installation guide for manual client configuration, source builds, Docker, and the optional Obsidian plugin.

Architecture

MCP client
  ├─ stdio (local process)
  └─ Streamable HTTP (long-running authenticated server)
          │
          ▼
Kioku.Mcp.Server (.NET 10)
  ├─ typed MCP tools, prompts, and resources
  ├─ bounded vault indexing and hybrid retrieval
  ├─ application and infrastructure services
  └─ optional authenticated WebSocket bridge
          │
          ▼
Obsidian vault + optional Obsidian plugin (sandovaldavid/kioku-obsidian)

See the current architecture for operational component boundaries.

Public contracts and guides

Start with the documentation index. The main maintained references are:

Regenerate and verify public metadata with:

node scripts/generate-public-docs.mjs --write
node scripts/generate-public-docs.mjs --check

Security defaults

  • stdio is the default transport.

  • Streamable HTTP binds to 127.0.0.1 by default.

  • Non-loopback HTTP requires KIOKU_API_KEY unless an explicit unsafe override is set.

  • Browser origins and trusted proxies use exact allowlists.

  • External reads and permanent deletion are disabled by default.

  • Obsidian bridge authentication uses a separate shared token.

Review Streamable HTTP security before exposing Kioku through a VM, LAN, reverse proxy, container, or tunnel.

Development

dotnet restore Kioku.slnx
dotnet build Kioku.slnx --configuration Release --no-restore
dotnet test src/Kioku.Mcp.Server.Tests/Kioku.Mcp.Server.Tests.csproj --configuration Release --no-restore
dotnet format Kioku.slnx whitespace --verify-no-changes --no-restore
dotnet format Kioku.slnx style --verify-no-changes --no-restore
corepack enable
pnpm install --frozen-lockfile
pnpm docs:check

See CONTRIBUTING.md and AGENTS.md for repository conventions.

License

MIT — see LICENSE.

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
13hResponse time
1dRelease cycle
33Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    D
    maintenance
    Provides an MCP server that allows AI assistants to interact with Obsidian vaults, enabling reading/writing notes, managing metadata, searching content, and working with daily notes.
    Last updated
    36
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    An open-source MCP server that makes your Obsidian vault accessible from any AI client with hybrid search, read/write, and graph analysis capabilities.
    Last updated
    9
    23
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    An Obsidian plugin that runs an MCP server, enabling AI agents to read, edit, search notes, and run Dataview queries in your vault.
    Last updated
    3
    BSD Zero Clause

View all related MCP servers

Related MCP Connectors

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

  • An MCP server that integrates with Discord to provide AI-powered features.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandovaldavid/kioku'

If you have feedback or need assistance with the MCP directory API, please join our Discord server