Kratos
🏛️ 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.
What is Kratos?
Kratos is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 🏛️ 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.
🏛️ 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.
This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 🏛️ Memory System for AI Coding Tools - Never explain your co
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx kratosConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Kratos
Kratos is a lightweight Go framework for building cloud-native microservices, providing unified transport layers for HTTP and gRPC, composable middleware, pluggable service registry, and configuration management. Originally from Bilibili, it follows an API-first development model using Protobuf definitions with auto-generated HTTP/gRPC code, and includes a powerful CLI for scaffolding new services. The 'kratos' MCP server entry listed here maps to the go-kratos/kratos framework repository, giving AI coding agents access to Kratos patterns and tooling when building Go microservices. Teams use it to standardize service structure, enforce observability, and accelerate production Go backend development.
Prerequisites
- Go 1.25 or later installed (go.dev/dl)
- protoc (Protocol Buffers compiler) installed for API-first development
- protoc-gen-go installed for Go code generation
- An MCP-compatible client such as Claude Desktop, Cursor, or Claude Code
- Basic familiarity with Go modules and microservice concepts
Install the Kratos CLI
Install the Kratos command-line tool using go install. This provides the 'kratos' command for creating new services, generating protobuf clients/servers, and running your application.
go install github.com/go-kratos/kratos/cmd/kratos/v3@latest
kratos upgradeScaffold a new microservice
Use the Kratos CLI to generate a complete service skeleton with the standard project layout, including HTTP and gRPC servers, middleware configuration, and dependency injection wiring.
kratos new helloworld
cd helloworld
go mod tidy
kratos runGenerate gRPC and HTTP code from Protobuf
Add a proto definition and generate the typed client, server interface stubs, and OpenAPI documentation. This API-first approach ensures type safety across service boundaries.
kratos proto add api/helloworld/helloworld.proto
kratos proto client api/helloworld/helloworld.proto
kratos proto server api/helloworld/helloworld.proto -t internal/service
go generate ./...Add the MCP server to your client configuration
Configure the Kratos MCP server in your MCP client's config file so AI coding agents can use Kratos tooling and patterns when assisting with your Go microservice code.
Restart your MCP client and verify
Quit and reopen your MCP client after saving the configuration. The Kratos server should now be available, enabling AI assistants to scaffold, generate, and modify Kratos services with full framework awareness.
Kratos Examples
Client configuration
Add this block to your claude_desktop_config.json under the mcpServers key to enable the Kratos MCP server.
{
"mcpServers": {
"kratos": {
"command": "npx",
"args": ["kratos"]
}
}
}Prompts to try
Use these prompts with your AI coding agent once the Kratos server is connected.
- "Create a new Kratos microservice with HTTP and gRPC endpoints for a user management API"
- "Add rate limiting and authentication middleware to my Kratos service"
- "Generate the Protobuf definition and server stubs for an order management service"
- "Show me how to configure distributed tracing with OpenTelemetry in a Kratos application"Troubleshooting Kratos
kratos command not found after go install
Ensure $(go env GOPATH)/bin is in your PATH. Run 'export PATH=$PATH:$(go env GOPATH)/bin' and add it to your shell profile (~/.zshrc or ~/.bashrc).
protoc-gen-go errors during code generation
Install both protoc-gen-go and protoc-gen-go-grpc: run 'go install google.golang.org/protobuf/cmd/protoc-gen-go@latest' and 'go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest', then ensure they are in your PATH.
Go module errors after creating a new service
Run 'go mod tidy' in the service directory to resolve and download all dependencies. If using a private module proxy, set GOPROXY and GONOSUMCHECK appropriately.
Frequently Asked Questions about Kratos
What is Kratos?
Kratos is a Model Context Protocol (MCP) server that 🏛️ 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. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Kratos?
Follow the installation instructions on the Kratos GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Kratos?
Kratos works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Kratos free to use?
Yes, Kratos is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Kratos Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Kratos? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
Cipher
★ 4.8kCipher is an opensource memory layer specifically designed for coding agents. Compatible with Cursor, Windsurf, Claude Desktop, Claude Code, Gemini CLI, AWS's Kiro, VS Code, and Roo Code through MCP, and coding agents, such as Kimi K2.
Browse More Knowledge & Memory MCP Servers
Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Kratos in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Kratos?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.