marketing
Dub.co MCP, CLI, and Lua Integration for AI Agents
Dub.co integration docs for AI agents: MCP gateway setup, Dub.co CLI commands, Lua API reference, credentials, and function schemas.
7 functions 6 read 1 write Bearer token auth
Dub.co 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
dub- route_slug
dub- package
dub- 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. Dub.co CLIHeadless setup and direct function calls. Dub.co 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.
Dub.co MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Dub.co.
Claude Code Dub.co MCP setup for Claude Code. Cursor Dub.co MCP setup for Cursor. Codex Dub.co MCP setup for Codex. OpenAI Agents Dub.co MCP setup for OpenAI Agents SDK. Claude Agent SDK Dub.co MCP setup for Claude Agent SDK. Vercel AI SDK Dub.co MCP setup for Vercel AI SDK. LangChain Dub.co MCP setup for LangChain. LangGraph Dub.co MCP setup for LangGraph. CrewAI Dub.co MCP setup for CrewAI. MCP clients Dub.co MCP setup for Generic MCP Clients.
Dub.co CLI Matrix
Use these pages for direct Dub.co CLI workflows in scripts, CI, cron, and agent wrappers.
CI Dub.co CLI for CI. Cron Jobs Dub.co CLI for cron jobs. Shell Scripts Dub.co CLI for shell scripts. Headless Automation Dub.co CLI for headless automation. Coding Agents Dub.co CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
dub.dub_list_links | Read read | 5 | List short links from Dub.co. Supports pagination, searching, and filtering by domain or tag. |
dub.dub_get_link | Read read | 1 | Get details of a specific short link by its ID. |
dub.dub_create_link | Write write | 6 | Create a new short link in Dub.co. Provide a destination URL and optionally a custom domain, key (back-half), title, description, and tags. |
dub.dub_list_domains | Read read | 2 | List all domains configured in your Dub.co workspace. |
dub.dub_get_domain | Read read | 1 | Get details of a specific domain by its ID or slug. |
dub.dub_list_tags | Read read | 3 | List link tags in your Dub.co workspace. Supports pagination and search. |
dub.dub_get_current_user | Read read | 0 | Get the profile of the currently authenticated Dub.co user. Useful for verifying the connection and checking workspace membership. |