Kahuna

Kahuna

A persistent memory MCP server for AI copilots that automatically surfaces relevant context across sessions, projects, and teams, eliminating the need to repeat information.

Category
Visit Server

README

<div align="center"> <h1>๐Ÿง  Kahuna</h1> <p><strong>Your AI copilot's memory. Persistent context across sessions, projects, and teams.</strong></p> <p>Give your coding agent the context it needs โ€” automatically.</p> <p> <a href="https://github.com/Aurite-ai/kahuna/stargazers"><img src="https://img.shields.io/github/stars/Aurite-ai/kahuna?style=social" alt="GitHub stars"></a> <a href="https://www.npmjs.com/package/@aurite-ai/kahuna"><img src="https://img.shields.io/npm/v/@aurite-ai/kahuna" alt="npm version"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a> <a href="https://github.com/Aurite-ai/kahuna/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg" alt="PRs Welcome"></a> <a href="https://github.com/Aurite-ai/kahuna/commits"><img src="https://img.shields.io/github/last-commit/Aurite-ai/kahuna" alt="Last commit"></a> </p> <p>Works with <strong>Claude Code</strong> ยท more copilots coming soon</p> </div>


The Problem

Every time you start a new conversation with your AI copilot, it forgets everything.

  • ๐Ÿ”„ You repeat the same context about your project, your team, your standards
  • ๐Ÿคท The copilot makes mistakes you've already corrected in past sessions
  • ๐Ÿ“„ Your policies, specs, and business rules sit in files the copilot never sees
  • ๐Ÿง  Decisions and rationale from past conversations are lost forever

Copilots are powerful โ€” but they have amnesia.

The Solution

Kahuna gives your copilot a persistent memory that grows smarter over time.

Without Kahuna With Kahuna
Copilot starts fresh every session Copilot remembers what it learned
You repeat context manually Context surfaces automatically
Knowledge lives in your head Knowledge lives in a structured KB
Decisions are forgotten Decisions persist across sessions

How it works: Kahuna runs as an MCP server alongside your copilot. You teach it your context once โ€” policies, specs, decisions, patterns โ€” and it proactively surfaces the right knowledge for each task.

๐Ÿ”’ All data stays local. Your code and context never leave your machine.


Quickstart (Claude Code)

Step 1: Add Kahuna to Claude Code

claude mcp add kahuna -s user -e ANTHROPIC_API_KEY="your-anthropic-api-key" -- npx @aurite-ai/kahuna

Scope options:

  • -s project โ€” Config stored for current project only
  • -s user โ€” Config stored globally (available across all projects)

Step 2: In any project, tell your copilot:

"Set up Kahuna"

This deploys copilot rules and runs onboarding. The copilot asks a few questions to understand your context โ€” this only happens once.

Step 3: Start teaching it your context:

"learn ~/Downloads/api-guidelines.pdf"

"learn the docs/ folder"

Step 4: Start working โ€” Kahuna surfaces the right context automatically.

"build a customer support agent"

Kahuna feeds your copilot your API conventions, auth patterns, and related context. No reminders needed.

<details> <summary>๐Ÿ“ฆ More installation options (npm global, Docker, from source)</summary>

<br>

npm (Global Install)

npm install -g @aurite-ai/kahuna

Configure your MCP client to use kahuna-mcp as the command.

npx (No Install)

npx @aurite-ai/kahuna

Docker

docker pull kahuna/mcp
docker run -i kahuna/mcp

From Source

git clone https://github.com/Aurite-ai/kahuna.git
cd kahuna
pnpm install
pnpm --filter @aurite-ai/kahuna build
pnpm --filter @aurite-ai/kahuna bundle

</details>


What It Looks Like

You teach Kahuna your company's context:

"learn ~/docs/api-guidelines.pdf"

"learn the docs/ folder"

Later, you start a task:

"build a customer support agent"

Kahuna automatically surfaces the relevant context to your copilot:

  • โœ… Your API conventions and auth patterns
  • โœ… Customer data models and access policies
  • โœ… Error handling and response format standards
  • โœ… Related endpoints already in the codebase

Your copilot builds it right the first time โ€” no reminders needed.


