BestReads MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BestReads MCP Serverrecommend me a book based on my preferences"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BestReads MCP Server 📚🤔
This is a remote MCP server, built on Cloudflare Workers, that provides personalized book recommendation.
This was built using Cloudflare's guide on deploying remote MCP servers. It uses the Agents SDK to build the MCP server, Durable Objects to persist the user's book preferences, Workers AI to generate book recommendations, and Cloudflare's OAuth Provider library to add GitHub as an authentication provider. The MCP server supports Server-Sent Events (/sse) and Streamable HTTP (/mcp) transport methods.
Get Started
To try it out, connect to https://bestreads.dinas.workers.dev/sse or https://bestreads.dinas.workers.dev/mcp, if your MCP client supports Streamable HTTP. Or, deploy it yourself using the Deploy to Cloudflare button + instructions below.
Available Tools
getProfile - View your reading history and preferences
addGenre - Add favorite book genres
addFavoriteAuthor - Add authors you enjoy
addBookRead - Track books you've read
addDislikedBook - Mark books you didn't enjoy
addDislikedAuthor - Authors to avoid in recommendations
clearPreferences - Reset all preferences
getBookRecommendations - Get AI-powered personalized book suggestions
Related MCP server: Book Recommendation MCP Server
Deploy the MCP server
Setup
Clone the repository
git clone <your-repo-url>
cd bestreads-mcp-server
npm installCreate a GitHub OAuth App
Once you create teh OAuth App, set the Authorization callback URL to https://your-worker-domain.workers.dev/callback
Note the ClientID and Client Secret. You will add those to your Wrangler file.
(Optional) Generate Cookie Encryption Key
Upgrade your
wrangler.tomlfile
[vars]
GITHUB_CLIENT_ID = "your_github_client_id"
GITHUB_CLIENT_SECRET = "your_github_client_secret"
COOKIE_ENCRYPTION_KEY = "your_32_byte_hex_key"
[[kv_namespaces]]
binding = "OAUTH_KV"
id = "your_kv_namespace_id"
[[durable_objects.bindings]]
name = "MCP_OBJECT"
class_name = "MyMCP"
[[durable_objects.bindings]]
name = "USER_BOOK_PREFERENCES"
class_name = "UserBookPreferences"Deploy to Cloudflare Workers
wrangler deploy
This server cannot be deployed
Maintenance
Related MCP Connectors
Search books, authors and series, get recommendations, and manage your own reading shelves.
- LeafleOAuthnet.nanosheep
Personalised book recommendations, filtered to what's on your public library's shelf right now.
- LeafOAuthapp.readwithleaf
AI assistant integration for Leaf — track books, log reading sessions, and manage your library.
Personal context and preferences for AI via OAuth-approved profile sections and taste data.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables users to manage and interact with a bookstore through natural language, supporting book searching, inventory checking, purchasing, and restocking operations. Provides seamless integration with AI assistants for complete bookstore management functionality.8-
- FlicenseNot gradedqualityDmaintenanceProvides personalized book recommendations through OpenRouter and ChatGPT based on user preferences for genres, book length, and topics of interest.-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to help users manage their reading experience by searching books, tracking reading progress, managing bookmarks, and generating personalized recommendations and summaries.-
- AlicenseNot gradedqualityDmaintenanceProvides curated nonfiction book recommendations and profiles using TF-IDF scoring with concept expansion, enabling users to get ranked book suggestions by describing a situation, topic, or question.10 npmMIT