GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Transparent audit proxy for MCP servers: logs every tool call, flags poisoning and rug pulls.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"audit-proxy": {
"command": "npx",
"args": [
"-y",
"mcp-audit-proxy"
]
}
}
}在终端中运行这条命令
claude mcp add audit-proxy -- npx -y mcp-audit-proxy粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"audit-proxy": {
"command": "npx",
"args": [
"-y",
"mcp-audit-proxy"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"audit-proxy": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-audit-proxy"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 firatmio 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.0)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A package-lock and flight recorder for MCP tool descriptions.
An MCP server's tool descriptions go straight into your model's context, and a server can change them at any time. mcp-audit sits transparently in front of any MCP server and:
mcp-audit lock diff and approves it with mcp-audit lock approve;Everything runs locally. No account, no cloud, no telemetry: nothing leaves your machine unless you configure a webhook. One Go binary, Apache 2.0.
$ mcp-audit run -- npx -y @modelcontextprotocol/server-filesystem /tmp
mcp-audit dev | mode: stdio, wrapping "npx -y @modelcontextprotocol/server-filesystem /tmp" mcp-audit config: built-in defaults (no config file found) mcp-audit policy: shadow (recording only, nothing is blocked) mcp-audit detectors: rug-pull, tool-poisoning, result-injection mcp-audit audit log: /home/you/.mcp-audit/logs/events.jsonl
That is the whole setup. No config file, nothing blocked, everything recorded.
The recording is scripts/demo.sh, which runs the whole story end to end against a stub server, in a temp directory that leaves your real state alone:
./scripts/demo.sh # watch it
TYPING_SPEED=0 PAUSE=0 ./scripts/demo.sh # run it instantly, as a smoke test vhs docs/demo.tape # re-record docs/demo.gif
No install needed — run it through npm, in front of the server you already use:
npx mcp-audit-proxy run -- npx -y @modelcontextprotocol/server-filesystem /tmp
Or download a binary for your platform from the latest release.
Note: the npm package and the release binaries are still 0.1.0, which
predates
mcp-audit lockand result scanning. Until 0.2.0 is out, build from
source to get them.
Build from source — Go 1.24 or newer, no other dependencies:
go build -o mcp-audit ./cmd/mcp-audit
Or install straight into your GOBIN:
go install github.com/firatmio/mcp-audit-proxy/cmd/mcp-audit@latest
Put mcp-audit run -- in front of the command you already run:
mcp-audit run -- npx -y @modelcontextprotocol/server-filesystem /tmp
Point the proxy at the upstream server and your client at the proxy:
mcp-audit serve --target https://example.com/mcp --listen :9000
Authentication is not touched: Authorization headers, OAuth flows and Mcp-Session-Id all pass through exactly as they arrive.
Every message is one JSON line:
$ tail -1 ~/.mcp-audit/logs/events.jsonl | jq
{ "timestamp": "2026-08-12T13:05:08.466Z", "event_id": "236d1568-e1f0-4ab4-ba75-f10f74f7b2c9", "client_id": "", "server_name": "server-filesystem", "direction": "request", "method": "tools/call", "tool_name": "read_file", "arguments": { "path": "/etc/hosts" } }
Some things you can do with it straight away:
# Which tools has this agent called, and how often?
jq -r 'select(.direction=="request" and .tool_name) | .tool_name' \ ~/.mcp-audit/logs/events.jsonl | sort | uniq -c | sort -rn
jq -c 'select(.policy_flags)' ~/.mcp-audit/logs/events.jsonl
jq -c 'select(.tool_name=="read_file") | {timestamp, arguments}' \ ~/.mcp-audit/logs/events.jsonl
See examples/clients/ for drop-in config snippets for Claude Desktop, Cursor and Windsurf. The pattern is always the same: keep the command you had, and put mcp-audit run -- in front of it.
Recording is the default. These checks run on top of it and, apart from RBAC, never block anything — they flag the event and print an alarm to stderr.
A poisoned MCP server hides instructions in a tool *description*. The user only sees a tool called echo; the model reads the rest. mcp-audit scans every advertised description and schema field for seven patterns:
| Rule | What it looks for |
|---|---|
instruction_override | "ignore all previous instructions" and variants |
hidden_instruction | markup aimed at the model: , , |
concealment | "do not tell the user", "without informing the user" |
credential_bait | ~/.ssh, id_rsa, .env, ~/.aws/credentials, /etc/shadow |
exfiltration | "send/upload/post …" with a URL nearby |
cross_tool_instruction | orders about *other* tools — the tool-shadowing attack |
invisible_characters | zero-width and bidi-override characters a human cannot see |
mcp-audit: ALERT possible tool poisoning on server "demo": tool "echo" description matched hidden_instruction: "<IMPORTANT>"
mcp-audit: ALERT possible tool poisoning on server "demo": tool "echo" description matched concealment: "do not mention this to the user"
A heuristic that flags every tool gets ignored, so the false-positive rate is measured, not guessed. testdata/corpus/benign holds the tool lists of real MCP servers — the official reference servers, and servers published by Microsoft (Playwright), the Chrome DevTools team, Notion, Supabase and others — captured with scripts/corpus-capture and pinned to exact package versions. testdata/corpus/benign-results holds real tool results: the filesystem server reading the MCP specification. Everything is run through the same policy engine the proxy uses, with the default configuration:
| Benign set | Items | Flagged | False-positive rate |
|---|---|---|---|
| Tool descriptions from 15 real MCP servers | 213 | 0 | 0.0% |
| Tool results from 1 real MCP server | 35 | 0 | 0.0% |
The table is generated by go test ./internal/corpus, which fails if it no longer matches what the detectors do. Every flagged item, and the heuristic behind it, is listed in testdata/corpus/RESULTS.md. The result set is small and comes from a single server, so treat its rate as a first reading rather than a settled number.
This measures false alarms only. It says nothing about how many attacks the heuristics catch: a detector that flags nothing would score 0% here too. A detection rate needs a corpus of real attacks, which does not exist here yet.
A tool's description is written by the server's author. Its *result* is often written by nobody you trust: the issue someone filed, the page a search returned, the ticket a customer opened. Instructions in that content reach the model the same way the real data does, with no malicious server involved.
mcp-audit scans every tools/call result — text blocks, embedded resources, resource links, structuredContent, and JSON-RPC error messages — for language addressed to the model, and flags the event result_injection_suspect:
mcp-audit: ALERT possible prompt injection in a result from server "fetch", tool "fetch": matched instruction_override: "ignore all previous instruction"
It uses only three of the description rules: instruction_override, hidden_instruction and concealment. The others misfire on ordinary content: measured on the benign results, exfiltration matched OAuth documentation sending the user to an https:// URL and cross_tool_instruction matched "before invoking any tool". credential_bait and invisible_characters are left out without having misfired there, because file reads in a coding session mention .env and ~/.ssh all the time, and zero-width joiners and tag characters are ordinary parts of emoji.
The cost of a scan is bounded, because the stdio pump reads the next message only once it is done:
go test ./internal/policy -bench ResultScan measures it on your machine. A result is matched to its request by id, so a response whose request the proxy did not see is not scanned. Turn it off with policy.result_scanning: false.
A rug pull is a server that advertises a harmless tool, waits for you to approve it, and changes the description days later. mcp-audit fingerprints every tool (SHA-256 over description + input schema) and remembers it in ~/.mcp-audit/state/tools.json, so the check survives restarts — which is the only way it could ever catch the attack.
mcp-audit: ALERT rug pull on server "demo": tool "read_file" changed its description or schema (first seen 2026-08-05T20:30:04Z, hash c203dda7a9ea -> 3f6e61538bfc)
The approved version stays the baseline, so the alarm repeats every session until a person looks at the change and decides. Think package-lock.json, for tool descriptions:
$ mcp-audit lock status
1 tool(s) changed since they were approved: files / read_file a1b2c3d4e5f6 -> 9f8e7d6c5b4a (changed 2026-10-19 09:00 UTC)
$ mcp-audit lock diff files / read_file a1b2c3d4e5f6 -> 9f8e7d6c5b4a Reads a file. Returns its text.
$ mcp-audit lock approve files read_file
lock status exits with status 1 while anything is pending, so it also works as a CI or pre-launch check.
The one check that can block. With no rules it allows everything; add a rule and a refused call never reaches the server — the client gets a JSON-RPC error instead.
policy:
rbac: default: allow rules:
mcp-audit: blocked: tool "shell_exec" is denied by rule for client "*" (deny: "shell_exec")
Other tools cover some of the same ground, and some of them cover more. What each one documents:
| mcp-audit | agent-scan (formerly Invariant's mcp-scan) | mcp-context-protector | P4ST4S/mcp-audit | |
|---|---|---|---|---|
| How it runs | proxy in front of each server (stdio, HTTP) | on-demand scan of the agent configs on a machine | wrapper in front of each server (stdio, HTTP, SSE) | proxy in front of each server (stdio, HTTP) |
| Pins tools, reacts when they change | alarms until a person approves (lock) | — | blocks tool calls until
只显示了开头部分;其余内容请在仓库中阅读