Skip to main content
Glama
zk-armor
by zk-armor
index.ts968 B
#!/usr/bin/env node import "dotenv/config"; import { createServer } from "./server"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; async function main() { // Retrieve the Jina AI API key from environment variables. const apiKey = process.env.JINA_API_KEY; if (!apiKey) { console.error("JINA_API_KEY environment variable is not set."); process.exit(1); } // Create the MCP server instance, which will have all tools registered. const server = createServer(apiKey); // Create a transport that uses stdin/stdout for communication. const transport = new StdioServerTransport(); // Connect the server to the transport and start listening. try { await server.connect(transport); console.log("Jina AI MCP Server connected via stdio."); } catch (error) { console.error("Failed to connect the server:", error); process.exit(1); } } main();

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/zk-armor/mcp-jina-ai'

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