{"enrichment":{"faq":[{"a":"Building-mcp-server-on-cloudflare guides you through creating a Model Context Protocol server using TypeScript on Cloudflare Workers. Start by defining your tools with input schemas, implement handler functions, then wrap them in an MCP server instance. Use wrangler to configure your Worker, set environment variables for secrets, and deploy with a single command. The skill covers local testing via MCP Inspector before production deployment.","q":"How do I build an MCP server on Cloudflare Workers?"},{"a":"Building-mcp-server-on-cloudflare includes patterns for adding OAuth to your MCP server. Integrate an OAuth provider (like GitHub) by storing credentials in Cloudflare environment bindings, validating tokens in your server middleware, and returning authentication errors for invalid requests. The skill shows how to configure OAuth scopes, handle token refresh, and secure your MCP endpoint so only authorized clients can call your tools.","q":"How do I set up MCP with OAuth authentication on Cloudflare?"},{"a":"Building-mcp-server-on-cloudflare teaches tool definition by creating TypeScript objects with name, description, and inputSchema properties. Each tool maps to a handler function that processes client requests. Define input validation schemas using JSON Schema, implement error handling, and register tools with your MCP server instance. The skill demonstrates how clients like Claude Desktop discover and invoke your tools once deployed.","q":"What's the process to expose tools via the Model Context Protocol?"},{"a":"Building-mcp-server-on-cloudflare walks through deploying your MCP server to Cloudflare Workers using wrangler. Configure your wrangler.toml with service bindings and environment variables, test locally with MCP Inspector, then run `wrangler deploy`. Your server gets a public HTTPS endpoint that MCP clients connect to. The skill covers configuring CORS, handling concurrent requests, and monitoring your deployed server.","q":"How can I deploy an MCP remote server endpoint on Cloudflare?"},{"a":"Building-mcp-server-on-cloudflare shows how to configure MCP clients like Claude Desktop to connect to your Workers endpoint. Add your server URL to the client configuration file, specify authentication headers if using OAuth, and test the connection. The skill includes troubleshooting steps for connection failures, timeout issues, and verifying that your tools are discoverable by the client.","q":"How do I connect MCP clients to a Cloudflare-hosted endpoint?"},{"a":"Building-mcp-server-on-cloudflare demonstrates defining diverse tools\u2014from simple utilities to complex integrations. Each tool requires a name, description, and inputSchema defining parameters. Implement handlers that validate inputs, call external APIs or Cloudflare services, and return structured results. The skill covers error handling, logging, and best practices for tool design to ensure reliable client interactions.","q":"What tools and functions can I define in an MCP server?"}],"shadow_tags":["serverless-deployment","protocol-implementation","tool-exposure","oauth-integration","api-gateway","edge-computing","client-connection","production-ready"],"summary_rewrite":"This skill guides you through creating and deploying Model Context Protocol servers on Cloudflare Workers, complete with custom tools and optional OAuth authentication. Define tools using TypeScript, configure your server entry point, test locally with the MCP Inspector, then deploy to Workers in minutes. Includes patterns for input validation, environment bindings, and connecting clients like Claude Desktop."},"files":[{"bytes":6098,"path":"building-mcp-server-on-cloudflare/SKILL.md","sha256":"b03cd41736a399eb203263863f758bd07c6eaa6cea130642bdf9bff3dd2031b4","url":"https://skillfed.io/files/null-shot/cloudflare-skills/building-mcp-server-on-cloudflare/63ebaa0b/SKILL.md"}],"id":"null-shot/cloudflare-skills/building-mcp-server-on-cloudflare","links":{"html":"https://skillfed.io/null-shot/cloudflare-skills/building-mcp-server-on-cloudflare","md":"https://skillfed.io/null-shot/cloudflare-skills/building-mcp-server-on-cloudflare.md","repo":"https://github.com/null-shot/cloudflare-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":0,"language":"TypeScript","last_updated":"2026-01-18","license":"Apache-2.0","name":"building-mcp-server-on-cloudflare","publisher":"null-shot","stars":0},"relations":{"similar":[{"id":"Aradotso/mcp-skills/remote-mcp-server-with-auth"},{"id":"cloudflare/skills/agents-sdk"},{"id":"secondsky/claude-skills/cloudflare-workers-security"},{"id":"Aradotso/mcp-skills/mcp-quickstart-scaffolder"},{"id":"jezweb/claude-skills/tanstack-start"},{"id":"dmmulroy/cloudflare-skill/cloudflare"},{"id":"deepagent-ltd/deepagent-code/agents-sdk"},{"id":"FrancescoStabile/numasec/agents-sdk"},{"id":"shobcoder/shob/agents-sdk"},{"id":"JosiahSiegel/claude-plugin-marketplace/cloudflare-knowledge"}]},"slug":{"owner":"null-shot","repo":"cloudflare-skills","skill":"building-mcp-server-on-cloudflare"},"version":"63ebaa0b"}
