Perforce Agentic Gateway
A local MCP gateway that allows AI clients to manage and interact with multiple MCP servers through a single connection, providing token-efficient access to tools and resources.
README
<picture> <source media="(prefers-color-scheme: dark)" srcset="logo-pag-rev.svg"> <img src="logo-pag-reg.svg" alt="PAG --- Perforce Agentic Gateway" width="420"> </picture>
PAG --- Perforce Agentic Gateway
Perforce Agentic Gateway (PAG) is a local MCP gateway providing a token efficient code mode. AI clients are configured once, to connect to PAG and all other MCP servers are instead configured through PAG. Instead of being set up with and loading the tools of each MCP separately, PAG manages the running MCP server processes, restarts them when they crash, and stores their necessary credentials in your OS Keychain.
Prerequisites
- uv --- the only hard requirement.
- Docker or Podman --- only for servers that run as containers.
- Each server's own dependencies --- PAG proxies servers, it doesn't bundle them (e.g. Node for
npxservers, an account for API servers).
Quickstart
1. Connect your AI client
PAG runs as a stdio MCP server, launched via uvx.
With Claude Code:
claude mcp add pag -- uvx perforce-agentic-gateway@latest
For any client that uses .mcp.json (Cursor, and others):
{
"mcpServers": {
"pag": {
"command": "uvx",
"args": ["perforce-agentic-gateway@latest"]
}
}
}
@latest keeps PAG current on each launch. Add --working-directory <dir> to pin a project. Other clients (Codex, VS Code, ...): see Connecting AI clients. Restart the client; pag__* tools should appear.
Prefer to install once instead of fetching on demand? uv tool install perforce-agentic-gateway puts a perforce-agentic-gateway command on your PATH that you run in place of uvx perforce-agentic-gateway --- see Installing PAG as a tool.
2. See what's available
Ask your assistant:
"What MCP servers are in the PAG registry?"
Lists everything installable from configured registries --- including Perforce's first-party servers, e.g. P4, BlazeMeter, Perfecto, Delphix, IPLM.
3. Enable a server from the catalog
Perforce product support MCP servers are available straight from the catalog. Ask your assistant to recommend servers for what you're working on:
"What MCP servers would help with this project?"
PAG scans your project for technology signals and suggests catalog servers, always asking before it enables anything. Or name one directly:
"Enable the P4 server."
PAG records it in your config and starts it. Most Perforce servers need credentials (typically a server URL and an access token); when so, the assistant hands you a dashboard link to enter them --- secrets never travel through the chat. See Perforce servers and Secrets.
Browse the full catalog any time with uvx perforce-agentic-gateway view. See Using PAG.
4. Or add a custom server
Anything not in a registry --- a local command, a container, or a remote HTTP endpoint --- you add directly. The MCP fetch server runs via uvx and needs no credentials, so it's a handy zero-setup server to run end to end and see the flow:
"Add a custom server named
fetchthat runsuvx mcp-server-fetch."
PAG writes it to your config and starts it.
5. Run a real command
"Fetch https://modelcontextprotocol.io and tell me what MCP is."
The assistant calls fetch__fetch through PAG and answers from the live page.
Why it stays fast
AI client --one stdio connection--> PAG --> server A (command)
| --> server B (remote HTTP)
+-> server C (container)
PAG doesn't forward every downstream tool to your client (20 servers can mean a thousand tools). It exposes a small, fixed pag__* set and keeps the full catalog inside the gateway:
pag__exploresearches the catalog; only the slice the assistant asks for enters its context.pag__executeruns JavaScript that calls downstream tools, so loops and fan-out across servers take one round trip instead of many.
Full mechanics (the sandbox, qualified tool names, prompts and resources) are in Tools and the sandbox.
Going deeper
- Connecting AI clients --- Claude Code, Codex, VS Code, Cursor.
- Using PAG --- managing servers, the dashboard, the catalog and registries, Perforce servers, the tools/sandbox model.
- Secrets --- entering, storing, and looking up credentials.
- Configuration --- the complete
config.tomlreference. - Troubleshooting --- logging and common fixes.
- Reference --- command line, uninstalling, glossary.
Feedback
Bug reports and feature requests go through GitHub issues. For setup and runtime problems, check Troubleshooting first --- it covers the common cases.
License
Use of PAG is governed by the Perforce Agentic Gateway Terms of Use.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。