Skip to content

MCP Integration

Available since Glean v0.2.5

The Model Context Protocol (MCP) integration enables Claude Desktop and other AI assistants to search and interact with your RSS subscriptions, allowing you to ask questions about your reading materials and get AI-powered insights.

  1. Go to Settings in your Glean account
  2. Navigate to API Tokens
  3. Click Create New Token
  4. Enter a name (e.g., “Claude Desktop”)
  5. Optionally set an expiration date
  6. Click Create and copy the token immediately

Example token format:

glean_abc123def456ghi789jkl012mno345

Locate your Claude Desktop configuration file:

PlatformPath
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Linux~/.config/Claude/claude_desktop_config.json

Add the Glean MCP server to your config:

{
"mcpServers": {
"glean": {
"url": "http://your-glean-server:8000/mcp",
"transport": {
"type": "streamable-http",
"headers": {
"Authorization": "Bearer glean_abc123def456ghi789jkl012mno345"
}
}
}
}
}

Replace:

  • your-glean-server with your actual server address
  • The token with your API token from Step 1
  1. Restart Claude Desktop
  2. Verify the integration by asking:
    Can you search my RSS feeds for articles about AI?

If configured correctly, Claude will search your Glean subscriptions and return results.

Claude can help you with:

Ask Claude to find articles by keywords:

  • “Search my feeds for Python tutorials from last month”
  • “Find articles about machine learning”
  • “What did I read about climate change?”

Get articles from specific time periods:

  • “Show me unread articles from the past week”
  • “What was published in my feeds yesterday?”
  • “Articles from January 2025”

Read complete articles through Claude:

  • “Show me the full content of that article about LLMs”
  • “Can you summarize the article about optimization?”

Understand your reading habits:

  • “What RSS feeds do I subscribe to?”
  • “Which feeds have the most unread articles?”
  • “Show me my tech-related subscriptions”
"Search my RSS feeds for recent articles about quantum computing
and summarize the key developments"

Claude will search your feeds, retrieve relevant articles, and provide an AI-generated summary.

"What topics have my feeds been covering this week?"

Claude analyzes your recent articles and identifies trending themes.

"Which unread articles in my feeds are most relevant to web development?"

Claude searches and ranks articles based on relevance.

"Find articles that discuss both AI and privacy"

Claude performs advanced searches across all your subscriptions.

Go to SettingsAPI Tokens to see:

  • Token name
  • First 16 characters (e.g., glean_abc123def456...)
  • Creation date
  • Last used timestamp
  • Expiration date (if set)
  1. Use descriptive names to track token usage
  2. Create separate tokens for different clients
  3. Set expiration dates for temporary access
  4. Revoke immediately if a token is compromised
  5. Monitor last used timestamps regularly
  1. Go to SettingsAPI Tokens
  2. Find the token to revoke
  3. Click Delete or Revoke
  4. Confirm the action

Check server status:

Terminal window
curl http://your-glean-server:8000/api/health

Verify MCP endpoint:

Terminal window
curl http://your-glean-server:8000/mcp \
-H "Authorization: Bearer glean_your_token_here"

Solutions:

  • Verify Glean server is running
  • Check firewall rules
  • Ensure correct server URL in config
  • Restart Claude Desktop after config changes

Solutions:

  • Verify token format (should start with glean_)
  • Check if token has expired
  • Confirm token hasn’t been revoked
  • Create a new token if needed

Solutions:

  • Verify you have active subscriptions
  • Try broader search terms
  • Check if feeds are updating (look at last sync time)
  • Ensure date ranges include published articles

Solutions:

  • Reduce result limits in queries
  • Narrow date ranges (max: 365 days)
  • Search specific feeds instead of all subscriptions
  • Check server resources (CPU, memory)

For reverse proxy or custom ports:

{
"mcpServers": {
"glean": {
"url": "https://glean.example.com/mcp",
"transport": {
"type": "streamable-http",
"headers": {
"Authorization": "Bearer glean_your_token_here"
}
}
}
}
}

Set expiration when creating tokens:

  • 30 days: For testing
  • 90 days: For regular use
  • 365 days: For long-term access
  • No expiration: Only if absolutely necessary
FeatureDescription
bcrypt HashingTokens stored as secure hashes, never plaintext
Prefix DisplayOnly first 16 chars shown in UI
User IsolationTokens only access owner’s data
RevocationInstant token invalidation
Activity TrackingLast used timestamp for monitoring
  • Use HTTPS in production (configure reverse proxy)
  • Keep Glean server behind firewall
  • Treat tokens like passwords - never share
  • Regularly audit active tokens
  • URL: http://your-glean-server:8000/mcp
  • Transport: Streamable HTTP (MCP protocol)
  • Authentication: Bearer token (API Token)
EndpointMethodDescription
/api/tokensGETList all tokens
/api/tokensPOSTCreate new token
/api/tokens/{id}DELETERevoke token