Back to Home
dannwaneri icon

mcp-server-worker

Verified Safe

by dannwaneri

Overview

A production-ready Model Context Protocol (MCP) server providing HTTP-based semantic search and intelligent search with AI-powered synthesis context using Cloudflare Workers AI and Vectorize.

Installation

Run Command
wrangler deploy

Environment Variables

  • AI
  • VECTORIZE

Security Notes

The code acts as an HTTP adapter for the MCP protocol, directly handling 'tools/list' and 'tools/call' methods. User input for search 'query' is passed to Workers AI for embedding and then to Vectorize. The 'topK' parameter for search results is explicitly capped at 10, preventing excessive resource consumption. CORS is broadly enabled ('Access-Control-Allow-Origin: *'), which is common for public APIs but could be restricted further if needed. While the README suggests adding authentication as a production enhancement, the core worker logic itself does not implement it by default, meaning the API is publicly accessible post-deployment. No 'eval' or other obvious code injection vulnerabilities were found in the provided source.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassLow
Avg Tokens20
Stars0
Forks0
Last Update2025-12-05

Tags

Cloudflare WorkersMCPSemantic SearchWorkers AIVectorizeServerlessAIVector DatabaseHTTP APIRAG