{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "How to Secure MCP Servers: Auditing Tool Calls and Permissions",
    "canonical_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-11-22T00:00:00+00:00"
  },
  "summary": "Time to complete: 45–60 minutes for one MCP server, plus ~15 minutes per additional server. Difficulty: Intermediate.",
  "topics": [
    "MCP безопасность",
    "защита MCP сервера",
    "MCP tool calls аудит"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "MCP безопасность",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "защита MCP сервера",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "MCP tool calls аудит",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "Docker",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "Claude",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-KAKZASCHIT-001",
      "statement": "Time to complete: 45–60 minutes for one MCP server, plus ~15 minutes per additional server.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Time to complete: 45–60 minutes for one MCP server, plus ~15 minutes per additional server."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-002",
      "statement": "Difficulty: Intermediate.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Difficulty: Intermediate."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-003",
      "statement": "You will need: Python 3 (the same interpreter your MCP server already runs on — check the documentation for the exact version your SDK supports), an MCP client whose config file you can edit (Claude Desktop, an IDE agent, or any client that launches servers over stdio — check the documentation for your client's current config path), jq for log queries (optional), write access to ~/mcp-audit/.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "You will need: Python 3 (the same interpreter your MCP server already runs on — check the documentation for the exact version your SDK supports), an MCP client whose config file you can edit (Claude Desktop, an IDE agent, or any client that launches servers over stdio — check the documentation for your client's current config path), jq for log queries (optional), write access to ~/mcp-audit/."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-004",
      "statement": "Result: every tool call is written to an append-only JSONL audit log, and any tool that is not on your allow-list is rejected before it reaches the server.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Result: every tool call is written to an append-only JSONL audit log, and any tool that is not on your allow-list is rejected before it reaches the server."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-005",
      "statement": "[ ] You know the exact command that starts your MCP server (e.g. python3 -m my_mcp_server).",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "[ ] You know the exact command that starts your MCP server (e.g. python3 -m my_mcp_server)."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-006",
      "statement": "[ ] You can edit the client config that lists mcpServers (for Claude Desktop this is claude_desktop_config.json — check the documentation for the path on your OS).",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "[ ] You can edit the client config that lists mcpServers (for Claude Desktop this is claude_desktop_config.json — check the documentation for the path on your OS)."
    },
    {
      "id": "AR-GUIDE-KAKZASCHIT-007",
      "statement": "[ ] You have a test file the agent may read, e.g. ~/mcp-audit/sandbox/notes.txt.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "[ ] You have a test file the agent may read, e.g. ~/mcp-audit/sandbox/notes.txt."
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "How to Secure MCP Servers: Auditing Tool Calls and Permissions",
      "claim_id": "AR-GUIDE-KAKZASCHIT-001"
    },
    {
      "subject": "Guide",
      "predicate": "includes step",
      "object": "Step 1. Inventory the server's tools and classify each one",
      "claim_id": "AR-GUIDE-KAKZASCHIT-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is required?",
      "answer": "[ ] You know the exact command that starts your MCP server (e.g. python3 -m my_mcp_server).; [ ] You can edit the client config that lists mcpServers (for Claude Desktop this is claude_desktop_config.json — check the documentation for the path on your OS).; [ ] You have a test file the agent may read, e.g.…",
      "claim_ids": [
        "AR-GUIDE-KAKZASCHIT-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "How to do it?",
      "answer": "Step 1. Inventory the server's tools and classify each one → Step 2. Put an auditing, deny-by-default proxy between client and server → Step 3. Verify the policy by attacking your own setup",
      "claim_ids": [
        "AR-GUIDE-KAKZASCHIT-004"
      ],
      "article_anchor": "#step-1"
    },
    {
      "question": "Which topics does it cover?",
      "answer": "MCP безопасность, защита MCP сервера, MCP tool calls аудит",
      "claim_ids": [
        "AR-GUIDE-KAKZASCHIT-002"
      ],
      "article_anchor": "#entities"
    },
    {
      "question": "What are the key points?",
      "answer": "Time to complete: 45–60 minutes for one MCP server, plus ~15 minutes per additional server. Difficulty: Intermediate.",
      "claim_ids": [
        "AR-GUIDE-KAKZASCHIT-007"
      ],
      "article_anchor": "#tldr"
    }
  ],
  "limitations": [
    "Current versions, prices and limits.",
    "Independent benchmarks and quality checks.",
    "Terms of use and data policy."
  ],
  "citation": {
    "preferred_citation": "AI Release. Как защитить MCP-серверы от атак: аудит tool calls и прав доступа. https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
    "canonical_url": "https://ai-release.org/guides/kak-zaschitit-mcp-servery-ot-atak-audit-tool-calls-i-pr_en.html",
    "publisher": "AI Release"
  }
}