marketing
Bitly MCP, CLI, and Lua Integration for AI Agents
Bitly integration docs for AI agents: MCP gateway setup, Bitly CLI commands, Lua API reference, credentials, and function schemas.
8 functions 5 read 3 write Bearer token auth
Bitly 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
bitly- route_slug
bitly- package
bitly- 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. Bitly CLIHeadless setup and direct function calls. Bitly 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.
Bitly MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Bitly.
Claude Code Bitly MCP setup for Claude Code. Cursor Bitly MCP setup for Cursor. Codex Bitly MCP setup for Codex. OpenAI Agents Bitly MCP setup for OpenAI Agents SDK. Claude Agent SDK Bitly MCP setup for Claude Agent SDK. Vercel AI SDK Bitly MCP setup for Vercel AI SDK. LangChain Bitly MCP setup for LangChain. LangGraph Bitly MCP setup for LangGraph. CrewAI Bitly MCP setup for CrewAI. MCP clients Bitly MCP setup for Generic MCP Clients.
Bitly CLI Matrix
Use these pages for direct Bitly CLI workflows in scripts, CI, cron, and agent wrappers.
CI Bitly CLI for CI. Cron Jobs Bitly CLI for cron jobs. Shell Scripts Bitly CLI for shell scripts. Headless Automation Bitly CLI for headless automation. Coding Agents Bitly CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
bitly.bitly_shorten_link | Write write | 3 | Shorten a long URL into a Bitlink. Returns the shortened URL and link details. |
bitly.bitly_get_link | Read read | 1 | Retrieve details for a Bitlink, including the long URL, title, tags, and timestamps. |
bitly.bitly_update_link | Write write | 4 | Update a Bitlink's metadata — set the title, archive/unarchive, or update tags. |
bitly.bitly_get_clicks | Read read | 4 | Get click metrics for a Bitlink. Returns click counts by time unit (minute, hour, day, week, month). |
bitly.bitly_list_groups | Read read | 0 | List all groups in the Bitly account. Groups organize links and are used when creating new Bitlinks. |
bitly.bitly_get_group | Read read | 1 | Retrieve details for a specific Bitly group by its GUID. |
bitly.bitly_create_bitlink | Write write | 5 | Create a new Bitlink with title, tags, and optional custom domain. More full-featured than shorten — use this when you need metadata. |
bitly.bitly_get_current_user | Read read | 0 | Get the authenticated Bitly user's profile. Use this to verify the connection and see account info. |