Make short links from your AI assistant
The lihi.io MCP server lets Claude and other MCP clients create short links and check your domains, work groups, and quota. It only acts on the lihi.io account you sign in with.
MCP server URLhttps://app.lihi.io/mcp/v1/tools
Shorten this for the newsletter: https://shop.example.com/collections/spring-sale?utm_source=newsletter&utm_medium=email&utm_campaign=2026-spring
site_create self-domain.link/Sp26a
Connect
- In your MCP client, add a custom connector with the MCP server URL above.
- The client opens the lihi.io sign-in page. Sign in with your email and password, or with Google.
- Choose the account to connect. The client can then use the tools below for that account.
- Transport
- Streamable HTTP, JSON-RPC over
POST - Protocol versions
2025-06-18,2025-11-25- Authentication
- OAuth 2.1 authorization code with PKCE and dynamic client registration
- Account
- Any lihi.io account, including free plans. Quota depends on the plan.
Tools
-
domain_optionsRead-onlyList available short URL domains
Lists the short URL domains currently available to this account. account_switch_domain accepts a hostname from this list. site_create uses the access token default domain and does not accept a per-call domain override.
-
site_createMakes changesCreate a short URL
Creates an HTTP or HTTPS short URL using the access token default domain after verifying that it remains available to the authenticated account.
-
url(required) Complete HTTP or HTTPS URL to shorten. User information in the URL is not allowed.
-
-
account_statusRead-onlyGet account status
Gets the account owner email, current group name and domain, short URL usage, quota, current plan, expiration date, and next locally scheduled renewal date for the authenticated account.
-
group_optionsRead-onlyList group options
Lists active groups for the authenticated main identity, including the personal group when available.
-
account_switch_groupMakes changesSwitch account group
Switches this MCP client to an active group returned by group_options. It preserves an available domain or automatically selects the oldest owned domain, then the oldest shared domain. If the target group has no available domain, the switch is rejected and the current selection remains unchanged. Returns the full updated account status, as returned by account_status.
-
group_id(required) Group ID returned by group_options, or null for the personal group.
-
-
account_switch_domainMakes changesSwitch account domain
Switches this MCP client to an available domain hostname returned by domain_options for the current group. Returns the full updated account status, as returned by account_status.
-
domain(required) Domain hostname returned by domain_options in domains[].hostname.
-
Example prompts
-
Shorten https://example.com/spring-sale with lihi.
Uses
site_createand returns the short link on your current domain. -
How many short links do I have left on my lihi plan?
Uses
account_statusand reports usage, quota, plan name, and expiration date. -
Switch to my own domain and shorten this link.
Uses
domain_options, thenaccount_switch_domain, thensite_create. -
Move to my Marketing work group.
Uses
group_options, thenaccount_switch_groupwith the matching group.
Data and privacy
- Tools read your account email, work groups, short link domains, quota, and plan dates.
site_createsaves the link you send as a short link in your lihi.io account, the same as creating it in the lihi.io dashboard.- Switching domain or work group only changes the default for this connection. Your account settings elsewhere stay the same.
- Each tool call is logged with the tool name, client name, result, and timing, for usage metrics and abuse prevention.
- Access tokens expire after 60 minutes and refresh tokens after 30 days. Removing the connector in your MCP client stops further access.
Read the privacy policy and terms of use.
Support
Email [email protected] for help with the MCP server or your lihi.io account. Service levels are in the service level agreement.