litmus MCP server
✓ 인증됨재현 가능한 행동 분석 하네스를 사용하여 보안 취약점과 인젝션 위험을 탐지하고, MCP server 및 Agent Skills를 A부터 F까지 등급으로 평가합니다.
다른 이름 polygraphso/litmus, @polygraphso/litmus
- 스타
- 8
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- 0.36.0
- 마지막 커밋
- 2026년 7월 20일
- 라이선스
- Apache-2.0
litmus MCP란?
litmus은(는) MCP server입니다. 재현 가능한 행동 분석 하네스를 사용하여 보안 취약점과 인젝션 위험을 탐지하고, MCP server 및 Agent Skills를 A부터 F까지 등급으로 평가합니다.
프로젝트 README에서 생성된 요약
litmus MCP server 정보
Litmus는 MCP server와 agent skills의 보안 및 신뢰성을 평가하기 위해 설계된 재현 가능한 행동 분석 하네스를 제공합니다. 에이전트가 대상과 상호작용하는 방식을 시뮬레이션하고, tool surface를 핑거프린팅하며, 네 가지 특정 프로브 카테고리를 실행하여 A부터 F까지의 등급을 부여합니다. 이 프로브는 tool-output injection, 권한 및 egress 취약점, 민감 데이터 처리, 그리고 adversarial input 저항성을 테스트합니다.
개발자는 npx를 통해 로컬에서 npm 패키지, PyPI 참조, GitHub 저장소 또는 로컬 엔트리 파일의 등급을 매길 수 있습니다. GitHub 저장소를 테스트할 때는 코드 실행을 위한 샌드박스를 제공하기 위해 Docker가 필요합니다. AI 워크플로우 통합을 위해, Claude와 같은 클라이언트가 check_server 및 list_servers와 같은 도구를 사용하여 등급을 조회할 수 있도록 하는 MCP server를 제공합니다. 또한 GitHub Action으로 작동하여 서버나 skill이 지정된 최소 등급 미만일 경우 CI/CD 파이프라인의 빌드를 실패하게 만드는 게이트 역할을 수행합니다.
활용 사례
- 1설치 전 서버 보안 검증AI 클라이언트가 특정 MCP server의 게시된 등급을 확인하여 사용 안전성을 보장할 수 있습니다.
- 2CI/CD 보안 게이트 자동화개발자는 낮은 등급을 받은 보안 취약 MCP server 또는 agent skills가 배포되지 않도록 빌드를 실패 처리할 수 있습니다.
- 3Agent Skills의 프롬프트 인젝션 스캔Claude Code 또는 Agent Skills에 대해 정적 스캔을 수행하여 위험한 명령이나 데이터 유출 지침을 탐지할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
litmus MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 litmus MCP 설치
$ claude mcp add litmus -- npx -y @polygraphso/litmusCursor에 litmus MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"litmus": {
"command": "npx",
"args": [
"-y",
"@polygraphso/litmus"
]
}
}
}VS Code에 litmus MCP 설치
.vscode/mcp.json
{
"servers": {
"litmus": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@polygraphso/litmus"
]
}
}
}VS Code CLI에 litmus MCP 설치
$ code --add-mcp '{"name":"litmus","type":"stdio","command":"npx","args":["-y","@polygraphso/litmus"]}'Claude Desktop에 litmus MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"litmus": {
"command": "npx",
"args": [
"-y",
"@polygraphso/litmus"
]
}
}
}Codex에 litmus MCP 설치
$ codex mcp add litmus -- npx -y @polygraphso/litmusCodex config.toml에 litmus MCP 설치
~/.codex/config.toml
[mcp_servers.litmus] command = "npx" args = ["-y", "@polygraphso/litmus"]
Gemini CLI에 litmus MCP 설치
$ gemini mcp add -s user litmus npx -- -y @polygraphso/litmusGemini settings.json에 litmus MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"litmus": {
"command": "npx",
"args": [
"-y",
"@polygraphso/litmus"
]
}
}
}구성
NEXT_PUBLIC_POLYGRAPH_NETWORKWhich network to read attestations from: 'base' (mainnet, default) or 'base-sepolia' (testnet).
POLYGRAPH_API_URLBase URL for published-grade lookups (check_server, list_servers, request_grade) and attestation resolution.
| 이름 | 설명 | 유형 |
|---|---|---|
| NEXT_PUBLIC_POLYGRAPH_NETWORK | Which network to read attestations from: 'base' (mainnet, default) or 'base-sepolia' (testnet). | |
| POLYGRAPH_API_URL | Base URL for published-grade lookups (check_server, list_servers, request_grade) and attestation resolution. |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능polygraphso/litmus is public and reachablegithub.com/polygraphso/litmus ↗통과
- 패키지가 이 저장소를 소스로 명시@polygraphso/litmus names polygraphso/litmus as sourcenpmjs.com/package/@polygraphso/litmus ↗통과
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-07-20github.com/polygraphso/litmus ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @polygraphso/litmus통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음137 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답Endpoint did not answer initialize: HTTP 404결함 발견
README
GitHub에서 보기litmus
The open behavioral litmus harness for MCP servers — grade A–F, reproducible.
Grade a server in one command
# -p is required: the package ships three bins, so npx must be told which to run
npx -y -p @polygraphso/litmus polygraphso-litmus litmus npm/@modelcontextprotocol/server-filesystem
Point it at an npm ref, a pypi ref, a github/owner/repo ref (cloned, built, and run sandboxed —
Docker required; the grade pins the commit SHA), an https:// MCP endpoint, or a local entry
file. The harness connects
the way an agent would, fingerprints the exact tool surface, runs the four probe categories, and
prints the grade with the findings behind it — plus a deterministic evidence bundle on disk.
It runs the target's code (egress is Docker-sandboxed; without Docker, C-02 is skipped and the
grade caps at B), takes ~20–60s, and exits non-zero on D/F so it scripts anywhere. To dispute any
published grade, re-run this same command against the same server — open and deterministic means a
re-run reproduces the grade, or refutes it.
Looking up a grade someone already published takes under a second and runs nothing: the
polygraph.so index, or check_server from the MCP tools below.

