| MCP host | The AI application that wants context or actions. |
| MCP client | The component in the host that maintains a connection to a server. |
| MCP server | A service exposing tools, resources and prompts with declared schemas. |
| Capability negotiation | The handshake where client and server agree on supported features. |
- Multiple models or clients need the same tool access.
- You want auditable, permission-aware tool exposure.
- Third parties should extend your AI application.
- 01Client connects to server and negotiates capabilities.
- 02Server advertises tools, resources and prompt templates.
- 03Host calls a tool with typed arguments; server executes with its own permissions.
- 04Results and diagnostics return to the model as context.
One order tool for several clients
- Context
- Multiple AI clients need to look up order status.
- Problem
- Each client would otherwise need a bespoke integration.
- Approach
- Wrap the order API in an MCP server with a declared input schema and capability negotiation.
- Outcome
- Consistent, discoverable tool access across clients.
Third-party extension with least privilege
- Context
- An external partner may read selected order resources.
- Problem
- Broad credentials would expose far more than the partner needs.
- Approach
- Expose read-only resources through a server with scoped credentials and audited calls.
- Outcome
- The partner gets useful access without an over-privileged integration.
Tool definition (illustrative)
{
"name": "search_docs",
"description": "Search internal documentation by query.",
"inputSchema": {
"type": "object",
"properties": {
"query": { "type": "string", "minLength": 2 },
"limit": { "type": "integer", "minimum": 1, "maximum": 20 }
},
"required": ["query"]
}
}Clients discover tools via capability negotiation; execution and permissions are enforced by the server.
Server config for an order-lookup tool
transport: http
credentials: { scope: "orders:read", owner: "server" }
allowed_tools: [lookup_order]
timeout_ms: 2000
audit: { caller_identity: true, outcome: true }Credentials belong to the server, not the model. Validate arguments and log each call as an audit record.
MCP servers
Up: Standard interface across clients
Down: Another service to operate and secure
Direct API calls
Up: Fewer components
Down: Custom integration per model/client
Broad tool surface
Up: Flexible
Down: Harder to audit and secure
| Option | Upside | Cost |
|---|---|---|
| MCP servers | Standard interface across clients | Another service to operate and secure |
| Direct API calls | Fewer components | Custom integration per model/client |
| Broad tool surface | Flexible | Harder to audit and secure |
- Treat an MCP server as a privileged integration point.
- Scope credentials to the server, not the model.
- Validate all tool arguments server-side.
- Log tool calls with caller identity and outcome.
| Key | Typical value | Note |
|---|---|---|
| transport | stdio / HTTP | Choose by deployment. |
| allowed_tools | explicit list | Deny by default. |
| timeout | per tool | Prevent long-running calls. |
| Symptom | Cause | Fix |
|---|---|---|
| Client cannot see tools | Failed capability negotiation | Check version compatibility and handshake logs. |
| Tool call denied | Server-side permission scope | Review server credentials, not the prompt. |
Is MCP an API?
No. It is a protocol for exposing tools, resources and prompts to AI clients; servers often wrap existing APIs.
Does MCP grant autonomy?
No. It provides controlled access. Autonomy comes from the agent design around it.
More in Agents & agentic AI
Agent anatomy: loop, planner, tools and memory
The minimal system behind an AI agent: a goal, a reasoning loop, tool access, state and a stop condition.
Agentic patterns: ReAct, plan-and-execute, reflection
Three reusable reasoning patterns and how to choose between them for real workloads.
Multi-agent orchestration patterns
When to split work across agents, how they hand off, and how to avoid coordination overhead.