BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeClaude Certified Architect - Foundations (CCAR-F)Reference: configuring MCP servers
Grounded reference244 words

Reference: configuring MCP servers

Claude Certified Architect - Foundations (CCAR-F) › Domain 2: Tool Design & MCP Integration

Configuring MCP servers, from the Claude Code documentation

Domain 2 examines where an MCP server is configured and who receives it. The exam guide names two scopes. The documentation describes three, and the one it adds is the default.

Guide and documentation, side by side

The guide keys project-level (.mcp.json) against user-level (~/.claude.json). That is the distinction you are graded on. The documentation adds a LOCAL scope, which is what you get when you add a server without naming a scope at all.

The three scopes

ScopeLoads inSharedStored in
Local (the default)Current project onlyNo~/.claude.json, under the project's path
ProjectCurrent project onlyYes, via version control.mcp.json at the project root
UserAll your projectsNo~/.claude.json

Precedence runs local, then project, then user, then plugin-provided servers, then claude.ai connectors.

Local and user both live in the same file

~/.claude.json holds both, and the file does not tell you the scope — the position inside it does. A local server sits under that project's path, a user server at the top level. So the exam-relevant contrast is not really which file, it is who receives the configuration: only the project scope travels to your team.

Environment variable expansion

Project scope is committed, so a credential must be referenced rather than written.

SyntaxBehaviour
${VAR}Expands to the environment variable
${VAR:-default}Expands to VAR if set, otherwise the default

Expansion works in command, args, env, url and headers.

If a variable is not set the server still loads with the text unexpanded, and claude mcp list reports a missing-variable warning. The default form is how you avoid that.

Transports

TransportUse for
httpRemote servers — the recommended choice
stdioLocal processes
sseDeprecated
wsPersistent bidirectional connections

For stdio the double-dash separator matters: everything after it passes to the server untouched.

claude mcp add --env KEY=value --transport stdio myserver -- python server.py --port 8080

A url with no type is a configuration error, not a default.

The commands

Working with configured servers

  1. 1

    claude mcp add

    Add a server. The scope flag chooses local, project or user; the transport flag picks the transport; the header flag supplies authentication.

Output limits

MCP output

Warning threshold
10,000 tokens
Default limit
25,000 tokens
Override
MAX_MCP_OUTPUT_TOKENS
Per-tool ceiling
500,000 characters

A server can annotate one tool with a larger character allowance in its tool listing, up to that hard ceiling.

Sources

  • Connect Claude Code to tools via MCP — https://code.claude.com/docs/en/mcp (retrieved 2026-08-30)
All Claude Certified Architect - Foundations (CCAR-F) Study Resources

Related Notes

  • Domain 2 Project — build tools your agent actually picks correctly919 words
  • Domain 2: Tool Design & MCP Integration157 words
  • CCAR-F: how the exam is dealt194 words
  • Scenario 1: Customer Support Resolution Agent225 words
  • Scenario 2: Code Generation with Claude Code185 words
  • Scenario 3: Multi-Agent Research System199 words
  • Scenario 4: Developer Productivity with Claude197 words
  • Scenario 5: Claude Code for Continuous Integration168 words
  • Scenario 6: Structured Data Extraction185 words
  • Domain 1: Agentic Architecture & Orchestration169 words
  • Domain 1 Project — build a support agent, then make it a team1,199 words
  • Reference: the tool-use round trip505 words

Ready to study Claude Certified Architect - Foundations (CCAR-F)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Claude Certified Architect - Foundations (CCAR-F)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Claude Certified Architect - Foundations (CCAR-F) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.