2.4 · D219 questions · 5 free

MCP server integration

Integrate MCP servers into Claude Code and agent workflows.

This subtopic (2.4) sits in Tool Design & MCP Integration (D2) on Anthropic's Claude Certified Architect — Foundations (CCA-F) exam. The bank holds 19 practice questions here — 5 easy, 9 medium, and 5 hard — with 5 free to try, answers and explanations included. 3 of the free questions are below; the rest are in the practice stream.

What the exam tests here

  • MCP server scoping — project-level .mcp.json vs user-level ~/.claude.json
  • community MCP servers vs custom implementations for standard integrations
  • MCP resources as content catalogs to reduce exploratory tool calls
  • environment variable expansion in .mcp.json — credential management
Practice this subtopic — 5 freeFree questions with answers ↓

Free practice questions: MCP server integration

Question 1 of 3 · free · easy

Your team wants every developer to automatically have access to the get_customer and lookup_order MCP tools when working on the support agent project. Which configuration approach achieves this?

Show answer & explanation

Correct answer: A. Add the tools to .mcp.json in the project root and commit it to version control

Project-scoped MCP servers are stored in .mcp.json at the project root and shared via version control, making them automatically available to all team members working in that project. Local scope (~/.claude.json) is per-machine and not shared. Environment variables and local scope cannot distribute tool access across the team.

Question 2 of 3 · free · hard

Your support agent's get_customer and lookup_order MCP servers must be available to you on every project you open in Claude Code on your laptop, including private experiments outside the support repo. Other teammates working in the support repo should not see these servers when they clone — your laptop holds personal API keys to a sandbox tenant. Where should these MCP server definitions live?

Show answer & explanation

Correct answer: A. In ~/.claude.json on your laptop with user scope, so they load for any project you open without affecting teammates.

User-scoped MCP servers in ~/.claude.json load across every project for that user without committing anything to a repo, matching the 'all my projects, no teammates' constraint. 'In a committed .mcp.json' is project-shared, which the question explicitly rules out. '.claude/settings.local.json' holds local settings overrides, not MCP server definitions. 'claude mcp add with --scope project' writes to the project file, which would expose the servers to teammates.

Question 3 of 3 · free · medium

A research team builds a multi-agent system with a coordinator agent. They want the academic paper search MCP server available only within this project, while a personal note-taking MCP server should be available to the developer across all projects. Where should each server be configured?

Show answer & explanation

Correct answer: A. The academic search server in project-level .mcp.json; the note-taking server in user-level ~/.claude.json

Project-level .mcp.json scopes the academic search server to the research project and shares it via version control; user-level ~/.claude.json makes the personal note-taking server available across all projects for that developer. 'Both in .mcp.json' makes the personal server project-scoped, losing cross-project availability. 'Both in ~/.claude.json' makes the academic server available in unrelated projects unnecessarily. 'CLAUDE.md as config block' documents but does not configure MCP servers.

2 more free questions on this subtopic in the practice stream, plus 14 in the full bank. Keep practicing →

Related reading (Anthropic docs)