KosmoKrator

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_token Bearer token
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Bitly MCP Client Matrix

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

Bitly CLI Matrix

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

Function Catalog

FunctionTypeParametersDescription
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.