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
mymlh-mcp-server
Provides a Model Context Protocol server to securely access MyMLH user data via OAuth authentication, enabling AI assistants to interact with the MyMLH API.
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-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.
stock-screening-server
A Cloudflare Workers server for stock screening using SBI証券 CSV data, integrated with ChatGPT for natural language queries.