What problem does it solve? Exposing your app's tools and data to AI agents like Claude Code, Cursor, or Claude Desktop requires a remote MCP server, and building one correctly on serverless infrastructure involves tricky protocol, authentication, and statelessness concerns. This Skill provides a complete, verified pattern for running a Model Context Protocol server as a single Netlify Function. ## Core Features & Use Cases - Serverless MCP endpoint: Implements the MCP SDK's WebStandardStreamableHTTPServerTransport inside a Netlify Function with stateless request/response handling, correct Accept-header behavior, and CORS support for browser-based clients. - Authentication patterns: Covers single shared bearer secrets with constant-time comparison and per-user API keys backed by Netlify Identity, including key hashing, revocation, and user resolution. - Safety and operations: Includes declarative rate limiting, tool permission guidance, presigned-URL file uploads to Netlify Blobs, and client connection instructions for Claude Code, Cursor, and Claude Desktop. - Use Case: Wrap a third-party API as MCP tools so Claude Code can query it, or add an /mcp endpoint to an existing Netlify site so agents can act on your app's data with per-user API keys. ## Quick Start Ask the agent to create a Netlify Function at /mcp that exposes a read-only tool using the MCP SDK with bearer token authentication, then connect it to Claude Code.