mcp-konnect
A Model Context Protocol (MCP) server for interacting with Kong Konnect APIs, allowing AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.
claude mcp add --transport stdio kong-mcp-konnect node /absolute/path/to/mcp-konnect/build/index.js \ --env KONNECT_REGION="us" \ --env KONNECT_ACCESS_TOKEN="kpat_api_key_here"
How to use
Kong Konnect MCP Server exposes a set of tools to interact with Kong Konnect's API Gateway via natural language. The server enables AI assistants to query API traffic analytics, inspect gateway configurations (services, routes, consumers, plugins), and manage control planes and groups associated with your Konnect organization. Tools are organized into Analytics, Configuration, and Control Planes categories, allowing you to retrieve filtered analytics data, enumerate configuration objects, and manage control-plane memberships through conversational prompts. When connected to a Claude-like MCP client, you can invoke specific tools by describing the data you want (for example: list services for a given control plane, or show API requests for a service in the last hour). The included example configuration demonstrates how Claude or similar tools can initialize the MCP server with the proper environment variables for authentication and regional targeting.
How to install
Prerequisites:
- Node.js 20 or higher
- A Kong Konnect account with API access
- A client with MCP capabilities (e.g., Claude Desktop, Cursor, etc.)
Installation steps:
- Clone the repository
git clone https://github.com/Kong/mcp-konnect.git
cd mcp-konnect
- Install dependencies
npm install
- Build the project
npm run build
- Run the MCP server (example)
# Ensure environment variables are set with your Konnect credentials
export KONNECT_ACCESS_TOKEN=kpat_api_key_here
export KONNECT_REGION=us
# Start the server (adjust paths as needed)
node build/index.js
- Integrate with your MCP client (e.g., Claude Desktop) using the provided configuration snippet demonstrating how to point to the built index.js and pass credentials.
Additional notes
Environment variables:
- KONNECT_ACCESS_TOKEN: Required for Kong Konnect API access
- KONNECT_REGION: Optional; defaults to US if not set (values: US, EU, AU, ME, IN)
Configuration tips:
- Use absolute paths for the server entry (build/index.js) when configuring MCP clients.
- Keep access tokens secure; do not commit them to source control.
- If you update code and rebuild, ensure the MCP client points to the new build/index.js path.
Common issues:
- Authentication errors: verify the API key is valid and has the necessary permissions; ensure KONNECT_REGION matches your account region.
- Network failures: confirm network access to Kong Konnect endpoints and proper token scoping.
- Data not found: verify IDs and time ranges used in analytics queries refer to resources in your Konnect organization.
Development tips:
- Follow the repository's development steps to add new tools or modify existing ones in tools.ts, parameters.ts, and operations/ directory as described in the README.
Related MCP Servers
mcp-graphql
Model Context Protocol server for GraphQL
leetcode
An MCP server enabling automated access to LeetCode's problems, solutions, and public data with optional authentication for user-specific features, supporting leetcode.com & leetcode.cn sites.
rohlik
MCP server that lets you shop groceries across the Rohlik Group platforms (Rohlik.cz, Knuspr.de, Gurkerl.at, Kifli.hu, Sezamo.ro)
hackmd
A Model Context Protocol server for integrating HackMD's note-taking platform with AI assistants.
mockloop
Intelligent Model Context Protocol (MCP) server for AI-assisted API development. Generate mock servers from OpenAPI specs with advanced logging, performance analytics, and server discovery. Optimized for AI development workflows with comprehensive testing insights and automated analysis.
alris
Alris is an AI automation tool that transforms natural language commands into task execution.