1. Conduid
  2. Browser
  3. Fastmcp Proxy Example
MCP server · Browser

Fastmcp Proxy Example

This example showcases how to proxy a Kapa hosted MCP server from fastmcp

Unclaimed browser
34Low

Scored 6 months ago · breakdown

About Fastmcp Proxy Example

Fastmcp Proxy Example is an MCP server in the Browser category: this example showcases how to proxy a Kapa hosted MCP server from fastmcp.

Install

From source
git clone https://github.com/kapa-ai/fastmcp-proxy-example

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Fastmcp Proxy Example

Powered by Claude · Grounded in docs

I know everything about Fastmcp Proxy Example. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Kapa MCP Proxy Example

If you already have an MCP server that exposes functionality to your users, and you want to add Kapa's semantic retrieval for your knowledge bases without requiring users to install multiple MCP servers, you can proxy Kapa's MCP server from your existing one.

This example shows how to do this using FastMCP.

What is Proxying?

From the FastMCP docs:

Proxying means setting up a FastMCP server that doesn't implement its own tools or resources directly. Instead, when it receives a request (like tools/call or resources/read), it forwards that request to a backend MCP server, receives the response, and then relays that response back to the original client.

In this example, we proxy Kapa's retrieval tool so it appears as a native part of your server:

┌────────────────────────────────────────┐
│         Your MCP Server                │
│                                        │
│  • get_status (native)                 │
│  • search_*_knowledge_sources ─────────┼──► Kapa MCP Server
│                                        │
└────────────────────────────────────────┘

Your users only need to install one MCP server, but get access to both your native tools and Kapa's retrieval.

Note: This example includes a simple native tool called get_status to demonstrate how proxied tools appear alongside your own.

Prerequisites

Usage

1. Configure your Kapa credentials:

cp env.example .env

Edit .env with your credentials from Kapa Dashboard:

Variable Description
KAPA_MCP_SERVER_URL https://your-project.mcp.kapa.ai
KAPA_API_KEY Your API key

2. Start the containers:

docker compose up

This starts two containers:

  • MCP Server (localhost:8787) — Example server with native tools and consumes the proxy
  • MCP Inspector (localhost:6274) — a web UI for browsing and testing MCP tools

3. Open the MCP Inspector:

The MCP Inspector is a developer tool for testing MCP servers. It lets you browse available tools, call them, and see the results.

  1. Go to http://localhost:6274
  2. The server URL is prefilled — click Connect
  3. Navigate to the Tools tab

You'll see both tools listed:

  • get_status — your native tool
  • search_<product>_knowledge_sources — proxied from Kapa

MCP Inspector showing both native and proxied tools

How It Works

from fastmcp import FastMCP

mcp = FastMCP(name="My Product MCP Server")

# Your native tool
@mcp.tool
def get_status() -> dict:
    return {"status": "healthy"}

# Create proxy to Kapa's MCP server
kapa_proxy = FastMCP.as_proxy({
    "mcpServers": {
        "kapa": {
            "url": os.getenv("KAPA_MCP_SERVER_URL"),
            "transport": "http",
            "headers": {"Authorization": f"Bearer {os.getenv('KAPA_API_KEY')}"}
        }
    }
})

# Mount Kapa's tools
mcp.mount(kapa_proxy)

Why mount?

FastMCP offers two ways to compose servers:

  • mount() — Live link; changes to Kapa's tools are reflected immediately
  • import_server() — Static copy; faster list_tools() but requires restart to pick up changes

This example uses mount() so updates to your Kapa server are reflected without restarting. If performance is critical for your use case, see the FastMCP docs for alternatives.

Resources

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Fastmcp Proxy Example

How do I install Fastmcp Proxy Example?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Fastmcp Proxy Example safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Fastmcp Proxy Example still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.