KosmoKrator

data

Fauna MCP, CLI, and Lua Integration for AI Agents

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

7 functions 5 read 1 write API token auth

Fauna 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
fauna
route_slug
fauna
package
fauna
auth_strategy
api_token API token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Fauna MCP Client Matrix

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

Fauna CLI Matrix

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

Function Catalog

FunctionTypeParametersDescription
fauna.fauna_list_databases Read read 0 List all databases in the current Fauna context. Returns database names and their metadata including creation time and references.
fauna.fauna_get_database Read read 1 Get details of a specific Fauna database by name. Returns database metadata including name, reference, creation time, and configured options.
fauna.fauna_create_database Write write 3 Create a new Fauna database. Provide a database name and optional configuration. Requires a server or admin key. Returns the created database metadata.
fauna.fauna_query_fql action action 1 Execute a Fauna Query Language (FQL) expression. Provide the query as a JSON-encoded FQL expression. Supports all FQL operations including document reads, writes, indexes, and complex queries.
fauna.fauna_list_collections Read read 0 List all collections in the current Fauna database. Returns collection names and their metadata including references and creation time.
fauna.fauna_get_collection Read read 1 Get details of a specific Fauna collection by name. Returns collection metadata including name, reference, creation time, and configured options.
fauna.fauna_get_current_user Read read 0 Get the current authenticated Fauna key identity. Verifies the configured bearer token and returns the associated key identity information.