other
Cursor MCP, CLI, and Lua Integration for AI Agents
Cursor integration docs for AI agents: MCP gateway setup, Cursor CLI commands, Lua API reference, credentials, and function schemas.
4 functions 4 read 0 write API key auth
Cursor 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
cursor- route_slug
cursor- package
cursor- auth_strategy
api_keyAPI key- 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. Cursor CLIHeadless setup and direct function calls. Cursor 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.
Cursor MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Cursor.
Claude Code Cursor MCP setup for Claude Code. Cursor Cursor MCP setup for Cursor. Codex Cursor MCP setup for Codex. OpenAI Agents Cursor MCP setup for OpenAI Agents SDK. Claude Agent SDK Cursor MCP setup for Claude Agent SDK. Vercel AI SDK Cursor MCP setup for Vercel AI SDK. LangChain Cursor MCP setup for LangChain. LangGraph Cursor MCP setup for LangGraph. CrewAI Cursor MCP setup for CrewAI. MCP clients Cursor MCP setup for Generic MCP Clients.
Cursor CLI Matrix
Use these pages for direct Cursor CLI workflows in scripts, CI, cron, and agent wrappers.
CI Cursor CLI for CI. Cron Jobs Cursor CLI for cron jobs. Shell Scripts Cursor CLI for shell scripts. Headless Automation Cursor CLI for headless automation. Coding Agents Cursor CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
cursor.cursor_list_workspaces | Read read | 0 | List all Cursor workspaces accessible to the authenticated user. Returns workspace IDs you can use with other Cursor tools. |
cursor.cursor_get_workspace | Read read | 1 | Get details for a specific Cursor workspace by its ID. |
cursor.cursor_list_team_members | Read read | 1 | List all team members in a Cursor workspace. Returns member names, emails, and roles. |
cursor.cursor_list_extensions | Read read | 1 | List all extensions installed in a Cursor workspace. Returns extension names, identifiers, and versions. |