Glean MCP server

Web search and scraping

A self-hosted RSS reader and personal knowledge management tool.

Your AI app calls the Glean MCP server, which does the web search and scraping work and sends the result back to the chat.

About Glean

Glean is a community MCP server from LeslieLeung, filed in our directory under web search and scraping. A self-hosted RSS reader and personal knowledge management tool.

At a glance

Publisher
LeslieLeung (community)
Runs
See the README for setup
Written in
Python
License
AGPL-3.0
GitHub stars
877

How to set up Glean

  1. Follow the install steps in the Glean README; it is written in Python, so have that toolchain ready.
  2. Check the Glean README for keys or settings; the registry lists none that Glean requires.
  3. Add Glean to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Glean tools to confirm the connection.
  5. Run one read-only task with Glean first, and keep your app asking before each tool call until the results look right.

Glean compared with similar servers

  • Fetch by zcaceres has fewer GitHub stars than Glean (835 against 877); both are community servers, and both run locally.
  • Master Fetch by dondai1234 has more GitHub stars than Glean (908 against 877); both are community servers, and both run locally.
  • Kagimcp by kagisearch has fewer GitHub stars than Glean (582 against 877); Kagimcp is official while Glean is a community server, and both run locally.

Before you connect Glean

  • Give Glean its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Glean tool call until you trust what it does with them.
  • Treat text that Glean fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Glean on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Glean

How marketing and sales teams put Glean to work, by company size. Pick the size closest to yours and start Glean on one use case.

Small business

  • A founder can use Glean to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Glean what competitors launched this month and get the pages, not just a summary.
  • Glean runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Glean to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Glean to research accounts from public pages and add one specific line to each first email.
  • Start Glean on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise research and competitive intel teams can schedule Glean to monitor many sources, with results stored and cited for review.
  • Large orgs can route Glean through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Glean is a community server, so have security review the code and pin a version before Glean touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Glean README

From LeslieLeung/glean on GitHub, shared under its AGPL-3.0 license. Images are left out; the original has them.

README.md

Glean 拾灵

English | 中文

[!IMPORTANT] Join our Discord to stay updated on the latest developments and get support.

This project is still in development and is not ready for production use.

A self-hosted RSS reader and personal knowledge management tool.

Glean (拾灵) helps information-heavy consumers efficiently manage their reading through intelligent RSS aggregation.

Features

Core Features
  • 📰 RSS Subscription - Subscribe and organize RSS/Atom feeds with OPML import/export
  • 📚 Smart Reading - Clean reading experience with content filtering
  • 🔖 Read Later - Save articles for later reading with auto-cleanup
  • 📁 Folders & Tags - Multi-level folders and tags for organization
  • ⭐ Bookmarks - Save articles from feeds or external URLs
  • 🔧 Background Sync - Automatic feed updates every 15 minutes
  • 🔒 Self-hosted - Full data ownership with Docker deployment
  • 🎨 Modern UI - Beautiful, responsive warm dark theme interface
  • 👨‍💼 Admin Dashboard - User management and system monitoring
  • 🔌 Browser Extension - Subscribe to feeds and bookmark pages in Chrome or Firefox. Build and install
Planned Features (WIP)
  • 🧠 Smart Recommendations - AI-powered preference learning and article scoring
  • ⚙️ Rule Engine - Automated processing with Jinja2-style conditions
  • 🤖 AI Features - Summary generation, auto-tagging, keyword extraction (BYOK)
  • 📄 Full Content Fetch - Fetch complete article content for RSS summaries
  • 📱 Mobile PWA - Progressive Web App for mobile devices

Quick Start

The default deployment stores vectors in PostgreSQL with the pgvector extension. No separate vector database is required.

# Download the default compose file
curl -fsSL https://raw.githubusercontent.com/LeslieLeung/glean/main/docker-compose.pgvector.yml -o docker-compose.yml

# Start Glean
docker compose up -d

# Access:
# - Web App: http://localhost
# - Admin Dashboard: http://localhost:3001 (default: admin/Admin123!)

