txt2mcp
by mattzcarey
Overview
Converts text files or remote URLs into Model Context Protocol (MCP) servers, providing a searchable interface for AI agents.
Installation
wrangler deployEnvironment Variables
- MCPServer
- BUCKET
- ASSETS
Security Notes
The server fetches content from user-provided URLs in `/api/remote` and the `MCPServer.alarm` function. This presents a Server-Side Request Forgery (SSRF) vulnerability, as an attacker could potentially direct the server to make requests to internal network resources or sensitive Cloudflare metadata endpoints if the Worker runtime's network isolation is not sufficiently restrictive or if the URLs are not validated against private IP ranges/internal domains. While Cloudflare Workers offer some sandboxing, the code itself does not implement explicit URL validation to prevent this type of exploit.
Similar Servers
tomcp
Converts any website into an MCP (Model-Config-Protocol) server for AI tools and enables AI chat with website content by converting HTML to clean Markdown.
creative-thinking
A Cloudflare Workers-based MCP server providing 28 advanced lateral thinking techniques, AI-powered idea enhancement, and deep path-dependent analysis for creative problem-solving.
remote-mcp-server-authless1
A remote Model Context Protocol (MCP) server that exposes unauthenticated calculator tools via Cloudflare Workers for AI agents.
remote-mcp-server-authless
This repository provides an example for deploying a remote Model Context Protocol (MCP) server on Cloudflare Workers, designed to host AI tools without requiring authentication.