UNPKG

@rockship/apollo-io-mcp

Version:

A powerful Model Context Protocol (MCP) server implementation for seamless Apollo.io API integration, enabling AI assistants to interact with Apollo.io data

22 lines 746 B
#!/usr/bin/env node import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; import dotenv from "dotenv"; import { parseArgs } from "node:util"; import { createMcpServer } from "../common/mcp-server.js"; // Load environment variables dotenv.config(); // Parse command line arguments const { values } = parseArgs({ options: { "api-key": { type: "string" }, }, }); // Initialize Apollo.io client const apiKey = values["api-key"] || process.env.APOLLO_IO_API_KEY; if (!apiKey) { throw new Error("APOLLO_IO_API_KEY environment variable is required"); } const transport = new StdioServerTransport(); const mcpServer = createMcpServer(apiKey); mcpServer.connect(transport); //# sourceMappingURL=index.js.map