Default Admin Account: An admin account is automatically created with:

  • Username: admin
  • Password: Admin123!
  • ⚠️ Change this password in production!
Optional: Milvus

Use this when the deployment should run a dedicated Milvus vector database:

# Download docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/LeslieLeung/glean/main/docker-compose.yml -o docker-compose.yml

# Start Glean
docker compose up -d

# Access:
# - Web App: http://localhost
# - Admin Dashboard: http://localhost:3001 (default: admin/Admin123!)
Customize Admin Account (Optional)

To use custom admin credentials instead of the defaults, create a .env file before starting:

# Set custom admin credentials in .env
cat > .env << EOF
ADMIN_USERNAME=admin
ADMIN_PASSWORD=YourSecurePassword123!
SECRET_KEY=$(openssl rand -base64 32)
EOF

# Start services
docker compose up -d

To disable auto-creation and create admin manually:

# Disable auto-creation in .env
echo "CREATE_ADMIN=false" >> .env

# Start services
docker compose up -d

# Create admin manually
docker exec -it glean-backend /app/scripts/create-admin-docker.sh

Configuration

For production, customize your deployment with environment variables. Download the example file:

curl -fsSL https://raw.githubusercontent.com/LeslieLeung/glean/main/.env.example -o .env

Important settings to change:

Variable Description Default
SECRET_KEY JWT signing key Must change in production!
POSTGRES_PASSWORD Database password glean (Change in production!)
ADMIN_PASSWORD Admin password Admin123! (Change!)
WEB_PORT Web interface port 80
ADMIN_PORT Admin dashboard port 3001
CREATE_ADMIN Auto-create admin true (set false to disable)

For all configuration options, see .env.example.

Configure article AI detection and custom content categories under Article Classification in the admin panel. Choose a System One model provider (Jev, Clef on Cloudflare Workers AI, Laya, or a custom System One-compatible server), configure its credentials, test the connection, and enable detection. Results appear on reader list cards.

Automatic article completion

The default Docker deployment uses Firecrawl Local to fill in public articles. Glean shows the RSS content while the original is loading, then caches the cleaned article and updates the reader. Opening an older entry also checks for a fuller copy. The bundled service fetches pages over HTTP with cloud fallback disabled. On failure, Glean uses its existing extractor and tries the optional Chromium renderer when configured.

For non-Compose installations, set GLEAN_FIRECRAWL_URL on the API and worker and GLEAN_FIRECRAWL_TOKEN on the worker if the service requires one. Set GLEAN_FIRECRAWL_URL= to disable Firecrawl fetching in Compose.

Per-subscription article fetch rules

Open Subscriptions → Edit → Article fetch rules. Enable Always fetch full article text to fetch the article page even when RSS includes a body. A CSS selector extracts the first matching element. Leave it blank to use Readability. Rules apply to newly imported articles, and Glean uses the default article content if custom extraction fails.

Cookie and custom header values are write-only in the API and stored in the Glean database. Set Request origin to the article site's scheme, host and port, such as https://example.com. Credentials only apply to article requests to that origin. Custom headers use one Name: Value pair per line.

For JavaScript-rendered articles, start the optional Chromium sidecar with the Playwright Chromium seccomp profile. Download the sidecar overlay and seccomp profile into your deployment directory (replace docker-compose.yml with docker-compose.pgvector.yml if running directly from a cloned repository with pgvector):

curl -fsSL https://raw.githubusercontent.com/LeslieLeung/glean/main/docker-compose.article-renderer.yml -o docker-compose.article-renderer.yml
curl -fsSL https://raw.githubusercontent.com/microsoft/playwright/v1.64.1/utils/docker/seccomp_profile.json -o chromium-seccomp.json
GLEAN_CHROMIUM_SECCOMP_PROFILE="$PWD/chromium-seccomp.json" \
  docker compose -f docker-compose.yml -f docker-compose.article-renderer.yml up -d

Then enable Render with a headless browser on the subscription. The worker falls back to HTTP if rendering is unavailable or fails.

Docker Images

