APIs & protocols

Akka provides built-in support for exposing your services through multiple protocols.

HTTP

  • REST APIs — Define JSON-based HTTP endpoints with routing, request/response handling, and access control. See HTTP Endpoints.

  • OpenAPI — Schema generation is built in. See OpenAPI Endpoint schema.

  • WebSockets — Real-time bidirectional communication is built in. See WebSocket support.

gRPC

High-performance APIs with protocol buffer definitions. See gRPC Endpoints.

MCP (Model Context Protocol)

  • MCP Endpoints — Expose Agent functions to remote LLMs via @FunctionTool annotations. See MCP Endpoints.

  • MCP CLI serverakka mcp serve exposes CLI operations as MCP tools for Claude Desktop, VS Code, and Cursor.

Agent protocol support

A2A, ACP, and MCP clients are baked into Akka’s Agent component. Agents natively consume tools and communicate with other Agents via all three protocols. No external libraries needed.

  • A2A (Agent-to-Agent) — Google’s protocol for agent-to-agent communication

  • ACP (Agent Communication Protocol) — Linux Foundation protocol for agent communication

  • MCP (Model Context Protocol) — Anthropic’s protocol for connecting AI models to external tools

MCP