KosmoKrator

ai

Perplexity AI MCP, CLI, and Lua Integration for AI Agents

Perplexity AI integration docs for AI agents: MCP gateway setup, Perplexity AI CLI commands, Lua API reference, credentials, and function schemas.

4 functions 4 read 0 write API key auth

Perplexity AI for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
perplexity
route_slug
perplexity
package
perplexity
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Perplexity AI MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Perplexity AI.

Perplexity AI CLI Matrix

Use these pages for direct Perplexity AI CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
perplexity.perplexity_chat Read read 8 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.
perplexity.perplexity_ask Read read 8 Ask Perplexity AI a question and get a concise answer with cited sources. Best for factual queries, research, and knowledge questions.
perplexity.perplexity_list_models Read read 0 List all available Perplexity AI models. Returns model IDs and their capabilities for use in chat and ask tools.
perplexity.perplexity_get_current_user Read read 0 Get information about the currently authenticated Perplexity API user, including account details and usage.