Pre-built images are available on GitHub Container Registry:

  • ghcr.io/leslieleung/glean-backend:latest - API server & worker
  • ghcr.io/leslieleung/glean-web:latest - Web frontend
  • ghcr.io/leslieleung/glean-admin:latest - Admin dashboard
  • ghcr.io/leslieleung/glean-article-renderer:latest - Optional headless article renderer sidecar

Supported architectures: linux/amd64, linux/arm64

Testing Pre-release Versions

Want to test upcoming features? Use pre-release versions (alpha/beta/rc):

Method 1: Using environment variable (recommended)

# Set the IMAGE_TAG in .env file
echo "IMAGE_TAG=v0.3.0-alpha.1" >> .env

# Or export it directly
export IMAGE_TAG=v0.3.0-alpha.1

# Start with pre-release images
docker compose up -d

Method 2: Inline environment variable

IMAGE_TAG=v0.3.0-alpha.1 docker compose up -d

Note: Pre-release versions are for testing only. They won't trigger auto-updates for Electron apps and are not recommended for production use.

See available pre-release versions on the Releases page.

Deployment

The default deployment (docker-compose.pgvector.yml) includes:

  • Web App (port 80) - Main user interface
  • Admin Dashboard (port 3001) - User management and system monitoring
  • Backend API - FastAPI server
  • Worker - Background task processor (feed fetching, cleanup)
  • PostgreSQL - Database and vector store (pgvector)
  • Redis - Task queue

docker-compose.yml is the optional Milvus deployment. It adds etcd, MinIO, and Milvus beside the same core services.

For detailed deployment instructions and configuration, see DEPLOY.md.

Already running Milvus? Follow the pgvector migration guide to migrate with one script, including backup, restore, resumable execution, and rollback.

Tech Stack

Backend:

  • Python 3.14+ / FastAPI / SQLAlchemy 2.0
  • PostgreSQL / Redis / arq (task queue)

Frontend:

  • React 19 / TypeScript / Vite
  • Tailwind CSS / Zustand / TanStack Query

Development

To run Glean from source, follow the local setup instructions.

Roadmap

Phase Status Features
Phase 1: MVP ✅ Done User system, RSS subscription, reader, admin dashboard
Phase 2: Organization ✅ Done Bookmarks, folders, tags, read later
Phase 3: Preferences ✅ Done Embedding pipeline, preference learning, smart recommendations
Phase 4: Rules 📋 Planned Rule engine, Jinja2 conditions, automated actions
Phase 5: AI 📋 Planned AI summaries, auto-tagging, keyword extraction, BYOK support
Phase 6: Extensions 📋 Planned Chrome extension, PWA, web snapshots

Mobile reader sync

After applying the database migrations, create an API token in Settings → API Tokens for each reader. Use your Glean email as the username and the full token as the password. Fever requires a token created after upgrading.

Account type Server URL
Google Reader / FreshRSS (including NetNewsWire) https://rss.example.com/api/greader.php
Fever (including Reeder Classic, Read You, and FeedMe) https://rss.example.com/api/fever/

Readers can sync folders, subscriptions, articles, read status, and stars. Stars map to Glean bookmarks. Manage subscriptions and folders in Glean. The Smart folder contains a virtual feed of high-scoring recommendations whose read and starred status are shared with the original articles. See the Chinese setup guide for details.

Documentation

Contributing

Contributions are welcome! Please read our Development Guide first.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests and linting
  5. Submit a Pull Request

License

This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.

Questions about Glean

What is the Glean MCP server?

A self-hosted RSS reader and personal knowledge management tool. Glean is maintained by LeslieLeung on GitHub at LeslieLeung/glean, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Glean MCP server?

Glean doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (LeslieLeung/glean). Like most servers, Glean ends with a command or URL you paste into your AI app's MCP config.

Does Glean need an API key?

The registry lists no required keys for Glean. Check the Glean README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Glean an official MCP server?

No. Glean is a community server maintained by LeslieLeung. Community servers can be excellent; read the code and the open issues before you give Glean access to company data.

What license is Glean under?

Glean is released under the AGPL-3.0 license, according to its GitHub repository. The license covers the code of Glean; the service it connects to has its own terms.