Skip to main content
Glama
index.ts619 B
// Load environment variables from .env file import * as dotenv from 'dotenv'; dotenv.config(); import { setupServer } from '@server/index'; if (!process.env.WATERCRAWL_BASE_URL) { // show an error and exit console.error('WATERCRAWL_BASE_URL is not configured in the MCP'); process.exit(1); } if (process.env.WATERCRAWL_API_KEY) { console.warn('For SSE version, WATERCRAWL_API_KEY will be ignored.'); } const server = setupServer(); server.start({ transportType: 'sse', sse: { endpoint: (process.env.SSE_ENDPOINT as `/${string}`) || '/sse', port: Number(process.env.SSE_PORT) || 3000, }, });

Latest Blog Posts

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/watercrawl/watercrawl-mcp'

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