KosmoKrator

ai

Perplexity AI MCP Integration for OpenAI Agents SDK

Connect Perplexity AI to OpenAI Agents SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

4 functions 4 read 0 write API key auth

Connect Perplexity AI to OpenAI Agents SDK

Attach KosmoKrator integration tools to OpenAI Agents SDK workflows through a local MCP gateway.

Start the KosmoKrator MCP gateway locally and point the OpenAI Agents SDK MCP tool at that process or wrapper. The gateway is local, scoped to this integration, and starts with --write=deny so OpenAI Agents can inspect read-capable tools without receiving write access by default.

Perplexity AI MCP Config for OpenAI Agents SDK

Use headless JSON commands for CI-style execution and MCP for agent tool discovery.

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=perplexity --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Perplexity 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.

Perplexity AI Tools Visible to OpenAI Agents

OpenAI Agents sees stable MCP tool names generated from the Perplexity AI integration catalog.

MCP toolSource functionTypeDescription
integration__perplexity__perplexity_chat perplexity.perplexity_chat Read Send messages to Perplexity AI for a chat completion response. Supports multi-turn conversations with message history. Returns the assistant response with optional citations and search results.
integration__perplexity__perplexity_ask perplexity.perplexity_ask Read Ask Perplexity AI a question and get a concise answer with cited sources. Best for factual queries, research, and knowledge questions.
integration__perplexity__perplexity_list_models perplexity.perplexity_list_models Read List all available Perplexity AI models. Returns model IDs and their capabilities for use in chat and ask tools.
integration__perplexity__perplexity_get_current_user perplexity.perplexity_get_current_user Read Get information about the currently authenticated Perplexity API user, including account details and usage.

Related Perplexity AI Pages