Skip to main content
Glama
Cognitive-Stack

Hermes Search MCP Server

index.ts689 B
#!/usr/bin/env node "use strict"; import { FastMCP } from "fastmcp"; import { tools } from "./services/tools"; import { Tool } from "./types/tools"; const server = new FastMCP({ name: "Hermes Search MCP", version: "1.0.0", }); // Register all tools tools.forEach((tool) => { (server.addTool as Tool)(tool); }); // Get transport type from environment variable or default to stdio const transportType = process.env.TRANSPORT_TYPE || "stdio"; if (transportType === "sse") { server.start({ transportType: "sse", sse: { endpoint: "/sse", port: parseInt(process.env.PORT || "8080", 10), }, }); } else { server.start({ transportType: "stdio", }); }

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/Cognitive-Stack/hermes-search-mcp'

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