MCP Server

embedding-search

io.github.lazymac2x/embedding-search
AI & Agents Search & Research Public & reachable MCP 2026-07-28

What this MCP does

Generates text embeddings, computes similarity, and performs semantic ranking of documents against queries.

compute_similarity
Compute cosine similarity between two texts. Returns score in [-1,1]. Useful for dedup and relatedness.
Input schema
{'type': 'object', 'required': ['text_a', 'text_b'], 'properties': {'model': {'type': 'string'}, 'text_a': {'type': 'string'}, 'text_b': {'type': 'string'}}}
generate_embeddings
Generate vector embeddings for one or more texts using Cloudflare Workers AI (bge-base-en-v1.5, 768-dim).
Input schema
{'type': 'object', 'required': ['text'], 'properties': {'text': {'oneOf': [{'type': 'string'}, {'type': 'array', 'items': {'type': 'string'}}], 'description': 'Text or array of texts to embed'}, 'model': {'type': 'string', 'description': 'CF AI model ID override'}}}
semantic_search
Rank a list of documents against a query using cosine similarity of bge embeddings. Returns top-k matches with scores.
Input schema
{'type': 'object', 'required': ['query', 'documents'], 'properties': {'model': {'type': 'string', 'description': 'CF AI model ID override'}, 'query': {'type': 'string', 'description': 'Search query'}, 'top_k': {'type': 'integer', 'description': 'Number of results (default 5)'}, 'documents': {'type': 'array', 'items': {'type': 'string'}, 'description': 'Candidate documents to rank'}}}
Added
compute_similarity
Sept. 17, 2026, 12:43 p.m.
Added
semantic_search
Sept. 17, 2026, 12:43 p.m.
Added
generate_embeddings
Sept. 17, 2026, 12:43 p.m.