1. Conduid
  2. Cloud
  3. Kratos
MCP server · Cloud

Kratos

Your ultimate Go microservices framework for the cloud-native era.

92Excellent

Scored yesterday · breakdown

About Kratos

Kratos is an MCP server published by go-kratos in the Cloud category: your ultimate Go microservices framework for the cloud-native era.

The repository has 26K stars and 4.2K forks, with the last commit a month ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/go-kratos/kratos

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Kratos

Powered by Claude · Grounded in docs

I know everything about Kratos. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository yesterday. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • ✓No dynamic code executionSource scan found no eval, dynamic Function, or shell execution.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

Releases

v3.0.0v3.0.0 · 26 Jun 2026Breaking Changes break: update kratos modules to v3 (#3822) New Features feat(errors): add standard library errors wrappers (#3844) feat(transport/http): add read/write deadline control to ServerStream (#3843) feat(protoc-gen-go-http):…
v2.9.2v2.9.2 · 5 Dec 2025Dependencies deps: upgrade kratos version to v2.9.2 (#3773) New Features feat(ci): implement comment-check in workflows. (#3426) feat(consul): support custom tags for service registration (#3707) Bug Fixes fix(metadata): ensure Clone…
v2.9.1v2.9.1 · 12 Sep 2025Dependencies deps: retract v2.9.0 (#3723) Bug Fixes fix(transport/http): resolve breaking change with ResponseTransporter interface (#3721) Others Revert "perf(transport/http): optimize URL construction with url.URL for bett…" (#3722) New…
v2.9.0v2.9.0 · 10 Sep 2025Dependencies deps(middleware): upgrade protovalidate to resolve compatibility issue (#3706) New Features feat(protoc-gen-go-http): mark deprecated methods in generated code (#3711) feat: add MCP transport (#3646) Bug Fixes fix(encoding):…
v2.8.4v2.8.4 · 7 Mar 2025New Features feat: disable grpc reflection configuration feature(middleware/validate): migrate from PGV to protovalidate, since PGV has entered in maintenance (#3498) Bug Fixes fix: Improve server stop handling with graceful shutdowns…

README

Translations: English | 简体中文

Kratos

Kratos is a lightweight Go framework for building cloud-native microservices. It provides small, explicit APIs for transport, middleware, registry, configuration, logging, encoding, and code generation so applications can focus on business logic.

Features

  • API-first development with Protobuf and generated HTTP/gRPC code.
  • Unified transport layer for HTTP and gRPC.
  • Composable middleware for recovery, logging, validation, tracing, metrics, auth, and more.
  • Pluggable registry, configuration, and encoding components.
  • Standard-library log/slog based logging with OpenTelemetry extensions in contrib packages.
  • Consistent metadata, errors, validation, OpenAPI, and code-generation workflows.
  • A contrib ecosystem for optional integrations such as registries, config stores, middleware, encodings, and observability.

Installation

Requirements

Install the CLI

go install github.com/go-kratos/kratos/cmd/kratos/v3@latest
kratos upgrade

Create a Service

kratos new helloworld
cd helloworld
go mod tidy
kratos run

Visit http://localhost:8000/helloworld/kratos after the service starts.

For a fuller generated service flow:

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 ./...
kratos run

Usage Example

package main

import (
	"github.com/go-kratos/kratos/v3"
	"github.com/go-kratos/kratos/v3/transport/grpc"
	"github.com/go-kratos/kratos/v3/transport/http"
)

func main() {
	httpSrv := http.NewServer(http.Address(":8000"))
	grpcSrv := grpc.NewServer(grpc.Address(":9000"))

	app := kratos.New(
		kratos.Name("helloworld"),
		kratos.Version("v1.0.0"),
		kratos.Server(httpSrv, grpcSrv),
	)
	if err := app.Run(); err != nil {
		panic(err)
	}
}

v3 Migration

Kratos v3 reduces core dependencies and makes previously implicit behavior explicit. Review the v2 to v3 migration guide before upgrading production services.

Further Reading

Development

make test
make lint

Community

Security

If you discover a security vulnerability in Kratos, please contact go-kratos@googlegroups.com. Security reports are handled privately before disclosure.

Contributors

Thank you for contributing to Kratos. The contribution guide is available in the Kratos documentation.

Acknowledgments

The following projects influenced Kratos design:

License

Kratos is open-sourced software licensed under the MIT license.

README fetched from the repository yesterday. The original is authoritative.

Questions

About Kratos

How do I install Kratos?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Kratos safe to use with an AI agent?

Its trust score is 92 out of 100 (excellent). It passes 5 of the 6 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Kratos still maintained?

Yes — the latest release is v3.0.0 (26 Jun 2026), and the last commit was a month ago. The repository has 26K stars and 124 open issues.