web2mcp is a gateway project that turns websites or REST APIs into MCP tools. It is deployed as a tiny Cloudflare Worker with zero runtime dependencies. Its core idea is "configuration rather than code": each connector is an ordinary object describing the base URL, paths, query parameters, and parameters, and web2mcp generates type-checked MCP tools from it for AI agents that support Model Context Protocol, such as Claude, ChatGPT, and Cursor.
Main capabilities include: configuration-driven connectors with no need to learn an SDK; zero runtime dependencies, about 800 lines of readable JavaScript that are easy to audit; token-friendly output that trims large JSON responses via pick and fields; free hosting on the Cloudflare Workers free plan with one-click deployment; secure by default, with requests locked to each connector's host, parameter type checking, secrets kept server-side, and optional Bearer authentication; support for converting any OpenAPI 3 spec into a connector with one command; built-in connectors that require no API Key.
Usage: you can first list tools at the public demo address using the official MCP Inspector (CLI mode) or curl, or run npx @modelcontextprotocol/inspector, select Streamable HTTP, and paste the URL. To deploy, click Deploy to Cloudflare; Cloudflare will copy the repository to the user's GitHub account and require setting AUTH_TOKEN (any long random string). After about a minute, the service goes live at https://web2mcp.<your-subdomain>.workers.dev/mcp, and it will be redeployed on every push. For local development, use wrangler dev to serve /mcp; when .dev.vars has not been created, there is no authentication. You can also run it locally via stdio with npx -y github:charleswei118/web2mcp, or build and run it with Docker. For client integration, Cursor uses ~/.cursor/mcp.json, VS Code uses .vscode/mcp.json, and clients that only support stdio, such as Claude Desktop and Windsurf, can bridge through mcp-remote; Claude.ai, ChatGPT connectors, the OpenAI Responses API, and Cloudflare AI Playground can paste the URL directly.
When writing a connector, create connectors/myapi.js and add it to connectors/index.js; you can also add connectors without code via the CONNECTORS_JSON secret as a JSON array, and use ENABLED_CONNECTORS to expose only some connectors. For large APIs, catalog mode exposes only two tools: search_api (find operations by keyword and return names and parameter schemas) and call_api (execute an operation by name); tested against the full GitHub REST OpenAPI specification (GET operations only), 665 endpoints were reduced from about 147,000 tokens of tool definitions to about 300 tokens. You can enable it per request via /mcp?mode=catalog, or enable it for the entire deployment with TOOL_MODE="catalog". Supported MCP methods include initialize, ping, tools/list, tools/call, as well as empty resources/list and prompts/list; protocol versions are 2025-06-18, 2025-03-26, and 2024-11-05.
Use cases: you want an agent to immediately use a public REST API without writing an MCP server; the API has many endpoints and the tool definitionsconsume a large amount of context; you need free, always-on, serverless hosting; you want to run locally without a cloud account. Limitations: not suitable for scenarios that require browser automation, scraping after login, or performing OAuth on behalf of end users. The public demo runs on the Workers free plan, is rate-limited, has reader_read disabled, and bilibili_* is unavailable (Bilibili blocks Cloudflare IPs); github_* tools often trigger GitHub anonymous rate limits (HTTP 403), so for actual use you should deploy it yourself or run it locally. The roadmap mentions HTML scraping connectors, per-tool rate limiting and KV caching, OAuth, a connector registry, A2A chat rooms, and other items that are still planned. When using it, you should connect only to APIs and sites you are permitted to use, comply with each service's terms, robots rules, and rate limits, and keep credentials in Worker secrets.