Microservices That AI Agents Can Use

Write services in Go. Every endpoint is automatically an AI-callable tool. An agent orchestrates across them.

micro run --prompt "a task management system" --provider anthropic
Go Micro — AI agent orchestrating microservices

Everything You Need

Sane defaults out of the box. Every abstraction is swappable.

Services as AI Tools

Every endpoint is automatically callable by AI agents via Model Context Protocol.

Agent Orchestration

micro chat discovers services and lets an LLM coordinate across them.

Generate from a Prompt

micro run --prompt designs, generates, and starts services from plain English.

Service Discovery

Automatic registration and name resolution via mDNS, Consul, or etcd.

RPC & Pub/Sub

Request/response, streaming, and async events. gRPC, NATS, RabbitMQ built in.

Pluggable Everything

All abstractions are Go interfaces. Swap any component without changing service code.

AI agent calling microservices via MCP

Describe, Generate, Run, Chat

Tell it what you need. The AI designs services, writes handlers with real business logic, compiles them, and starts them. Then talk to them through an agent that orchestrates across services automatically.

$ micro run --prompt "an order system"
$ micro chat --provider anthropic
> Place an order for SKU-123 to London

See How It Works

Pluggable Architecture

Services connect through a registry for discovery and a broker for events. Swap any component without changing your service code — go from mDNS to Consul, or HTTP to gRPC, with a single option.

Go Micro architecture diagram

Developer Experience

micro run starts your services with hot reload, an API gateway, and an agent playground. micro chat lets you talk to your services through any LLM. micro deploy pushes to production via SSH.

Terminal showing micro run and micro chat

Sponsors

Go Micro is supported by companies building the future of AI infrastructure.

Anthropic Atlas Cloud

Trusted by Developers

23,000+ stars on GitHub. Production-ready. Apache 2.0 licensed.