KosmoKrator

ai

Eden AI MCP Integration for LangChain

Connect Eden AI to LangChain 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 LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Eden AI MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "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 LangChain

LangChain 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