Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
OPN_API_KEYYesYour API key (opn_…), from Settings → API Keys
OPN_BASE_URLNoAPI base URL — set this for a self-hosted instancehttps://l.opn.onl

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
shorten_url

Create a short link on opn.onl. Supports scheduling, click limits, folders, tags and one-time (burn-after-reading) links. Returns the short URL and its code.

shorten_urls_bulk

Shorten many URLs in one call. Returns the created links plus any per-URL errors.

list_links

List your short links (most recent first). Filter by folder, tag or free-text search.

update_link

Update a link's destination, title, notes, scheduling, click limit, folder or protections. Use the remove_* flags to clear a field.

delete_link

Delete a short link.

clone_link

Duplicate an existing link (same destination and settings) under a fresh short code.

toggle_link_pin

Pin or unpin a link (pinned links surface first in the dashboard). Toggles the current state.

check_alias_available

Check whether a custom alias/slug is available before shortening with it.

export_links_csv

Export all your links as CSV (returns the raw CSV text).

get_link_routing_rules

Get the smart-routing rules for a link (device/OS/country/language targeting and A/B weighting).

set_link_routing_rules

Replace ALL smart-routing rules for a link. Each rule sends visitors matching the given device/OS/country/language to its destination; empty match fields mean 'any'. Send an empty array to clear all rules.

get_link_stats

Get click analytics for a link (clicks, unique visitors, geography, cities, devices, browsers, OS, referrers).

get_dashboard_stats

Get account-wide analytics across all your links: totals, top links, and aggregate click breakdowns.

get_qr_codeB

Get the QR code for a link, optionally branded with a colour, centre logo, and PNG/SVG format.

check_url_health

Check whether a destination URL is reachable (status + timing) before shortening it.

build_utm_url

Append UTM campaign parameters to a URL. Returns the tagged URL (does not create a link).

preview_url_metadata

Fetch Open Graph metadata (title, description, image, site name) for a URL — handy for auto-titling a link before shortening it.

list_tags

List your tags (each with its link count).

create_tag

Create a tag for organizing links.

add_tags_to_linkB

Attach one or more existing tags to a link.

remove_tags_from_link

Detach one or more tags from a link.

list_folders

List your folders (each with its link count).

create_folder

Create a folder for grouping links.

move_links_to_folder

Move one or more links into a folder.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ysalitrynskyi/opn-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server