原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Yagami AI Context Firewall

作者:MatthewTracy版本 0.8.6i★ –i在你的电脑上运行
注册名称io.github.MatthewTracy/yagami

安装

概览

作者提供的说明(英文原文)

Open-source AI context firewall for governed model, retrieval, memory, and tool access.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: Streamable HTTP
  • 分类: 搜索与 AI 记忆

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: YAGAMI_HEADLESS, YAGAMI_MCP_SERVER_ENABLED, YAGAMI_REQUIRE_AUTH

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "yagami": {
      "command": "uvx",
      "args": [
        "yagami",
        "serve",
        "--host",
        "127.0.0.1",
        "--port",
        "8000"
      ],
      "env": {
        "YAGAMI_HEADLESS": "your-value",
        "YAGAMI_MCP_SERVER_ENABLED": "your-value",
        "YAGAMI_REQUIRE_AUTH": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add yagami --env YAGAMI_HEADLESS=your-value --env YAGAMI_MCP_SERVER_ENABLED=your-value --env YAGAMI_REQUIRE_AUTH=your-value -- uvx yagami serve --host 127.0.0.1 --port 8000

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "yagami": {
      "command": "uvx",
      "args": [
        "yagami",
        "serve",
        "--host",
        "127.0.0.1",
        "--port",
        "8000"
      ],
      "env": {
        "YAGAMI_HEADLESS": "your-value",
        "YAGAMI_MCP_SERVER_ENABLED": "your-value",
        "YAGAMI_REQUIRE_AUTH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "yagami": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "yagami",
        "serve",
        "--host",
        "127.0.0.1",
        "--port",
        "8000"
      ],
      "env": {
        "YAGAMI_HEADLESS": "your-value",
        "YAGAMI_MCP_SERVER_ENABLED": "your-value",
        "YAGAMI_REQUIRE_AUTH": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • YAGAMI_HEADLESS env
  • YAGAMI_MCP_SERVER_ENABLED env
  • YAGAMI_REQUIRE_AUTH env

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 MatthewTracy 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7275 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7275 个服务器的 89% 更新
  • 基础检查结果等于或优于此分类中其他 7275 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Yagami AI Context Firewall 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.8.6)于4天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT昨天更新
安装

Codebase Memory

作者:DeusData

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

在你的电脑上运行★ 48,148MIT21天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Yagami

An AI router that chooses models and protects privacy.

Yagami automatically routes requests to local or cloud models based on the task and your privacy policy. Detected sensitive information, including PHI, stays local under the default policy. Local models can reduce cloud API costs; more demanding work and image generation can use cloud providers when allowed.

Documentation | Gateway API | Deployment | Security | Roadmap

Watch Yagami in action

Watch the 59-second demo: local answers, a fictional patient case kept on the machine, and cloud image generation. The recording uses real models, synthetic patient information, and configured providers with yagami serve. The no-credential demo below keeps cloud routing disabled.

Try it in 60 seconds

The no-credential demo uses your configured Ollama model when it is installed; otherwise it opens a clearly labeled policy-only fallback. Choose one command:

uvx yagami demo

or: python -m pip install yagami && yagami demo

or: docker run --rm -p 127.0.0.1:8000:8000 ghcr.io/matthewtracy/yagami:latest yagami demo --host 0.0.0.0 --allow-remote

Open http://127.0.0.1:8000, or use docker compose -f compose.demo.yaml up from a clone. Demo mode blocks cloud routing while exercising the UI, policy, lineage, storage, and audit path. For local AI answers, install Ollama and run ollama pull llama3.2:3b-instruct-q4_K_M before starting the demo.

Yagami is for developers and platform/security teams that need to control where agent context goes and which tools it may execute. For example: a coding agent can keep repository secrets on-device and require an identity-bound, one-time approval before a dangerous tool call.

Yagami sits between software and local models, cloud LLMs, retrieval systems, memory, and tools. Existing OpenAI SDK applications can adopt it by changing one base_url; Yagami then classifies context locally, applies versioned policy, and records content-free evidence for each decision.

Take the no-data security tour or run the flagship security demos for secret containment, poisoned retrieval, and identity-bound tool approval.

Protect an application

Initialize persistent user configuration, check the host, and start Yagami:

yagami init

yagami doctor yagami serve

Install yagami[providers] when the Yagami process or the example client uses Anthropic/OpenAI-compatible SDKs. PDF ingestion and OS key storage are separate ingest and desktop extras; see configuration.

Then point an OpenAI client at the gateway:

from openai import OpenAI

client = OpenAI( base_url="http://127.0.0.1:8000/v1", api_key="your-yagami-project-key", )

response = client.chat.completions.create( model="yagami-auto", messages=[{"role": "user", "content": "Summarize this document."}], metadata={ "purpose": "internal-documentation", "sensitivity": "none", "session_id": "example-session", }, ) print(response.choices[0].message.content)

Supported caller sensitivity values are none, phi, phi_medical, and secret. A caller hint can make the policy stricter; it cannot lower a sensitivity detected by Yagami.

For production authentication, policy, and deployment settings, follow the deployment guide.

Why teams use Yagami

  • Deterministic containment after classification. Once context is labeled as PHI or secret, default policy permits local backends only. Sensitive history and tool results inherit the same restriction.
  • One governed data plane. Chat Completions, Responses, the browser chat, and MCP use the same policy, lineage, transformation, output-DLP, budget, and audit pipeline.
  • Policy as code. Preview and replay decisions, run regression cases in CI, and promote deterministic Ed25519-signed policy bundles.
  • Evidence without prompt logging. Policy passports, hash-chained audit records, Prometheus metrics, and OpenTelemetry spans carry labels, hashes, IDs, and counts rather than prompt or completion content.
  • Model choice without policy duplication. Route to local engines, direct cloud providers, or an existing OpenAI-compatible gateway behind one enforcement point.
  • Governed tools. Evaluate function tools and MCP calls before execution, require short-lived one-time approvals, and keep inbound credentials from being forwarded to downstream servers.

Core capabilities

AreaIncluded
Compatible APIsOpenAI Chat Completions, core Responses API, Streamable HTTP MCP
IdentityScoped project API keys and OIDC/JWT workload identity
PolicyVersioned YAML/JSON rules, restrictive merging, preview, replay, shadow mode, regression tests, signed bundles
PrivacyLocal classification, caller sensitivity, context lineage, AES-GCM tokenization, rehydration, output DLP, optional Presidio
ToolsFunction calling, governed built-in skills, stdio and remote MCP, one-time approvals
OperationsSpend/rate/concurrency/context limits, health checks, Prometheus, OpenTelemetry, SIEM export, approval webhooks
PackagingPython 3.11-3.14, PyPI, non-root container, Docker Compose, Helm, SBOMs, checksums, and build provenance

Models and integrations

Local generation works with Ollama, llama.cpp through the optional llama-cpp-python runtime, and Microsoft Foundry Local through its loopback OpenAI-compatible service. Direct cloud adapters cover Anthropic, OpenAI, Mistral, Groq, OpenRouter, Google Gemini, and Stability AI image generation.

Yagami also works with LangChain/LangGraph, the Vercel AI SDK, Microsoft Presidio, Splunk HEC and generic SIEM webhooks, Slack and Teams approval notifications, and upstream gateways such as LiteLLM, Portkey, Kong, or Envoy. See the integration recipes.

How it compares

Yagami is not trying to replace every gateway, validator, or security scanner. Its focus is deterministic post-classification containment, governed tool execution, and content-free decision evidence. See the honest comparison guide for when LiteLLM, Guardrails AI, NeMo Guardrails, Presidio, LlamaFirewall, or a direct provider SDK is the better choice—and how to combine them with Yagami.

How enforcement works

flowchart LR

A["Application or agent"] --> B["Authentication and project limits"] B --> C["Local classification and context lineage"] C --> D["Versioned policy"] D --> E{"Allowed destination or capability"} E --> F["Local or approved model"] E --> G["Retrieval, memory, or tool"] F --> H["Output inspection"] G --> H H --> I["Response"] D --> J["Content-free policy passport and audit chain"] H --> J

Policy is the final authority. Slash commands and explicit backend selection cannot override a sensitive-data restriction. Classifier failures fail local by default, and cloud routes can be blocked entirely or stopped at a daily spend cap.

Important limitations

Yagami is an enforcement component, not a compliance certification. Automated detection can miss sensitive data. Strict deployments should declare sensitivity at the caller, use a local-only policy, test organization-specific cases, encrypt storage at the host or volume layer, and review the threat model.

The project is alpha. Validate policy and failure behavior against your own requirements before production use.

Documentation

Contributing

Focused issues and pull requests are welcome. Read CONTRIBUTING.md, the security policy, and the code of conduct.

License

MIT - Copyright (c) 2026 Matthew Tracy and Yagami contributors.

问 PopNx