Use it from your agent — MCP server + plugin
For grade lookups, point any MCP client at polygraph's hosted endpoint, no install:
claude mcp add --transport http polygraph https://polygraph.so/api/mcp
or the raw config:
{ "mcpServers": { "polygraph": { "url": "https://polygraph.so/api/mcp" } } }
This serves the lookup tools only (check_server, list_servers, request_grade); grading a
server yourself (run_litmus, run_skill_litmus) executes its code, so it needs the local
stdio install below.
The package also ships a stdio MCP server (polygraphso-litmus-mcp) with the full toolset, for
any MCP-capable client:
check_server— read a server's published grade in under a second (no execution); the pre-flight check before recommending or installing a server.list_servers— servers with a published grade, A first; paged (default 25 per call, withgrade/limit/offsetfilters and a full-corpus summary).request_grade— record a grade request with polygraph.so ($1 one-time fee; graded within 48h of payment — the response carries the payment link).run_litmus— grade a server now: the full harness, grade + evidence returned to the agent.run_skill_litmus— grade a Claude Code / Agent Skill (static scan, A/B/D/F).verify_attestation— read the onchain proof behind a published grade (EAS on Base).
In Claude Code, the plugin wires the server plus two commands in one step:
/plugin marketplace add polygraphso/litmus
/plugin install polygraph@polygraphso
then /polygraph:grade <server> and /polygraph:check <server>. Cursor and manual JSON setups
are on polygraph.so; full tool docs in
packages/litmus/README.md.
Gate your CI on MCP grades — GitHub Action
Fail a build when an MCP server or an Agent Skill it ships grades D/F under the open
behavioral litmus. For servers it is hybrid — a fast lookup of the published grade, then the harness
when ungraded; for skills it is a fast static scan. Un-gradeable targets warn unless strict.
It's on the GitHub Marketplace as
polygraphso/litmus@v1. For a security gate, pin to a commit SHA rather than the mutable @v1 tag:
# .github/workflows/mcp-gate.yml
name: mcp-gate
on: [pull_request] # NOT pull_request_target — that exposes secrets to fork PRs
permissions:
contents: read
jobs:
gate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: polygraphso/litmus@<commit-sha> # pin to a SHA; resolve from the v1 release
with:
# Name the targets explicitly (recommended). Grading runs a server's code,
# so on a public repo prefer an allowlist over discovering PR-controlled config:
servers: |
npm/@modelcontextprotocol/server-filesystem
skills: |
./my-skill
# discover: "true" # opt in to auto-discovery (.mcp.json/.vscode/.cursor) — trusted repos only
# min-grade: B # stricter than the default D/F gate
# strict: "true" # also fail on targets that cannot be graded
Inputs: servers · skills · discover (default false) · min-grade · strict · working-directory · version · bearer. Outputs: result · failed · report.
Security. Grading a server runs its code (egress is Docker-sandboxed, but it still executes).
Trigger on pull_request, never pull_request_target. Keep discover off on public repos and name
targets explicitly — auto-discovered config is pull-request-controllable. bearer is sent as an
Authorization header to the target, so pass it only for an explicitly trusted, pinned remote — never
with discovery or on untrusted PRs, and keep it scoped and short-lived.
Not on GitHub? The gate is a plain command — npx @polygraphso/litmus@0.20.0 ci (pin the version) —
so it runs in any CI or as a pre-commit hook. A grade is a measurement, not a guarantee: re-run the
open harness to reproduce any result.
What litmus is
This is the source for @polygraphso/litmus,
the open behavioral litmus harness for MCP servers from polygraph.so.
The harness connects to an MCP server the way an agent would, fingerprints its exact tool surface, and runs four probe categories — C-01 tool-output injection (static, dynamic, and second-order — one tool's output weaponized as another's input), C-02 permission/egress (in a hardened default-deny Docker sandbox, matched host and port), C-03 sensitive-data handling (planted canaries), C-04 adversarial-input handling (malformed/oversized and jailbreak inputs) — then grades the server A–F. A passing grade is a measurement, not a guarantee; the methodology and its disclosed limits are at polygraph.so (the open source here is the ground truth).
Alongside the grade, an npm target's dependency tree is checked against the
osv.dev vulnerability database and any vulnerable dependencies are reported as
dependency advisories. This is a separate, point-in-time signal — it is advisory only: it
never affects the A–F grade and is not part of the reproducible evidence (vulnerability data changes
over time, so folding it into the grade would break re-run reproducibility). It applies to npm
targets only; other target kinds report it as skipped. Resolution runs
npm install --package-lock-only --ignore-scripts, which resolves the tree without downloading
tarballs or running any package code. Opt out with --no-deps-audit (or LITMUS_DEPS_AUDIT=0).
The same package also grades Claude Code / Agent Skills (a SKILL.md + bundle) under a
separate static litmus (litmus-skill-v3): a deterministic byte-scan — S-01 prompt
injection, S-03 data-exfiltration instructions, S-04 dangerous commands in the SKILL.md
body or bundled scripts (incl. base64-obfuscated curl | bash) — graded A/B/D/F and anchored
by a whole-directory content hash, plus a separate
advisory quality signal. It is static (no execution): an A is static-clean, not behavioral
proof. See packages/litmus/README.md.
The hosted, operator-run grading service is not in this repo — it lives in a separate private repo and consumes this package from npm like any other client.
Layout
This is a pnpm monorepo. Only @polygraphso/litmus is published; the
@polygraph/* packages are private building blocks that tsup bundles into it.
packages/
litmus/ # @polygraphso/litmus — the only published package (lib + 3 bins: CLI, skill CLI, MCP)
core/ # contract types, canonical JSON, identity helpers
probes/ # the harness: connect, fingerprint, grade, probe runners, sandbox
onchain/ # EAS attestation read + encode/decode (Base) — read-only, no minting
agent/ # agent-gate decision logic + live-fingerprint recheck
mcp/ # MCP server wrapper
cli/ # CLI commands + target/auth resolution
demo-*-mcp/ # demo MCP servers used as test fixtures
See packages/litmus/README.md for the npm-facing usage docs,
and polygraph.so for the methodology and proof format.
Develop
pnpm install
pnpm -r typecheck
pnpm -r test
pnpm --filter @polygraphso/litmus build # → packages/litmus/dist
Release
@polygraphso/litmus is versioned in packages/litmus/package.json. Tag to publish:
git tag litmus-v<x.y.z> && git push origin litmus-v<x.y.z>
The Publish @polygraphso/litmus workflow builds, typechecks, tests, and publishes with
npm provenance. See CONTRIBUTING.md for the full process and the
local-development workflow for downstream consumers.
License
Apache-2.0 — © polygraph.so.
litmus MCP 질문
litmus MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add litmus -- npx -y @polygraphso/litmus를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
litmus MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
MCP server의 등급은 어떻게 매기나요?
npx를 사용하여 litmus 도구를 npm, PyPI, GitHub 또는 로컬 엔트리 파일로 지정하면 단 한 번의 명령으로 서버 등급을 매길 수 있습니다.
litmus 하네스는 어떤 카테고리를 테스트하나요?
하네스는 tool-output injection, permission/egress, sensitive-data handling, adversarial-input handling의 네 가지 프로브 카테고리를 실행합니다.
CI/CD 파이프라인에서 litmus를 사용할 수 있나요?
네, polygraph-mcp-gate GitHub Action을 사용하여 MCP server 또는 Agent Skill이 D 또는 F 등급을 받을 경우 빌드를 실패하도록 설정할 수 있습니다.
등급 산정 과정은 안전한가요?
하네스는 egress 보안을 관리하기 위해 Docker 샌드박스 환경 내에서 대상 코드를 실행합니다.