# How to review MCP servers a repository adds to Claude Code

DevFeed: [How to review MCP servers a repository adds to Claude Code](<https://devfeed.tech/articles/how-to-review-mcp-servers-a-repository-adds-to-claude-code-153300.md>)

Original publisher: [Read original article](<https://nirmata.com/2026/11/25/how-to-review-mcp-servers-a-repository-adds-to-claude-code/>)

Author: Ritesh Patel

Published: 2026-11-25T06:36:18.459740Z

Content type: tutorial

Language: en

Sources: [Nirmata](<https://devfeed.tech/sources/nirmata.md>)

Topics: [Claude Code](<https://devfeed.tech/topics/claude-code.md>), [software security audit](<https://devfeed.tech/topics/software-security-audit.md>), [human review](<https://devfeed.tech/topics/human-review.md>), [.env](<https://devfeed.tech/topics/dotenv.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-sdk](<https://devfeed.tech/tags/agent-sdk.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-governance](<https://devfeed.tech/tags/ai-governance.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [command](<https://devfeed.tech/tags/command.md>), [header](<https://devfeed.tech/tags/header.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [json](<https://devfeed.tech/tags/json.md>), [launch](<https://devfeed.tech/tags/launch.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-servers](<https://devfeed.tech/tags/mcp-servers.md>), [project](<https://devfeed.tech/tags/project.md>), [repo](<https://devfeed.tech/tags/repo.md>), [repository](<https://devfeed.tech/tags/repository.md>), [review](<https://devfeed.tech/tags/review.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [servers](<https://devfeed.tech/tags/servers.md>), [value](<https://devfeed.tech/tags/value.md>), [var](<https://devfeed.tech/tags/var.md>)

## AI overview

Review a repository's `.mcp.json` before approving its MCP servers: inspect each command and argument or remote URL, entry type, environment value, `${VAR}` reference and default, and headers to understand what runs locally and where credentials may go. In interactive sessions Claude Code prompts before using project servers, but non-interactive `claude -p` and Agent SDK sessions may load them without prompting. Check approval states with `claude mcp list` and `claude mcp get <name>`; variable names are shown without resolved values. Approve servers individually, or reject one through `disabledMcpjsonServers`. A file review covers only that project: user and local settings, plugins, and claude.ai connectors can also define servers, with higher-precedence definitions used as a whole.

## Source excerpt

Review a repo's project .mcp.json before approving it: check each launch command, ${VAR} default, env value and header, then approve or reject the server.