KosmoKrator

ai

Eden AI MCP Integration for LangGraph

Connect Eden AI to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 4 read 2 write API key auth

Connect Eden AI to LangGraph

Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.

Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with --write=deny so LangGraph can inspect read-capable tools without receiving write access by default.

Eden AI MCP Config for LangGraph

Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.

{
  "mcpServers": {
    "kosmokrator-eden-ai": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=eden-ai",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=eden-ai --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Eden AI instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Eden AI Tools Visible to LangGraph

LangGraph sees stable MCP tool names generated from the Eden AI integration catalog.

MCP toolSource functionTypeDescription
integration__eden_ai__edenai_generate_text eden-ai.edenai_generate_text Write Generate text using AI models via Eden AI. Supports providers like OpenAI (GPT-4), Anthropic (Claude), Google (Gemini), Mistral, Cohere, and more. You can send a single prompt or a conversation history.
integration__eden_ai__edenai_analyze_image eden-ai.edenai_analyze_image Read Analyze images using AI models via Eden AI. Supports object detection, explicit content detection, scene description, and more. Provide an image as a URL or base64-encoded string.
integration__eden_ai__edenai_translate_text eden-ai.edenai_translate_text Write Translate text between languages using AI models via Eden AI. Supports providers like Google Translate, DeepL, Amazon Translate, Microsoft Translator, and more. Detects the source language automatically if not specified.
integration__eden_ai__edenai_transcribe_audio eden-ai.edenai_transcribe_audio Read Transcribe audio or video to text using AI models via Eden AI. Supports providers like OpenAI (Whisper), Google Speech-to-Text, Amazon Transcribe, Microsoft Azure, and more. Provide audio as a URL or base64-encoded string.
integration__eden_ai__edenai_ocr eden-ai.edenai_ocr Read Extract text from images and documents using OCR via Eden AI. Supports providers like Google Cloud Vision, Amazon Textract, Microsoft Azure, and more. This is an async operation — the response may contain a public_job_id for tracking. Provide the document as a URL or base64-encoded string.
integration__eden_ai__edenai_get_current_user eden-ai.edenai_get_current_user Read Get the current Eden AI user's account information, including email, plan, and usage details. Useful for verifying API connectivity and checking account status.

Related Eden AI Pages