AI MCP Proxy

AI License Required

Configure {{site.ai_gateway}} passthrough for existing MCP Servers

Configure AI Gateway passthrough for existing MCP Servers to enable proxying and observability.

For this configuration to work properly, you need a Service and a Route with the following configuration:

services:
- name: mcp-service
  url: http://host.docker.internal:3001
  routes:
  - name: mcp-route
    paths:
    - /mcp

Before using the AI MCP Proxy plugin in passthrough-listener mode, you need an upstream MCP-compatible HTTP server.

For this example, use a simple Express-based MCP server that simulates a marketplace system. It provides read-only access to sample users and their orders through the following tools:

  • list_users
  • get_user
  • list_orders
  • list_orders_for_user
  • search_orders

Run the following command to clone the repository, install dependencies, build the server, and start it:

git clone https://github.com/tomek-labuk/marketplace-acl.git && \
cd marketplace-acl && \
npm install && \
npm run build && \
node dist/server.js

When the server starts, it listens at http://localhost:3001/mcp.

Prerequisites

  • A running MCP server

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!