Skip to main content
Glama

Karakeep MCP server

by karakeep-app
rss.ts1.42 kB
import RSS from "rss"; import serverConfig from "@karakeep/shared/config"; import { BookmarkTypes, ZPublicBookmark, } from "@karakeep/shared/types/bookmarks"; import { getAssetUrl } from "@karakeep/shared/utils/assetUtils"; export function toRSS( params: { title: string; description?: string; feedUrl: string; siteUrl: string; }, bookmarks: ZPublicBookmark[], ) { const feed = new RSS({ title: params.title, feed_url: params.feedUrl, site_url: params.siteUrl, description: params.description, generator: "Karakeep", }); bookmarks .filter( (b) => b.content.type === BookmarkTypes.LINK || b.content.type === BookmarkTypes.ASSET, ) .forEach((bookmark) => { feed.item({ date: bookmark.createdAt, title: bookmark.title ?? "", url: bookmark.content.type === BookmarkTypes.LINK ? bookmark.content.url : bookmark.content.type === BookmarkTypes.ASSET ? `${serverConfig.publicUrl}${getAssetUrl(bookmark.content.assetId)}` : "", guid: bookmark.id, author: bookmark.content.type === BookmarkTypes.LINK ? (bookmark.content.author ?? undefined) : undefined, categories: bookmark.tags, description: bookmark.description ?? "", }); }); return feed.xml({ indent: true }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/karakeep-app/karakeep'

If you have feedback or need assistance with the MCP directory API, please join our Discord server