Putting a Public MCP Server on Your Website, Safely

●1 ●22 ●67
calendar_today • schedule1 min read
— Originally published at built2winweb.com

The Model Context Protocol is the open standard assistants use when they call tools. Most people use it to connect an assistant to their own apps, but it works in the other direction too: a business site can run its own MCP server, letting any assistant check services, prices, hours and availability, or send a request, directly. A crawler sees whatever you published weeks ago; a tool call returns what's true now.

In this guide I suggest which tools a business site should expose (read-only lookups like services, hours and service area, plus perhaps one write tool for quote requests) and explain the transport. Since the March 2025 revision of the spec, remote servers use Streamable HTTP: a single endpoint that accepts JSON-RPC by POST and runs on ordinary hosting.

Two later additions matter for public servers. Tool annotations tell clients whether a tool is read-only, destructive, idempotent or reaches outside your system, so they know when to ask the user first. Output schemas let tools return typed, checkable data. For anything needing authorisation, the spec builds on OAuth and expects protected-resource metadata at a well-known path.

The security list is the part to follow closely: expose facts rather than systems, validate every argument, rate-limit write tools, never leak secrets in errors, treat submitted text as untrusted, validate the Origin header and log calls.

Key takeaways

  • A site's MCP server answers with current facts, not crawled ones
  • Remote servers use the Streamable HTTP transport
  • Annotate tools so clients know which are read-only
  • Validate input and rate-limit any write tool
  • Advertise the server through discovery files and registries

Related on BuiltToWinWeb: the 20-point MCP server security checklist

Read the full guide on BuiltToWinWeb: How to add an MCP server to your website

A summary by Jacob Campbell of an article first published on built2winweb.com on October 5, 2026.

Want more #security & #web-development deep dives?

Join 6,181+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

More Posts

AAIF Hits 10 Projects. Its CTO on What to Adopt Now and the Security Gaps Left Open

Tom Smithverified - Oct 23

MCP Is the USB-C of AI. So Why Are You Plugging Everything In?

Ken W. Algerverified - Jun 10

Stop Turning Every REST Endpoint into an MCP Tool: A Better Approach to AI Tool Design

zeekwrites - Nov 30

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10
chevron_left
3.5k Points • 90 Badges
Worldwide • built2winweb.com
35Posts
12Comments
56Connections
100% custom PHP code from scratch. One-time flat fee — no monthly fees, no plugin bloat. Lightning-f... Show more

Related Jobs

View all jobs →

Commenters (This Week)

7 comments
5 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!