Skip to main content
Glama

MCP PDF Server

by xblanc33
index.ts583 B
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import { createServer } from "./server.js"; async function main() { const mcpServer = createServer(); const transport = new StdioServerTransport(); // Graceful shutdown const shutdown = async () => { try { await transport.close?.(); } catch {} process.exit(0); }; process.on("SIGINT", shutdown); process.on("SIGTERM", shutdown); await mcpServer.connect(transport); } main().catch((err) => { console.error("mcp-pdf server failed:", err); 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/xblanc33/md-2-pdf-mcp'

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