Skip to main content
Glama

Linkd MCP Server

by automcp-app
server.ts846 B
#!/usr/bin/env node import { config } from "dotenv"; config(); import { logWithTimestamp } from "./utils.js"; import { createSSEServer } from "./transports/sse.js"; import { createStdioServer } from "./transports/stdio.js"; const SSE_PORT = process.env.SSE_PORT || 3001; // Start the server async function main() { // Check if SSE transport is requested via command line flag const useSSE = process.argv.includes("--sse"); if (useSSE) { await createSSEServer().then((app) => app.listen(SSE_PORT, () => { logWithTimestamp({ data: `linkd MCP Server running on http://localhost:${SSE_PORT}`, }); }) ); } else { await createStdioServer(); } } main().catch((error) => { logWithTimestamp({ level: "error", data: ["Fatal error in main():", error], }); process.exit(1); });

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/automcp-app/linkd-mcp'

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