Kratos MCP logo

Kratos MCP

Community
ceorkm

🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.

Publisherceorkm
Repositorykratos-mcp
LanguageTypeScript
Forks
7
Stars
37
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    Kratos MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    37 stars and 7 forks from the linked repository.

Kratos MCP

Ultra-Lean Memory System for AI Coding Tools

npm version License: MIT MCP Compatible TypeScript

Never explain your codebase again. Let AI remember everything.


Kratos has evolved. This repo is now legacy.

github.com/ceorkm/kratos-cli

Kratos is now a standalone CLI — faster, lighter, works with ANY AI agent.

No MCP overhead. No vendor lock-in. Just memory that works.

Star the new repo

bash
npx kratos-memory

Claude Code, Codex, Cursor, Cline — anything that runs Bash.

Your existing memories work instantly. Same ~/.kratos/ storage, same SQLite format.

Go to Kratos CLI >


Why Kratos?

After building 30+ production apps with AI, we discovered a critical problem: AI tools forget everything between sessions. You explain your architecture, your patterns, your decisions—and tomorrow, you explain it all again.

Kratos MCP solves this with an ultra-lean memory system that gives AI perfect recall of your project—with minimal context overhead.

Features

100% Project Isolation

Each project gets its own SQLite database. No cross-contamination. Ever.

Zero Configuration

Auto-detects projects via git, package.json, or directory structure. Just install and code.

Ultra-Lean Architecture

Just 12 essential tools. 64% smaller context footprint than competitors.

Universal Protocol

Works with Claude, Cursor, Windsurf, Continue—any MCP-compatible tool.

Installation

bash
# Install globally
npm install -g kratos-mcp

# Or run directly with npx (no installation required)
npx kratos-mcp

# Or install as a dependency
npm install kratos-mcp

Quick Start

1. Configure Your AI Tool

Add to your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/claude/claude_desktop_config.json
json
{
  "mcpServers": {
    "kratos": {
      "command": "npx",
      "args": ["--yes", "kratos-mcp@latest"]
    }
  }
}

Or if you have it installed globally:

json
{
  "mcpServers": {
    "kratos": {
      "command": "kratos-mcp",
      "args": []
    }
  }
}

Run this command in your terminal:

bash
claude mcp add kratos -- npx --yes kratos-mcp@latest

Or for global installation:

bash
# First install globally
npm install -g kratos-mcp@latest

# Then add to Claude Code
claude mcp add kratos -- kratos-mcp

Add to .cursor/mcp_config.json in your project root:

json
{
  "mcpServers": {
    "kratos": {
      "command": "npx",
      "args": ["--yes", "kratos-mcp@latest"]
    }
  }
}

Kratos works with any tool supporting the Model Context Protocol. The general format is:

json
{
  "command": "npx",
  "args": ["kratos-mcp"]
}

Compatible with: Windsurf, Cline, BoltAI, Augment Code, Roo Code, Zencoder, Amazon Q, Qodo Gen, JetBrains AI, Warp, Opencode, Continue.dev, Zed, and more!

Check your tool's documentation for specific MCP server configuration location.

2. Start Using Kratos

typescript
// Your AI now remembers:
// - Your authentication patterns
// - Your API structure
// - Your component architecture
// - Your coding standards
// - Every decision you've made

Available Tools

Kratos provides 12 ultra-lean tools optimized for minimal context consumption:

Memory Management (7 tools)

ToolDescription
memory_saveStore important project knowledge with tags, paths, and importance levels
memory_searchSmart semantic search with debug mode and path matching
memory_askNatural language queries about your memories
memory_get_recentGet recently created memories with filtering
memory_getRetrieve a specific memory by ID
memory_get_multipleBulk retrieve multiple memories
memory_forgetDelete a memory by ID

Security (1 tool)

ToolDescription
security_scanScan text for PII and secrets before saving

Project Management (3 tools)

ToolDescription
project_switchSwitch between different projects
project_currentGet current active project info
change_storage_pathDynamically change storage location with automatic data migration

System (1 tool)

ToolDescription
system_statusGet system status and memory statistics

How It Works

AI Tool ──► Kratos MCP ──► Project Detection ──► SQLite + FTS5 ──► Perfect Context
  • SQLite + FTS5: Lightning-fast full-text search
  • Smart Scoring: Path matching + recency + importance
  • Auto-detection: Git, package.json, or directory-based
  • Secure: All data stays local, no external calls
  • Lean: Only 4 core components, minimal memory footprint

Performance

MetricValue
Context Overhead64% smaller than v3
Memory Retrieval< 10ms
Project Switch< 100ms
Storage Overhead~2MB per project

Data Storage

~/.kratos/
├── projects/
│   ├── project-id-1/
│   │   └── memories.db          # SQLite database with FTS5
│   └── project-id-2/
│       └── memories.db
└── global/
    └── global.db                # Shared knowledge (optional)

Use change_storage_path to move data to custom locations like /opt/kratos or .kratos for per-project storage.

Example Usage

typescript
// Save a memory
await memory_save({
  summary: "JWT auth implementation",
  text: "We use httpOnly cookies with refresh tokens...",
  tags: ["auth", "security"],
  paths: ["src/middleware/auth.ts"],
  importance: 5
});

// Search memories
await memory_search({
  q: "authentication",
  k: 5,
  debug: true
});

// Ask natural language questions
await memory_ask({
  question: "How does our auth system work?",
  limit: 10
});

Contributing

bash
git clone https://github.com/ceorkm/kratos-mcp.git
npm install
npm run build
npm run dev

License

MIT


Built for developers who value their time.

Report Bug · Request Feature

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "yourusername-kratos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kratos-mcp"
      ]
    }
  }
}

Use Kratos MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Kratos MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Kratos MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Kratos MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "yourusername-kratos-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kratos-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Kratos MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Kratos MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Kratos MCP to help me with this task?
Kratos MCP
Sure. I read it.
Here is what I found using Kratos MCP.

Frequently asked questions

What is the Kratos MCP MCP server used for?

Kratos MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Kratos MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Kratos MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Kratos MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Kratos MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Kratos MCP MCP to TypingMind?

Kratos MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Kratos MCP MCP provide in TypingMind?

Kratos MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Kratos MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Kratos MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