World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 102 tools.
作者による説明(英語の原文)
Author, validate, debug, and explain OPA Rego policies through any MCP-compatible client.
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
チェック 2/2 合格 · あなたのパソコンで動きます
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
OPA MCP のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
SettingsDeveloperEdit Config
{
"mcpServers": {
"opa": {
"command": "npx",
"args": [
"-y",
"@orygn/opa-mcp"
],
"env": {
"OPA_URL": "your-value",
"OPA_TOKEN": "your-value",
"OPA_BINARY": "your-value",
"REGAL_BINARY": "your-value",
"CONFTEST_BINARY": "your-value",
"OPA_MCP_ALLOWED_PATHS": "your-value",
"GITHUB_TOKEN": "your-value"
}
}
}
}キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
OPA MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が OPA MCP を使っていると言うか、回答に OPA MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ OPA MCP につなげません
OPA MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · OPA MCP につなげるアプリを使う
B · その他 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
OPA MCP のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · 先にパソコンへ Node.js を入れてください(1 回だけ)
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add opa --env OPA_URL=your-value --env OPA_TOKEN=your-value --env OPA_BINARY=your-value --env REGAL_BINARY=your-value --env CONFTEST_BINARY=your-value --env OPA_MCP_ALLOWED_PATHS=your-value --env GITHUB_TOKEN=your-value -- npx -y @orygn/opa-mcpEnter の前に「your-value」を自分のキーに書き換えてください
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
OPA MCP が一覧にあり、接続済みと表示されれば OK です
OPA MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が OPA MCP を使っていると言うか、回答に OPA MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
OPA MCP のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · 先にパソコンへ Node.js を入れてください(1 回だけ)
OPA MCP の設定で OPA_URL, OPA_TOKEN, OPA_BINARY, REGAL_BINARY, CONFTEST_BINARY, OPA_MCP_ALLOWED_PATHS, GITHUB_TOKEN が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
OPA MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が OPA MCP を使っていると言うか、回答に OPA MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
OPA MCP のキーが必要です(提供元のサイトで登録、費用がかかる場合あり) · 先にパソコンへ Node.js を入れてください(1 回だけ)
OPA MCP の設定で OPA_URL, OPA_TOKEN, OPA_BINARY, REGAL_BINARY, CONFTEST_BINARY, OPA_MCP_ALLOWED_PATHS, GITHUB_TOKEN が空です。自分のキーを入れて保存します
キーはアプリの入力欄にだけ貼り付け、チャットに貼ったり人に送ったりしないでください
OPA MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が OPA MCP を使っていると言うか、回答に OPA MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
Claude Code
claude mcp add opa --env OPA_URL=your-value --env OPA_TOKEN=your-value --env OPA_BINARY=your-value --env REGAL_BINARY=your-value --env CONFTEST_BINARY=your-value --env OPA_MCP_ALLOWED_PATHS=your-value --env GITHUB_TOKEN=your-value -- npx -y @orygn/opa-mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"opa": {
"command": "npx",
"args": [
"-y",
"@orygn/opa-mcp"
],
"env": {
"OPA_URL": "your-value",
"OPA_TOKEN": "your-value",
"OPA_BINARY": "your-value",
"REGAL_BINARY": "your-value",
"CONFTEST_BINARY": "your-value",
"OPA_MCP_ALLOWED_PATHS": "your-value",
"GITHUB_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"opa": {
"command": "npx",
"args": [
"-y",
"@orygn/opa-mcp"
],
"env": {
"OPA_URL": "your-value",
"OPA_TOKEN": "your-value",
"OPA_BINARY": "your-value",
"REGAL_BINARY": "your-value",
"CONFTEST_BINARY": "your-value",
"OPA_MCP_ALLOWED_PATHS": "your-value",
"GITHUB_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"opa": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@orygn/opa-mcp"
],
"env": {
"OPA_URL": "your-value",
"OPA_TOKEN": "your-value",
"OPA_BINARY": "your-value",
"REGAL_BINARY": "your-value",
"CONFTEST_BINARY": "your-value",
"OPA_MCP_ALLOWED_PATHS": "your-value",
"GITHUB_TOKEN": "your-value"
}
}
}
}OPA_URL envOPA_TOKEN 秘密 envOPA_BINARY envREGAL_BINARY envCONFTEST_BINARY envOPA_MCP_ALLOWED_PATHS envGITHUB_TOKEN 秘密 envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月11日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント OrygnsCode で確認済みです
コードの最終更新:9 日前
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック2項目のうち2項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:OPA_TOKEN, GITHUB_TOKEN
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は9 日前、最新バージョン(0.9.1)がレジストリに届いたのは18 日前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.js, Dockerも必要です。
同じカテゴリには:World Monitor, Claude Flow, Tldraw
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 102 tools.
AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
A Model Context Protocol (MCP) server that turns any MCP-compatible client (Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Zed, and others) into a first-class Open Policy Agent and Rego authoring environment.
+--------------------+ MCP/stdio +-----------------+ spawn/HTTP +---------------------+
| Claude · Cursor · |----------> | @orygn/opa-mcp |----------> | opa · regal | | VS Code · ... |<---------- | |<---------- | conftest · REST API | +--------------------+ 52 tools +-----------------+ +---------------------+
Status: v0.9.1. Tool surface, error codes, and
environment variables follow SemVer from
v0.1.0 forward.
Upgrading to 0.9.0: a tool refuses an argument it does not declare,
and the error names it; it used to be dropped. A policy or query that does
not compile is
INVALID_REGOin every tool that runs opa, where several
returned
EVAL_ERROR.rego_explain_decisionreturns the trace as
readable lines, not OPA's raw events.
conftest_testreports a run that
evaluated no rule as
passed: false, andrego_generate_test_skeleton
writes
todo_test_stubs, whichopa testskips until they are filled in.
Responses are compact JSON.
Upgrading to 0.8.0:
opa_execloadsdataPathsasopa eval --data
does, so a directory that also holds test fixtures, or JSON and YAML that
is not data, can now fail to load; pass it as
bundleto load it as
before. A policy that does not load is
INVALID_REGOinopa_execand
the conftest tools, where it was
EVAL_ERRORandUNKNOWN_ERROR.
Upgrading to 0.7.0: Node.js 22 or later is required. The bundled OPA
is 1.21, which reads YAML against the 1.2 schema: bare
yes,no,on
and
offin data files are strings now, not booleans. If you supply your
own binary via
OPA_BINARYorPATH, only the Node requirement applies.
Upgrading to 0.6.0:
rego_benchreportsiterations,nsPerOp,
allocsPerOpandbytesPerOp. The fields opa prints (N,T,Bytes,
MemAllocs,MemBytes,Extra) were top-level and now sit underraw
for a single run, so anything that read them from the top level has to
look there. With
countabove one,rawis omitted: every document is in
runs, andfastestindexes the one the top-level figures come from.
Upgrading to 0.4.0: subprocesses no longer inherit the server's
environment. A policy that read a variable through
opa.runtime().env
will no longer see it; name the variable in
OPA_MCP_PASSTHROUGH_ENVif
it is genuinely needed. See the security section for why.
Upgrading to 0.3.0: the bundled OPA is now 1.19, so Rego v0 policies
no longer parse (
ifis required before a rule body,containsbefore a
partial set). Run
rego_migrate_v1to convert them, or pass
v0Compatible: trueto load one as it is. If you supply your own binary via
OPA_BINARYorPATH, nothing changes.
Once an MCP client is connected, an agent can:
opa fmt and opa parse so output is byte-identical to what you'd get on the command line, and regal (optional) surfaces idiomatic suggestions.--explain, --profile, and --coverage flags surface execution traces, hot rules, and per-line coverage.rego_explain_decision walks the agent through every rule that fired (and every one that didn't), so it can answer "why was this rejected" without you reading the trace by hand.opa run --server or a production deployment with bearer-token auth..tar.gz the agent can hand to your delivery system.rego_lint runs Regal across a directory or a single file and returns each finding with its category, level and location.A walk-through of a typical session lives in Cookbook.
OPA already has a perfectly good CLI and REST API. So why an MCP wrapper?
rego_eval gets a validated input schema, a structured output envelope, and stable error codes, instead of parsing free-form CLI text and inventing its own failure taxonomy. That alone makes Rego usable to an agent the way a language server makes a language usable to an IDE.rego_explain_decision, rego_generate_test_skeleton, rego_describe_policy, and rego_suggest_fix compose the lower-level primitives into the tasks agents are actually asked to do. They don't exist in the OPA CLI.If you've ever watched an agent fight opa eval's argument order, you'll recognize the gap this fills.
The server runs locally over stdio. Pick the install path that matches your client.
Edit claude_desktop_config.json directly (or copy from examples/claude-desktop.json):
{
"mcpServers": { "opa": { "command": "npx", "args": ["-y", "@orygn/opa-mcp"], "env": { "OPA_BINARY": "/usr/local/bin/opa", "REGAL_BINARY": "/usr/local/bin/regal", "OPA_URL": "http://localhost:8181", "OPA_MCP_ALLOWED_PATHS": "/path/to/your/policies" } } } }
Replace the
/usr/local/bin/...paths with your real ones. See the
first-time install gotcha
below. Windows users substitute
C:\\path\\to\\opa.exe.
Or download opa-mcp.mcpb from the latest release and double-click it.
Register the server for the current project with claude mcp add:
claude mcp add \
--env OPA_BINARY=/usr/local/bin/opa \ --env REGAL_BINARY=/usr/local/bin/regal \ --env OPA_MCP_ALLOWED_PATHS=/path/to/your/policies \ opa -- npx -y @orygn/opa-mcp
This writes the config into .mcp.json at your project root and is picked up automatically on every claude session in that directory. Add --scope user to register it globally instead.
Replace the paths with your real absolute paths (same caveat as
Claude Desktop above). On Windows use
C:\path\to\opa.exesyntax.
Persistent context and auto-checks for policy repos. If you work in an OPA policy repo regularly, two extra files remove repetitive setup from every session:
examples/CLAUDE.md -- copy to your repo root or .claude/CLAUDE.md. Claude Code loads it every session, so the agent always knows which tools to use and what conventions apply.examples/claude-code-hook.json -- merge the hooks block into .claude/settings.json. Runs opa check after Claude writes or edits a .rego file and hands any error back to Claude, without a manual tool call.Drop examples/cursor.json into either .cursor/mcp.json (project-scoped) or ~/.cursor/mcp.json (user-scoped).
Drop examples/vscode.json into .vscode/mcp.json, or paste the servers block into your user settings.json under mcp.servers.
See examples/ for a full set of drop-in configs.
npm install -g @orygn/opa-mcp
opa-mcp --version
then point your client at the opa-mcp binary.
docker pull orygn/opa-mcp:latest
docker run --rm -i \ -v /path/to/your/policies:/policies:ro \ -e OPA_MCP_ALLOWED_PATHS=/policies \ orygn/opa-mcp
The image is multi-arch (linux/amd64, linux/arm64), bundles pinned versions of opa and regal, and runs as a non-root user. No host install of OPA or Regal is required.
OPA_BINARY_NOT_FOUNDThe npm package carries its own opa for the five platforms it is built for, so a client PATH without opa on it does not matter there. The MCPB has no bundled copy, and on any other platform neither does npm: then the server boots but every tool call returns OPA_BINARY_NOT_FOUND. Neither the npm package nor the MCPB bundles regal or conftest, and the Docker image ships regal but not conftest, so their tools need a PATH entry or an explicit path either way.
Fix: add OPA_BINARY and REGAL_BINARY env entries to your client config with the absolute path to each binary. The example configs under examples/ ship with placeholder paths you replace. Find the real paths with:
which opa && which regal # macOS / Linux
Get-Command opa, regal | Select-Object Source # Windows
This does not affect the Docker install path, which ships opa and regal in the image and bypasses PATH entirely. The MCPB bundle carries neither, and unlike the npm install has no bundled fallback: set OPA_BINARY or put opa on PATH. See Troubleshooting for full detail.
The server reads its configuration from environment variables. Every variable is optional; defaults are sensible for a local OPA on http://localhost:8181.
| Variable | Default | Purpose