
用于检查和审计MCP服务器的网关
概览
MCP Gateway 提供了一个集中平台,用于发现、路由和记录所有 MCP 协议流量。利用它管理多个 MCP 服务器,捕获详细交互日志,并排查与 Claude 及其他 AI 客户端的集成问题。 - - 既作为MCP代理服务器,也作为MCP服务器本身 - - 通过Web UI、API或MCP工具添加、移除和监控MCP服务器 - - 自动记录所有MCP请求、响应和错误 - - 实时健康检查和所有服务器状态跟踪 - - 通过REST API、Web UI或MCP协议管理网关 - - 直观的React界面,用于浏览日志和管理服务器- - 使用MCP工具控制网关本身(添加/移除服务器、查询流量)- - 程序化访问日志和服务器管理(驱动Web界面) - - 跟踪服务器活动、响应时间和错误模式- - 按服务器、会话、方法或内容搜索捕获的流量 这会启动网关,并显示一个认证令牌......
概述(AI 翻译)
用于管理和监控生产环境中MCP(模型上下文协议)服务器的统一网关。
MCP Gateway 提供了一个集中平台,用于发现、路由和记录所有 MCP 协议流量。利用它管理多个 MCP 服务器,捕获详细交互日志,并排查与 Claude 及其他 AI 客户端的集成问题。
特色
核心能力
- 双模操作 - 既作为MCP代理服务器,又作为MCP服务器本身
- 服务器管理 - 通过Web UI、API或MCP工具添加、移除和监控MCP服务器
- 流量捕获 - 自动记录所有MCP请求、响应和错误
- 健康监测 - 所有服务器的实时健康检查和状态跟踪
- 程序控制 - 通过REST API、Web UI或MCP协议管理网关
用户界面
- Web 仪表盘 - 直观的 React UI,用于浏览日志和管理服务器
- Gateway MCP 服务器 - 使用 MCP 工具控制网关本身(添加/移除服务器、查询流量)
- REST API - 程序化访问日志和服务器管理(驱动网页界面)
分析
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Gateway
A unified gateway for managing and monitoring MCP (Model Context Protocol) servers in production.
MCP Gateway provides a centralized platform for discovering, routing, and logging all MCP protocol traffic. Use it to manage multiple MCP servers, capture detailed interaction logs, and troubleshoot integration issues with Claude and other AI clients.

Features
Core Capabilities
- Dual-Mode Operation - Acts as both an MCP proxy server AND an MCP server itself
- Server Management - Add, remove, and monitor MCP servers from web UI, API, or via MCP tools
- Traffic Capture - Automatic logging of all MCP requests, responses, and errors
- Health Monitoring - Real-time health checks and status tracking for all servers
- Programmatic Control - Manage gateway via REST API, web UI, or MCP protocol
User Interfaces
- Web Dashboard - Intuitive React UI for browsing logs and managing servers
- Gateway MCP Server - Control gateway itself using MCP tools (add/remove servers, query traffic)
- REST API - Programmatic access to logs and server management (powers web UI)
Analytics
- Metrics & Analytics - Track server activity, response times, and error patterns
- Traffic Analysis - Search captured traffic by server, session, method, or content
Quick Start
Installation
npm install -g @fiberplane/mcp-gateway
Or with yarn:
yarn global add @fiberplane/mcp-gateway
Start the Gateway
mcp-gateway
This launches the gateway with an authentication token displayed in the terminal output:
MCP Gateway server started at http://localhost:3333
Web UI: http://localhost:3333/ui?token=sCClW3jIQiUxftKUYH3fj04CchW2ISrmoiwopkl44RE
Copy the full Web UI URL (including the token parameter) to access the dashboard.
Alternatively you can run the mcp-gateway from the repo
This repository requires bun to be installed.
# 1. Clone repository
git clone https://github.com/fiberplane/mcp-gateway.git
cd mcp-gateway
# 2. Install dependencies
bun install
# 3. Build packages (required for web UI)
bun run build
# 4. Start gateway in dev mode (with hot reload)
bun run dev
Add Your First Server
You can add servers via the web UI:
- Open the authenticated Web UI URL from your terminal output
- Click “Add Server”
- Enter server name and URL
- Gateway performs health check automatically
Once added, all MCP traffic through the gateway is captured automatically. Note: if you want to add more servers, you can manage servers by clicking the cogwheel icon in the top right corner of the page.
Architecture Overview
The gateway operates in dual mode: it’s both a proxy for MCP servers AND an MCP server itself.
┌───────────────────────────────────────────────────────────────┐
安装
npx -y @modelcontextprotocol/server-memory