Skip to main content
Glama
route.ts596 B
import { blogSource } from "@/lib/source"; import { createSearchAPI } from "fumadocs-core/search/server"; export const revalidate = false; export const { staticGET: GET } = createSearchAPI("advanced", { indexes: [ ...blogSource .getPages() .filter((page) => !page.data.draft) // Filter out draft posts .map((page) => { return { title: page.data.title, description: page.data.description, url: page.url, id: page.url, structuredData: page.data.structuredData, tag: "blog", }; }), ], });

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/metacode0602/open-mcp'

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