Anthropic CCA-F: MCP Server Design and Integration
Model Context Protocol connects Claude applications to external capabilities, but a sound architecture needs more than a list of tools. Design an MCP boundary around ownership, trust, authorization, response quality, context cost and failure recovery, then test it as part of the entire agent workflow. An MCP tool can be discoverable without being authorized for every caller. Trustworthy integrations define the owning service, input constraints, permitted data, execution identity, result provenance, and predictable behavior when a dependency is unavailable.
On this page
- Understand the boundaries before choosing a server
- Choose tools, resources and prompts by purpose
- Design a bounded tool contract
- Make identity, authorization and consent explicit
- Keep large catalogs out of the active context
- Design the transport and failure behavior for the environment
- Test MCP as a complete application boundary
Understand the boundaries before choosing a server
Model Context Protocol (MCP) standardizes how an AI application connects to external tools and context sources. A host application operates one or more MCP clients, and those clients communicate with MCP servers that expose capabilities. The server’s job is not to make arbitrary business decisions for the model; it is to provide a controlled, documented interface to systems whose data and actions the application may legitimately use.
The official Claude Certified Architect – Foundations blueprint assigns 18% to Tool Design and MCP Integration. An MCP server that exposes a broad customer database should not automatically pass the calling user’s authority to every operation. Start with narrow tool schemas that identify allowed actions, required parameters and error states; authorize every call using application-owned policy rather than trusting the model’s selection. Distinguish read-only search from actions that can change or disclose records, cap result scope, validate returned data, and test the behavior when a tool times out or returns untrusted instructions. The relevant architectural question is where trust crosses the server boundary, not how many tools the agent can discover.
For example, an internal help-desk agent may need to search documentation, read a ticket and propose a status update. It does not follow that every capability should be hosted in the same process or share the same credentials. A documentation server may offer read-only resources; a ticket server may offer narrowly defined tools with role-based update permissions. Separation helps operators understand data ownership, audit trails and the consequences of a compromised integration.
Choose tools, resources and prompts by purpose
The MCP specification distinguishes server capabilities that serve different needs. Tools are callable operations with named inputs and outputs. Resources expose readable contextual material. Prompts provide reusable interaction templates or workflows. These are not interchangeable marketing labels; their distinction helps hosts present capabilities appropriately and make permissions understandable.
| MCP capability | Appropriate design | Risk when misused |
|---|---|---|
| Tool | Search an approved ticket system or submit a constrained update | Broad, ambiguous operations that can change unrelated records |
| Resource | Expose a permitted runbook or policy document by stable identifier | Revealing private data or assuming stale content remains authoritative |
| Prompt | Supply a reusable investigation outline with declared inputs | Treating an optional template as a security policy or authority grant |
A frequently consulted read-only policy document may be better represented as a resource than as a tool that appears to perform a sensitive action. Conversely, an operation that searches dynamic data and returns filtered results is naturally a tool. A reusable incident triage prompt can help a user begin consistent work, but it should not bypass policy or authorize writes.
Good naming matters. get_customer_status is clearer than do_customer, and a description should say when to use a tool, not just that it exists. A model choosing between several similarly named tools should be able to distinguish their scope, access requirements and consequences without guessing.
Design a bounded tool contract
A model-facing operation should accept the smallest meaningful parameters. A customer lookup might accept a verified account reference and a narrow request type rather than an unrestricted query language. A ticket update should accept a ticket ID, intended status and a required justification, while server-side code validates the caller’s permission and current ticket state. Do not build a server that exposes generic database commands merely because they are easy to wire to a transport.
Schema constraints reduce malformed calls but do not establish business authorization. Strict tool use can enforce supported JSON Schema input shapes. The server must still reject a well-formed but unauthorized request. The existence of an allowed-looking field is not evidence that its value belongs to the current user or that the resource may be changed now.
Return results that support decisions. For a search, include the useful fields, stable identifiers, timestamps or version information, and a clear indication that no matches were found versus that a search failed. For a mutation, return a verifiable outcome and an operation identifier; if a workflow times out after committing a change, the caller needs a way to determine whether retrying would duplicate the action.
Keep errors explicit. The host should be able to distinguish invalid inputs, missing permission, unavailable upstream service, timeout and a legitimate empty result. Treating them all as empty text encourages an agent to improvise facts or repeat actions without a reliable basis.
Make identity, authorization and consent explicit
Remote MCP services need a suitable authentication and authorization arrangement, with the host, client, MCP server and upstream business system retaining clear responsibilities. The protocol’s authorization specification defines interoperable patterns for applicable remote transports, but real deployment still requires appropriate token scope, audience and lifetime handling, protected credentials and per-operation access control.
A user may be allowed to read tickets assigned to their group without being allowed to close a security incident or export the full customer database. The server should make those distinctions with its own permission checks, not a prompt instruction such as “Claude should only update approved records.” Approval for a particular action can be a separate requirement, especially when the action is irreversible or has public consequences.
For local MCP servers, process execution and filesystem access create a different trust boundary. Review which executable is installed, what it can read, what environment variables it receives and which directories it can affect. Avoid granting a local server broad privileges merely because the integration runs on the user’s machine.
When human consent is required, show the proposed tool and arguments in ordinary language. A reviewer should understand which record will change, what the alternative is and whether a retry could multiply the impact. Consent for a generic tool name should not silently authorize every future operation with different target parameters.
Keep large catalogs out of the active context
An organization might offer dozens of servers and hundreds of tool definitions. Exposing all of them to the model on every request increases token cost, makes selection harder and widens the set of instructions or data the model may encounter. Group tools by domain and permission scope, then expose only what the current task actually needs.
Where the Claude environment supports it, deferred discovery and tool search can help retrieve relevant tool definitions on demand. The mechanism is an optimization, not an authorization boundary: tools that are hidden from context are not necessarily inaccessible unless the host and server also enforce permissions. The Claude Platform tool-context guidance explains why discovery, caching and context editing solve different forms of context growth.
Track useful metrics: how often an offered tool is selected correctly, whether responses contain enough information, how often a call is retried, and how much context each response adds. A compact result that cites its source can be safer and more useful than a multi-page raw payload that buries the relevant field.
Design the transport and failure behavior for the environment
MCP can operate over local process communication or remote HTTP-based connections, depending on the client and server design. The appropriate transport depends on where the capability runs, who operates it, how identity is authenticated and what network constraints apply. Do not assume that a remote HTTP server and a local subprocess share the same risk model or operational guarantees.
A production integration needs timeouts, observability, service health checks, version compatibility decisions and an explicit fallback when the server is unavailable. Suppose an agent is preparing a change request and the ticket system fails midway. It should preserve the completed read-only analysis, report the write as unconfirmed and request a status check before repeating the update. Blind automatic retries can create duplicate tickets or unexpected state changes.
For multi-step flows, attach correlation identifiers so operators can trace a model decision to the MCP call, the downstream API response and any human approval. Avoid placing credentials or private document contents into routine logs. The Agentic Architecture and Orchestration topic explains how to keep tool calls within controlled workflow stages.
Test MCP as a complete application boundary
Protocol conformance is necessary but insufficient. Test a valid allowed request, an invalid schema, an unauthorized resource reference, an expired credential, an unavailable upstream system, duplicate submissions and a malicious instruction embedded in a retrieved document. Confirm that each produces a safe, useful and distinguishable outcome. The test should not expect the model to solve a missing permission through repeated prompt changes.
Build a small authorized lab: one read-only source, one bounded change operation, explicit caller identity and a synthetic record set. Let the application search a record, propose a change, ask for approval and verify the resulting state. Then disable the server during the workflow and observe whether the application reports uncertainty accurately. This is a more valuable architecture exercise than connecting many tools without discussing their trust boundaries.
Protect the separation between model choice, tool invocation, authorization and side effect. If the model suggests an unsafe update, the application should decline it even when the tool call is syntactically valid. If the data is stale, the application should re-read it before committing. If a server changes, compatibility and permission behavior should be retested, not assumed from the previous deployment.
An architecture review for Claude Certified Architect – Foundations (CCAR-F) should justify whether an MCP capability is a tool, resource or prompt, which server owns it, who may invoke it, and how the workflow recovers from failure. Those answers show that MCP is being used as a reliable architecture rather than a shortcut to unrestricted external access.