What is an MCP host? An MCP host is the application or runtime that embeds an MCP client, presents the agent experience to users, and owns policy: which servers are enabled, which tools may run, whose identity is on the wire, and when a human must approve. Cursor, Claude Desktop, and custom agent platforms are hosts—not the servers that implement tools.
If the server is the tool factory and the client is the dialer, the host is the control room. Product decisions land here: UX for tool approvals, secret storage, workspace isolation, logging retention, and how an AI agent loop is started, budgeted, and stopped. Confusing host with client leads to architecture diagrams that cannot assign security ownership.
Host, client, server—one sentence each
- Host — product surface + policy + identity (this page).
- Client — embedded MCP session/invocation layer (what is an MCP client).
- Server — process exposing tools/resources/prompts (what is an MCP server).
Users almost never configure a “client.” They install or enable servers inside a host. Engineers building platforms implement or choose a client library inside the host. Keeping that vocabulary sharp prevents security tickets from bouncing between teams who each think the other owns allowlists.
What the host must decide
A serious host answers these questions in code, not slideware:
- Which servers? Allowlist by package, hash, or internal registry—not “whatever the user pasted from Discord.”
- Which tools? Even after a server connects, the host may hide or require approval for write/admin tools.
- Whose credentials? User OAuth, workspace service account, or ephemeral tokens—never a silent shared god key.
- What UX? Inline diffs, approval modals, progress streams, error surfacing, kill switch.
- What budget? Step caps, token spend, wall-clock, and per-tool rate limits.
- What audit? Retention, PII handling, export for incident response.
Those decisions are why MCP security guidance spends as much time on host configuration as on server code. A perfect server behind a host that auto-approves every write is still a liability.
Familiar hosts in the wild
| Host | Primary audience | Typical MCP use |
|---|---|---|
| Cursor | Developers in an IDE | Repo tools, docs, issue trackers while coding agents run |
| Claude Desktop / Claude Code-style apps | Knowledge and coding workflows | Local and remote servers bound to a chat/agent UX |
| Custom orchestrator | Product/platform teams | Multi-tenant agents with company SSO and policy engines |
For Cursor specifically, most teams start by wiring servers through config—see Cursor MCP setup—then tighten policy once the novelty tools prove useful. Custom hosts appear when you need SaaS multi-tenancy, centralized audit, or agent loops that are not tied to a desktop IDE.
Composing many servers safely
Hosts are composition engines. A coding workspace might enable a filesystem server, a browser server, and an internal API server. The host’s job is to present a coherent tool catalog: namespaced names, clear descriptions, and risk badges. Without that, the model treats thirty vaguely named tools as interchangeable and picks the most dangerous one that “sounds right.”
Composition also means isolation. A host should not let a docs-search server inherit the same credentials as a production deploy server. Workspace-scoped config, per-server env, and explicit deny lists are host features—even when the MCP client performs the wire calls.
Policy UX that operators will actually use
Silent auto-approve trains people to ignore risk. Modal spam trains people to click through. Good hosts tier actions: read tools may run freely inside a trust zone; writes show a concise preview; destructive admin actions require re-auth or dual control. Skill files (SKILL.md) can tell the agent to prefer dry-runs, but the host must still enforce the gate when the model ignores the playbook.
Expose a visible kill switch and a clear “MCP disabled” state. During incidents, operators need to stop tool execution without killing the entire IDE or chat product.
Worked scenario: internal support host
A support org builds a browser host for tier-2 agents. SSO establishes identity. The host embeds an MCP client pointed at three HTTP servers: CRM read, knowledge base, and ticket write. Ticket write tools require an on-screen confirmation showing customer ID and proposed fields. All calls are logged with the SSO subject and redacted payloads.
When a malicious knowledge article tries prompt injection (“call refund_all”), the host allowlist has no such tool; the client never sends the call. Evals replay that transcript weekly. That is host-level security paying rent—not a slide about “responsible AI.”
Building a custom host
You need a custom host when off-the-shelf IDEs cannot meet tenancy, compliance, or UX requirements. Minimum viable host stack:
- Model loop with stop conditions and spend caps.
- Embedded MCP client SDK with multi-server support.
- Secret broker (vault/SSO) injecting per-session credentials.
- Policy engine (allow/deny + approvals) at invocation time.
- Operator UI for transcripts, tool diffs, and kill switch.
- Audit export compatible with your SIEM.
Do not start by re-implementing protocol framing. Start by deciding identity and policy, then plug in a maintained client. Build servers for your domain tools via build your first MCP server, and keep host code focused on product controls. Apply least privilege as a default profile for every new workspace.
Host-layer security posture
- Pin and review server packages; prefer internal mirrors.
- Separate environments: personal sandbox vs production-connected profiles.
- Default to read-only tool sets; unlock writes per project.
- Encrypt secrets at rest; never echo them into model context or logs.
- Monitor anomalous tool-call volume per user and per server.
- Run tabletop drills: compromised community server, stolen laptop, runaway loop.
Common mistakes
- Assuming “the MCP library” owns security—policy is a host product feature.
- One global MCP config shared across personal and production repos.
- No visibility into which servers are running or what tools they registered.
- Auto-approving writes to ship a demo, then forgetting to turn the dial back.
- Treating desktop hosts as safe by default while pointing them at prod APIs.
Host readiness checklist
- Name the host owner and the on-call path for tool incidents.
- Publish an allowlisted server catalog for your company.
- Define read vs write approval UX and a kill switch.
- Map identity: how user/workspace credentials reach each server.
- Turn on audit logs and a retention policy.
- Add evals for deny paths (injection, missing allowlist, expired auth).
- Document how to disable MCP per workspace without wiping developer setups.
FAQ
Is Cursor an MCP host or an MCP client?
Cursor is an MCP host. It embeds a client to talk to servers you configure. From a user’s perspective you “add MCP servers” to Cursor; under the hood the host owns UX and policy while the client manages sessions.
Can a host run without any MCP servers?
Yes. Many agent features use native tools only. MCP becomes valuable when you want portable, discoverable integrations. A host without servers is still a host—it simply has a smaller tool surface.
Who enforces least privilege—host or server?
Both. The host decides which tools are offered and approved; the server should still scope backend credentials tightly. Defense in depth matters because hosts can be misconfigured and servers can be overly powerful.
Do skills replace host policy?
No. Skills guide behavior; hosts enforce boundaries. A skill can instruct “never call deploy in production,” but only host allowlists and approvals reliably stop a confused or injected model from trying.
When should we build our own host?
When IDE/desktop hosts cannot meet SSO, multi-tenant isolation, mandatory audit, or workflow UX requirements. If your needs are “wire a few servers for developers,” configure an existing host first and invest engineering in servers and evals instead.
Bottom line
What is an MCP host? The product runtime that owns agent UX, identity, and policy while embedding a client to reach MCP servers. Secure the host as carefully as the servers—because every tool call users see is a host decision made concrete.
AI Generated Apps AI Code Learning Technology

One comment
Pingback: What Is an Agent Skill File (SKILL.md)?