A Site MCP Server: Making Your Site Callable

A Site MCP Server: Making Your Site Callable

Expose search, retrieval, and lookups as a few well-described MCP tools over APIs you already run. Read-first scope, transport and auth realities, and honest adoption sizing.

A site MCP server turns the content your site already publishes into a small set of tools an agent can call — search this catalog, fetch this document, look up this record — over the Model Context Protocol instead of through scraping. The defensible version is read-first, thin, and honest: a handful of well-described tools over the search index and content APIs you already run, deployed as a remote endpoint behind your normal edge controls, with tool output treated as untrusted content. This guide covers what to expose, how thin the server should be, the transport and auth realities as of November 2026, the security basics, and how to size the investment against adoption that is still early.

From content to capabilities

The legibility work in an agent-ready site — semantic HTML, markdown parity, structured data, feeds — lets an agent read what you published. A capability endpoint adds a different kind of access: the agent can ask a precise question and get a precise answer. Instead of fetching ten product pages and inferring which one fits, it calls a lookup tool with typed parameters and receives a bounded, attributed result. Reading becomes asking.

The Model Context Protocol is where that asking has converged. MCP is an open protocol for integrating LLM applications with external data sources and tools, including tool calling between agent hosts and services; it was originated by Anthropic and is now supported across the major agent runtimes and developer tools (as of November 2026, per the MCP documentation and runtime vendors' own docs). For a site, the practical consequence is economy: one protocol surface instead of a separate integration for every agent that might want to call you. A site MCP server is simply the site's tool surface, described in a format agents already understand.

Three boundaries keep this article precise. Partner and system integration APIs — REST semantics, versioning, pagination, partner credentials — belong to the API-design literature; MCP is a different protocol family serving a different caller, and it does not replace your integration API. Enterprise-internal agent platforms and their governance are decision-maker territory covered elsewhere. And commerce actions — carts, checkout, payment, order tools — are excluded from this topic entirely; the agentic-commerce literature owns them.

That leaves one question for this guide: which capabilities, in what shape, behind what controls.

Choosing what to expose

Read first. Search, content retrieval, and structured lookups are the right first tools. They are low risk, because nothing changes state when they are called, and high value, because they answer the questions agents actually arrive with. State-changing actions — form submissions, bookings, account changes — come later if they come at all, and each one needs explicit authentication, confirmation semantics, and an owner who can explain what happens when the agent gets it wrong.

Tool design is interface design. A short list of tools with clear names, typed parameters, and honest descriptions is easier for an agent to use well than a sprawling toolbox. The description is not marketing copy; it is documentation the model actually reads when deciding whether and how to call the tool. A vague description produces vague calls, and an over-broad tool ("query anything") produces arguments you cannot validate. As a starting point rather than a measured rule, three to five tools that each do one thing are easier for the agent to choose between and easier for you to test.

Lean on what exists. A site MCP server should be a thin adapter, not a parallel backend. If the site already has a search feature, that index is the natural first tool — the search literature owns how the index is built and tuned, and the MCP server simply exposes it. Document retrieval wraps the content API your templates already call. The adapter's job is translation and policy, not business logic.

Discipline the result shape. Results should be structured, bounded, and source-attributed: a title, a canonical URL, a short excerpt, the fields that answer the question, and a hard cap on how many items come back. An agent that receives a page of raw HTML from a tool call has gained nothing over scraping, and an unbounded result can blow past the caller's context budget.

A minimal tool definition shows the shape. Note how much of it is description and constraint:

json
{
  "name": "search_articles",
  "description": "Search published articles on this site. Returns up to 10 results with title, canonical URL, publication date, and a short excerpt. Use for topic questions; use get_article to read one in full.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "query": { "type": "string", "maxLength": 200 },
      "limit": { "type": "integer", "minimum": 1, "maximum": 10, "default": 5 }
    },
    "required": ["query"]
  }
}

Transport, auth, and placement

