kagent-dev

kmcp

Built by kagent-dev β€’ 443 stars

What is kmcp?

CLI tool and Kubernetes Controller for building, testing and deploying MCP servers

How to use kmcp?

1. Install a compatible MCP client (like Claude Desktop). 2. Open your configuration settings. 3. Add kmcp using the following command: npx @modelcontextprotocol/kmcp 4. Restart the client and verify the new tools are active.
πŸ›‘οΈ Scoped (Restricted)
npx @modelcontextprotocol/kmcp --scope restricted
πŸ”“ Unrestricted Access
npx @modelcontextprotocol/kmcp

Key Features

Native MCP Protocol Support
Real-time Tool Activation & Execution
Verified High-performance Implementation
Secure Resource & Context Handling

Optimized Use Cases

Extending AI models with custom local capabilities
Automating system workflows via natural language
Connecting external data sources to LLM context windows

kmcp FAQ

Q

Is kmcp safe?

Yes, kmcp follows the standardized Model Context Protocol security patterns and only executes tools with explicit user-granted permissions.

Q

Is kmcp up to date?

kmcp is currently active in the registry with 443 stars on GitHub, indicating its reliability and community support.

Q

Are there any limits for kmcp?

Usage limits depend on the specific implementation of the MCP server and your system resources. Refer to the official documentation below for technical details.

Official Documentation

View on GitHub
<!-- markdownlint-disable MD033 --> <div align="center"> <picture> <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/kagent-dev/kmcp/main/img/kmcp-logo-dark.svg" alt="kmcp" width="400"> <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/kagent-dev/kmcp/main/img/kmcp-logo-light.svg" alt="kmcp" width="400"> <img alt="kmcp" src="https://raw.githubusercontent.com/kagent-dev/kmcp/main/img/kmcp-logo-light.svg"> </picture> <div> <a href="https://github.com/kagent-dev/kmcp/releases"> <img src="https://img.shields.io/github/v/release/kagent-dev/kmcp?style=flat&label=Latest%20version" alt="Release"> </a> <a href="https://github.com/kagent-dev/kmcp/actions/workflows/tag.yaml"> <img src="https://github.com/kagent-dev/kmcp/actions/workflows/tag.yaml/badge.svg" alt="Build Status" height="20"> </a> <a href="https://opensource.org/licenses/Apache-2.0"> <img src="https://img.shields.io/badge/License-Apache2.0-brightgreen.svg?style=flat" alt="License: Apache 2.0"> </a> <a href="https://github.com/kagent-dev/kmcp"> <img src="https://img.shields.io/github/stars/kagent-dev/kmcp.svg?style=flat&logo=github&label=Stars" alt="Stars"> </a> <a href="https://discord.gg/Fu3k65f2k3"> <img src="https://img.shields.io/discord/1346225185166065826?style=flat&label=Join%20Discord&color=6D28D9" alt="Discord"> </a> </div> <h3>A development platform and control plane for the Model Context Protocol (MCP)</h3> <p><i>MCP connectivity simplified, bring MCP service prototypes into production</i></p> </div> <!-- markdownlint-enable MD033 -->
<!-- markdownlint-disable MD033 --> <table align="center"> <tr> <td> <a href="#getting-started"><b><i>Getting Started</i></b></a> </td> <td> <a href="#from-prototype-to-production"><b><i>Prototype to Production</i><b></a> </td> <td> <a href="#technical-details"><b><i>Technical Details</i></b></a> </td> <td> <a href="#get-involved"><b><i>Get Involved</i></b></a> </td> <td> <a href="#reference"><b><i>Reference</i></b></a> </td> </tr> </table> <!-- markdownlint-disable MD033 -->

Why kMCP?

Prototyping MCP services in isolation is quick and fun, but production adoption introduces many challenges:

  • Ad-hoc scaffolding - Configuring the MCP server, integrating it in Kubernetes, and operating it at enterprise scale
  • Transport fragmentation – Supporting multiple protocols (HTTP, WebSocket, SSE, etc.) requires custom maintenance
  • Disconnected context - Enforcing consistent security, observability, and governance for agent-to-tool communication

We believe teams who have build MCP services should not experience friction when bringing those services to production. kMCP is designed to make MCP connectivity simple.

Getting Started

Install the kmcp CLI on your local machine.

curl -fsSL https://raw.githubusercontent.com/kagent-dev/kmcp/refs/heads/main/scripts/get-kmcp.sh | bash

Verify that the kmcp CLI is installed.

kmcp --help
<img src="img/cli-help-nov-25.png" alt="kmcp cli help text" width="800">

You're ready to go! Continue on to From Prototype to Production or explore our docs at kagent.dev/docs/kmcp

From Prototype to Production

<img src="img/kmcp.png" alt="kmcp architecture" width="800">

MCP connectivity affects everyone in an organization. Below are some common quickstart journeys that you may experience:

Technical Details

kmcp is a comprehensive toolkit for building, deploying, and managing Model Context Protocol (MCP) servers. For a more detailed breakdown of using kmcp in your workflow, check out our achitecture overview.

Core Components

  • CLI is your primary tool for development. It allows you to scaffold new MCP projects, manage tools, build container images, and run your MCP server locally for testing and development.
  • Controller: Manages the lifecycle of your MCP server deployments in your Kubernetes cluster. It uses a Custom Resource Definition (CRD) to define MCP servers as native Kubernetes objects, allowing you to manage them with familiar kubectl commands.
  • Transport Adapater - Fronts the MCP server and provides features such as external traffic routing for your MCP server with support for multiple transport protocols without requiring any changes to your code.

Core Principles

  • ✨ Rapid scaffolding with support for FastMCP (Python) and MCP Go SDK
  • πŸš€ One-command deployment to Kubernetes with pre-configured Transport Adapters
  • πŸ”„ Consistent workflow from local development to production
  • 🌐 Built-in transport support for HTTP, WebSocket, and Server-Sent Events
  • ☸️ Kubernetes-native using Custom Resource Definitions (CRDs)
  • πŸ” Secrets management integrated with Kubernetes secrets

Get Involved

We welcome contributions! Contributors are expected to respect the kagent Code of Conduct

There are many ways to get involved:

Thanks to all contributors!

<a href="https://github.com/kagent-dev/kmcp/graphs/contributors"> <img alt="kmcp contributors" src="https://contrib.rocks/image?repo=kagent-dev/kmcp" /> </a>

Reference

Resources

Ecosystem Resources

License

This project is licensed under the Apache 2.0 License.


<div align="center"> <p>Built with ❀️ by the <a href="https://github.com/kagent-dev">kagent team</a> </p> </div>

Global Ranking

-
Trust ScoreMCPHub Index

Based on codebase health & activity.

Manual Config

{ "mcpServers": { "kmcp": { "command": "npx", "args": ["kmcp"] } } }