Marry the power of AI with the simplicity of http4k

Build secure MCP-compliant servers to integrate Large Language Models with your data and tools using familiar http4k patterns

Read the Launch Announcement

Highlights

icon

Simple
Integration

Build secure MCP-compliant servers using familiar http4k patterns. Seamlessly connect AI models with your existing systems and data sources.

icon

Type-safe
Tooling

Create robust AI integrations using http4k’s powerful Lens system for type-safe tool definitions and capability bindings with compile-time safety.

icon

Flexible
Transport

Support for both stateful and stateless HTTP Streaming protocols, SSE, Websocket and Standard IO transports, enabling seamless integration with desktop and web-based AI applications.

icon

Complete
Capabilities

Full support for Official and Draft MCP capabilities including structured Tools Output, Protected Resource OAuth and Elicitations, with both local and cloud-based model support.

icon

Testable
Design

Build highly testable MCP services with pure functions and no side effects. Create predictable, testable, and composable AI capabilities that can be verified without running a server.

icon

Serverless
Ready

Deploy your MCP capabilities to AWS Lambda, GCP Functions, and other FaaS platforms using http4k’s serverless adapters with zero code changes.

icon

Protocol
Client

Build your own AI agents with our pure Kotlin MCP protocol clients. Integrate MCP capabilities directly into your applications for custom agent development and advanced AI workflows.

icon

Desktop
Integration

Connect any MCP server to Claude and other AI assistants using the http4k-mcp-desktop client, with support for all transport modes and authentication types.

Getting started with MCP in http4k

Step 1 - Define typesafe MCP tools and capabilities using simple, testable functions

Defining MCP tools

Step 2 - Create your MCP server by composing capabilities and security into a lightweight server

Creating an MCP server

Step 3 - Integrate your AI-powered app with Claude Desktop as a server or native binary

Using Claude with an MCP server

Step 4 - Access your MCP server from other agents using our pure Kotlin MCP Client

Inter-agent communication

License

http4k MCP (Model Context Protocol) is available under the http4k Commercial License. Free usage is granted for qualifying small businesses (<$1m ARR), non-commercial, non-profit, and research activities.

Pricing*


*All http4k Pro modules are also automatically included as a part of the http4k Enterprise Edition subscription. Please see here for details.