Gemini CLI integration with ShortURL MCP

📘 Complete guide: Use Ace Data Cloud MCP in Gemini CLI →

ShortURL MCP supports generating single or batch short links. After integrating with Gemini CLI, it can be called directly in conversations.

Obtain an API Token

Create or copy an API Key with access to this service from the general applications in the console. For the account scope, see Gemini CLI Overview.

Obtain Ace Data Cloud API Key

Configuration

Set the environment variable ACEDATACLOUD_API_TOKEN in the terminal where Gemini CLI is launched, using an application API Key authorized to access this service. Run the following commands in a trusted working directory to register it to your personal configuration. Single quotes preserve the variable reference.

gemini mcp add --scope user --transport http shorturl https://shorturl.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
gemini mcp list

After confirming that shorturl is shown as connected, launch gemini from the same terminal.

Usage examples

Shorten both of these links: https://platform.acedata.cloud and https://surl.id

Shorten this link

I need to send an email, shorten all 5 release notes links below

Tools

Tool Description
shorturl_create Shorten a long link