Transport. For a site-facing server, the deployment shape is a remote MCP server over Streamable HTTP. In the current specification revision (2026-07-28), each message is an HTTP POST to a single MCP endpoint, and replies arrive either as a JSON object or as a request-scoped stream (MCP transports, accessed November 2026). That revision also moved the protocol toward stateless, self-contained requests, with compatibility rules for clients built against earlier session-based revisions. The lesson is not the detail; it is that the spec and the SDKs still move. Pin the protocol revision you implement, keep the SDK behind your own adapter interface, and treat upgrades as maintained work. Infrastructure providers document this remote shape directly — Cloudflare's remote MCP documentation is one market example (accessed November 2026).

Auth, honestly. Authorization is optional in the protocol. Anonymous, read-only tools over public content are legitimate — the same content is on your public pages. Anything user-scoped, quota-sensitive, or state-changing needs real credentials. When HTTP-based MCP servers do protect resources, the current spec says they should conform to its authorization rules. Those rules are based on the OAuth 2.1 IETF draft (still an Internet-Draft, not an RFC, as of November 2026) and other established specifications, implementing a selected subset of their features, and they require MCP servers to implement OAuth 2.0 Protected Resource Metadata (RFC 9728) so clients can discover the authorization server (MCP authorization, accessed November 2026). Auth has also changed between revisions: in the same revision, Dynamic Client Registration is marked deprecated in favor of Client ID Metadata Documents. So write down what you implement, with the spec revision and date, and keep the auth layer swappable.

Placement. Put the endpoint where the rest of the site already lives: the same origin under a dedicated path, or a dedicated subdomain. Either way it should be discoverable, TLS-terminated, and behind the same edge controls as your pages. The identification and verification layers should apply to MCP callers as they do to page fetchers — a signed agent calling a tool may be the same operator that fetched your article a moment earlier, and it should be logged the same way.

Rate limits. Per-caller quotas and request-cost limits belong here as engineering hygiene: they protect the backend from a misbehaving loop. Deciding which agents deserve access at all is a policy question for whoever owns the business decision, not something to encode silently in the adapter.

ConcernRead-only public toolsUser-scoped or state-changing tools
AuthenticationOptional; anonymous is legitimateRequired as a design choice (the spec makes authorization optional); over HTTP, use the spec's OAuth-based flow
Rate limitingPer-caller and per-tool capsPer-user caps plus confirmation semantics
LoggingCaller identity where available, tool, arguments, latencySame, plus user identity and outcome
Change riskLow; wraps existing read APIsHigh; needs an owner and rollback story

Security basics and honest adoption

The standard hygiene applies without exception. Validate every parameter against its schema and reject anything outside it. Give the adapter least-privilege backend credentials — a read-only search key, not the admin token. Keep secrets, internal hostnames, and staging URLs out of tool descriptions and results. Log every call with tool name, arguments, latency, and caller identity where the access layer provides it; those logs are also your adoption evidence.

The protocol-specific risk is prompt injection. Tool results can flow into a model's context, and the model may treat text in them as instructions. If a tool returns user-generated content — reviews, comments, forum posts — or content syndicated from third parties, that content can carry adversarial text aimed at whatever agent reads it. Treat tool output as untrusted content: return it as clearly delimited data with source attribution, strip markup that has no business in a result, and prefer structured fields over free text where the question allows. The MCP specification itself says tool descriptions from untrusted servers should be treated as untrusted, and the OWASP Top 10 for LLM Applications 2026 lists prompt injection first; the security literature owns the depth.

Then the adoption honesty. General-purpose consumer agents discovering and calling arbitrary sites' MCP servers is still early (as of November 2026). Callers today include developer tools, custom integrations built by partners or by your own team, and packaged surfaces that make a site's content callable on its behalf. That does not make a site MCP server pointless — it makes it something to size correctly. Build it as a reversible thin adapter over APIs you already maintain, with an owner and a test, not as a platform bet with its own backlog.

Watch for evidence that shifts the calculation: agent traffic in your logs probing for MCP endpoints, a partner asking for tool access instead of a bespoke API, or a packaged surface making sites in your vertical callable by default. Each of those is checkable against your own data, and each is a better trigger than a protocol announcement. This topic's limits treatment owns the full invest-or-wait frame; the point here is narrower. If you build it, build it read-first and thin, and it stays cheap to keep or to retire.

Project Inquiry