プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

MCP Code Sanitizer

作者:notasandyバージョン 0.1.0i★ –iパソコンで動く
レジストリ名io.github.notasandy/mcp-code-sanitizer

インストール

概要

作者による説明(英語の原文)

Strict AI code reviewer powered by Groq. Finds bugs and vulnerabilities.

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: その他
  • 入力が必要なもの:GROQ_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • PyPIPythonのuvのインストール(uvxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "code-sanitizer": {
      "command": "uvx",
      "args": [
        "mcp-code-sanitizer"
      ],
      "env": {
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add code-sanitizer --env GROQ_API_KEY=your-value -- uvx mcp-code-sanitizer

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "code-sanitizer": {
      "command": "uvx",
      "args": [
        "mcp-code-sanitizer"
      ],
      "env": {
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "code-sanitizer": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-code-sanitizer"
      ],
      "env": {
        "GROQ_API_KEY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • GROQ_API_KEY 秘密 必須 env
    Groq API key from console.groq.com/keys

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント notasandy で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

その他のほかのサーバーとの比較i

  • このカテゴリのほかの32489件のうち0%よりスターが多い
  • このカテゴリのほかの32489件のうち8%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの32489件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

MCP Code Sanitizerは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:GROQ_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(0.1.0)がレジストリに届いたのは6 か月前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。

代わりに使えるものは?

同じカテゴリには:Spec Driven Development, Remote Desktop Commander, Whisper

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

クラウドで動く★ 211昨日更新
インストール

Whisper

作者:whisper-sec

One routable IPv6 per AI agent, verifiable from the DNS root. Keyless tools need no signup.

パソコンでもクラウドでも今日更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

mcp-code-sanitizer

Strict AI-powered code reviewer for Claude Desktop, Cursor, VS Code, and Claude Code CLI.

Finds bugs, vulnerabilities, and security issues — powered by Groq (free API).

Claude / Cursor / VS Code  ──MCP──►  code-sanitizer  ──REST──►  Groq API

(server.py) (llama-3.3-70b)


Features

ToolWhat it does
analyze_codeStrict review — bugs, security issues, score 0–100
compare_codeCompares two versions, detects regressions, recommends merge/request_changes
explain_codeStep-by-step explanation for junior / middle / senior audience
generate_testsGenerates pytest / jest / go test — happy path, edge cases, security
analyze_fileAnalyzes a whole file from disk with parallel chunking
generate_reportBuilds an HTML report from any analysis result
cache_infoCache statistics and clearing
Example output
{

"summary": "Critical SQL injection and secret exposed in logs", "score": 23, "issues": [ { "severity": "critical", "line": 2, "title": "SQL Injection", "description": "f-string directly interpolates user_id into query", "fix": "cursor.execute('SELECT * FROM users WHERE id = %s', (user_id,))" } ], "warnings": [{"title": "No exception handling", "description": "..."}], "suggestions": ["Consider using an ORM instead of raw SQL"] }


Installation

Prerequisite: Get a free Groq API key at console.groq.com/keys — no credit card required.

Claude Code CLI
claude mcp add code-sanitizer -e GROQ_API_KEY=gsk_your_key -- uvx mcp-code-sanitizer
Claude Desktop
OSConfig file
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json
{

"mcpServers": { "code-sanitizer": { "command": "uvx", "args": ["mcp-code-sanitizer"], "env": { "GROQ_API_KEY": "gsk_your_key_here" } } } }

Cursor

Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json globally):

{

"mcpServers": { "code-sanitizer": { "command": "uvx", "args": ["mcp-code-sanitizer"], "env": { "GROQ_API_KEY": "gsk_your_key_here" } } } }

VS Code

Requires VS Code 1.99+ with GitHub Copilot. Create .vscode/mcp.json in your project:

{

"servers": { "code-sanitizer": { "command": "uvx", "args": ["mcp-code-sanitizer"], "env": { "GROQ_API_KEY": "gsk_your_key_here" } } } }

Or add globally via Ctrl+Shift+P → "MCP: Add Server".

Don't have `uvx`? Install it with pip install uv, then use the commands above.


Manual install (alternative)

If you prefer cloning the repo:

git clone https://github.com/notasandy/mcp-code-sanitizer

cd mcp-code-sanitizer pip install -r requirements.txt cp .env.example .env # add your GROQ_API_KEY python server.py

Then point the client config to:

{

"command": "python", "args": ["/full/path/to/server.py"], "env": { "GROQ_API_KEY": "gsk_your_key_here" } }


GitHub Action — automatic PR review

Add AI code review to any repository in 5 lines. The action posts a structured comment on every PR with score, issues, and fix suggestions.

# .github/workflows/ai-review.yml

name: AI Code Review on: pull_request: types: [opened, synchronize]

permissions: contents: read pull-requests: write

jobs: review: runs-on: ubuntu-latest steps:

  • uses: notasandy/mcp-code-sanitizer@v1 with: groq_api_key: ${{ secrets.GROQ_API_KEY }}

Add GROQ_API_KEY to your repository secrets → Settings → Secrets → Actions.

The action automatically:

  • Reviews only changed files (up to 10 per PR)
  • Posts a score and structured issue list as a PR comment
  • Fails the check if critical issues are found

Usage in chat

After connecting, just write naturally:

Review this code for vulnerabilities:

def get_user(user_id): query = f"SELECT * FROM users WHERE id = {user_id}" return db.execute(query)

Or call tools explicitly:

analyze_file /path/to/my_script.py

generate_tests for this function: ... compare_code — before vs after refactor, did it get better? generate_report and save to /tmp/report.html


Architecture

mcp-code-sanitizer/

├── server.py # FastMCP entry point ├── config.py # Constants — keys, limits, extension map ├── groq_client.py # Async Groq client with auto-retry on 429 ├── cache.py # In-memory LRU cache with TTL ├── prompts.py # System prompts for all tools └── tools/ ├── analyze.py # analyze_code ├── compare.py # compare_code ├── explain.py # explain_code ├── tests.py # generate_tests ├── file_tool.py # analyze_file — chunking + parallel analysis ├── cache_tool.py # cache_info └── report.py # generate_report — HTML output


Configuration

All settings via .env or environment variables:

VariableDefaultDescription
GROQ_API_KEY—Required. Get at console.groq.com
GROQ_MODELllama-3.3-70b-versatileGroq model to use
CACHE_TTL3600Cache TTL in seconds
CACHE_MAX200Max cached entries
Available Groq models
ModelSpeedQuality
llama-3.3-70b-versatileFastBest (default)
llama-3.1-8b-instantFastestGood
mixtral-8x7b-32768FastGreat

Contributing

PRs and Issues are welcome. Most wanted:

  • Support for other LLM providers (OpenAI, Anthropic)
  • New tools: dependency audit, complexity score, docstring generator
  • Prompt improvements and new language support

License

MIT — do whatever you want. A star would be appreciated.


Links

PopNxに聞く