ZeroEntropy Zerank MCP Server
A Model Context Protocol (MCP) server for document reranking using the ZeroEntropy Zerank API, now implemented in Node.js.
Features
Document reranking using the ZeroEntropy Zerank API
Input validation with Zod schemas
Support for both standalone Node.js server and Cloudflare Workers deployment
MCP protocol compliance for integration with AI assistants
Related MCP server: RAG Documentation MCP Server
Installation
Usage
Standalone Node.js Server
Run the MCP server using stdio transport:
Or for development with auto-reload:
Cloudflare Workers Deployment
Install Wrangler CLI:
Login to Cloudflare:
Deploy the worker:
API
The server provides one tool:
get_reranking
Reranks a list of documents based on relevance to a query.
Parameters:
query(string): The search query (1-10000 characters)documents(array): Array of documents to rerank (1-1000 items)api_key(string): ZeroEntropy API key
Returns:
results(array): Array of reranked results withindexandrelevance_score
Example:
Environment
Node.js 18.0.0 or higher
ZeroEntropy API access
License
MIT