data
Convex MCP, CLI, and Lua Integration for AI Agents
Convex integration docs for AI agents: MCP gateway setup, Convex CLI commands, Lua API reference, credentials, and function schemas.
7 functions 4 read 3 write Bearer token auth
Convex 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
convex- route_slug
convex- package
convex- auth_strategy
bearer_tokenBearer token- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Convex CLIHeadless setup and direct function calls. Convex MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Convex MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Convex.
Claude Code Convex MCP setup for Claude Code. Cursor Convex MCP setup for Cursor. Codex Convex MCP setup for Codex. OpenAI Agents Convex MCP setup for OpenAI Agents SDK. Claude Agent SDK Convex MCP setup for Claude Agent SDK. Vercel AI SDK Convex MCP setup for Vercel AI SDK. LangChain Convex MCP setup for LangChain. LangGraph Convex MCP setup for LangGraph. CrewAI Convex MCP setup for CrewAI. MCP clients Convex MCP setup for Generic MCP Clients.
Convex CLI Matrix
Use these pages for direct Convex CLI workflows in scripts, CI, cron, and agent wrappers.
CI Convex CLI for CI. Cron Jobs Convex CLI for cron jobs. Shell Scripts Convex CLI for shell scripts. Headless Automation Convex CLI for headless automation. Coding Agents Convex CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
convex.convex_list_tables | Read read | 0 | List all tables in the Convex deployment. |
convex.convex_get_table | Read read | 1 | Get metadata and schema for a specific Convex table. |
convex.convex_query_documents | Read read | 5 | Query documents from a Convex table with optional filtering and pagination. |
convex.convex_create_document | Write write | 2 | Create a new document in a Convex table. |
convex.convex_update_document | Write write | 3 | Update an existing document in a Convex table. |
convex.convex_delete_document | Write write | 2 | Delete a document from a Convex table. |
convex.convex_get_current_user | Read read | 0 | Get the authenticated Convex user's profile information. Returns account details like name and email. Use this to verify API connectivity. |