How It Works

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  YOU                          COPILOT                  KAHUNA   โ”‚
โ”‚                                                                 โ”‚
โ”‚  "set up Kahuna"  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ  deploys rules  โ”€โ”€โ”€โ”€โ”€โ–บ  .claude/   โ”‚
โ”‚                               asks questions          stores    โ”‚
โ”‚                                                       context   โ”‚
โ”‚                                                                 โ”‚
โ”‚  "learn these docs" โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ  kahuna_learn   โ”€โ”€โ”€โ”€โ”€โ–บ  knowledge  โ”‚
โ”‚                                                       base      โ”‚
โ”‚                                                                 โ”‚
โ”‚  "build feature X" โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–บ  kahuna_prepare โ”€โ”€โ”€โ”€โ”€โ–บ  surfaces   โ”‚
โ”‚                               _context                relevant  โ”‚
โ”‚                                                       files     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ’ก If Kahuna saves you from repeating yourself, consider giving it a โญ. It helps others discover the project.


Contents


How It Compares

Feature Kahuna Copilot Memory RAG Tools Manual Context
Persists across sessions โœ… Partial โœ… โŒ
Learns from files & conversations โœ… โŒ Files only N/A
Proactive context surfacing โœ… โŒ Query-based โŒ
Auto-classifies knowledge โœ… โŒ โŒ Manual
Works across projects โœ… โŒ Varies โŒ
Zero-config for copilot โœ… โœ… โŒ โŒ
Data stays local โœ… โŒ Varies โœ…

Kahuna is not a replacement for built-in copilot memory โ€” it's what copilot memory should have been.


Features

  • ๐Ÿง  Knowledge Base โ€” Store, categorize, and retrieve context from markdown files
  • ๐ŸŽฏ Smart Context Surfacing โ€” Automatically surface relevant knowledge for your task
  • ๐Ÿ”— Integration Management โ€” Discover, verify, and use external service integrations
  • ๐Ÿ” Secure Credential Vault โ€” Store and manage secrets with multiple provider support
  • ๐Ÿ“Š Usage Tracking โ€” Monitor token consumption and costs per project
  • ๐Ÿš€ Onboarding System โ€” Guided setup for organization and project context

Available Tools

Tool Description
kahuna_initialize Deploys copilot rules, runs onboarding
kahuna_learn Adds files to knowledge base with classification
kahuna_prepare_context Surfaces relevant knowledge for a task
kahuna_ask Quick Q&A against the knowledge base
kahuna_delete Remove outdated files from the knowledge base
kahuna_provide_context Store org or user context in the knowledge base
kahuna_usage View token usage and cost summary for the project
kahuna_list_integrations List all discovered integrations and their status
kahuna_use_integration Execute operations on discovered integrations
kahuna_verify_integration Verify integration credentials and connectivity
health_check Verify MCP server connectivity

Documentation

For Users:

For Contributors:


Contributing

We welcome contributions of all kinds!

<details> <summary>๐Ÿ› ๏ธ Developer Setup</summary>

<br>

Prerequisites

  • Node.js 18+
  • pnpm 9+

Quick Start

# Install dependencies
pnpm install

# Set up environment
cp apps/mcp/.env.example apps/mcp/.env

# Build workspace packages
pnpm build

# Run tests
pnpm test

Scripts

Command Description
pnpm build Build all packages (via Turborepo)
pnpm test Run all tests across workspace
pnpm lint Lint codebase (Biome)
pnpm lint:fix Lint and auto-fix issues
pnpm format Format codebase (Biome)
pnpm typecheck Type-check all packages
pnpm clean Remove build artifacts and caches

Testing CLI

Command Description
pnpm kahuna-test Run testing CLI
pnpm test:create Create a test project from a scenario
pnpm test:list List available scenarios and test projects
pnpm test:collect Collect results from a test session

Project Structure

kahuna/
โ”œโ”€โ”€ apps/
โ”‚   โ””โ”€โ”€ mcp/                # MCP server (stdio) โ€” context management tools
โ”‚       โ”œโ”€โ”€ src/
โ”‚       โ”‚   โ”œโ”€โ”€ knowledge/  # Knowledge base domain logic (agents, storage, surfacing)
โ”‚       โ”‚   โ”œโ”€โ”€ integrations/   # External service integration management
โ”‚       โ”‚   โ”œโ”€โ”€ vault/      # Secure credential management
โ”‚       โ”‚   โ”œโ”€โ”€ usage/      # Token usage and cost tracking
โ”‚       โ”‚   โ””โ”€โ”€ tools/      # MCP tool handlers
โ”‚       โ””โ”€โ”€ templates/      # Project initialization templates
โ”œโ”€โ”€ packages/
โ”‚   โ”œโ”€โ”€ testing/            # QA testing infrastructure (scenarios + CLI)
โ”‚   โ””โ”€โ”€ vck-templates/      # Copilot configuration templates
โ””โ”€โ”€ docs/                   # Documentation

</details>


License

MIT

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
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
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
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