Skip to main content
Glama
auth.ts474 B
export const getURL = () => { let url = process?.env?.NEXT_PUBLIC_SITE_URL ?? // Set this to your site URL in production env. process?.env?.NEXT_PUBLIC_VERCEL_URL ?? // Automatically set by Vercel. 'http://localhost:3000/' // Make sure to include `https://` when not localhost. url = url.startsWith('http') ? url : `https://${url}` // Make sure to include a trailing `/`. url = url.endsWith('/') ? url : `${url}/` return url }

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/sdairs/claudekeep'

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