MCP / AI Integration

Connect AI assistants to AWSYS.CO via the Model Context Protocol

The AWSYS.CO MCP server implements the Model Context Protocol over stateless Streamable HTTP. It exposes 65 tools that AI assistants such as Claude, ChatGPT, Codex and Cursor can call to create links, view analytics, manage folders, configure webhooks and more — all through natural-language conversation.

Protocol Details

PropertyValue
ProtocolMCP over Streamable HTTP (stateless JSON-RPC 2.0)
Protocol versions2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05
EndpointPOST https://awsys.co/mcp
Server nameawsys-shortener (“AWSYS Links”)
Server version1.6.0
TransportEach POST is self-contained — no persistent connections or sessions required
CORSPOST responses allow any origin (browser preflight requests are not supported); allowed request headers: Content-Type, Authorization, Mcp-Session-Id, MCP-Protocol-Version

Version negotiation

If the protocolVersion sent in initialize is one of the supported versions, the server answers with that same version; otherwise it answers with the newest, 2025-11-25. The initialize result also includes serverInfo (title “AWSYS Links”) and an instructions string that describes AWSYS and how links are namespaced.

// → initialize
{ "jsonrpc": "2.0", "id": 1, "method": "initialize",
  "params": { "protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": { "name": "example", "version": "1.0" } } }

// ← result
{ "jsonrpc": "2.0", "id": 1, "result": {
  "protocolVersion": "2025-06-18",
  "capabilities": { "tools": {} },
  "serverInfo": { "name": "awsys-shortener", "title": "AWSYS Links", "version": "1.6.0" },
  "instructions": "AWSYS (awsys.co) is a URL shortener. ..."
} }

initialize, ping and notifications don't require authentication. Every other method does.

Authentication

The AWSYS MCP server accepts two authentication methods:

  • OAuth 2.1 (recommended for Claude.ai, ChatGPT and Codex) — connect from the assistant's UI without copying an API key. PKCE, refresh tokens and automatic discovery. See the OAuth 2.1 docs.
  • API key (existing integrations) — pass your awsys_... key as a Bearer token. Works alongside OAuth with no migration required.
Authorization: Bearer YOUR_API_KEY

The key is hashed and matched against your account. Plan access is evaluated live on every call — upgrading or downgrading takes effect immediately.

Connect from any MCP client

Any MCP client that supports remote servers can connect to AWSYS. Point it at the server URL below; the client signs the user in with OAuth 2.1, so no API key is needed.

Server URLhttps://awsys.co/mcp
TransportStreamable HTTP
AuthenticationOAuth 2.1 authorization code with PKCE, discovered automatically from the server (API keys also work)
Client registrationClient ID Metadata Document (CIMD) or Dynamic Client Registration (DCR, RFC 7591)
Redirect URIshttps callbacks; plain http only on loopback hosts (localhost, 127.0.0.1, [::1]), on any port

Full details are in the OAuth 2.1 reference.

Command-line clients

Claude Code and Gemini CLI add the server with one command, then open a browser to sign in (in Claude Code run /mcp and choose Authenticate; in Gemini CLI run /mcp auth awsys):

# Claude Code
claude mcp add --transport http awsys https://awsys.co/mcp

# Gemini CLI
gemini mcp add --transport http awsys https://awsys.co/mcp

Install links

Cursor and VS Code accept install links that add the server in one click. The Cursor link carries the server entry as base64-encoded JSON; the VS Code link carries it as URL-encoded JSON:

# Cursor — config = base64({"url":"https://awsys.co/mcp"})
cursor://anysphere.cursor-deeplink/mcp/install?name=awsys&config=eyJ1cmwiOiJodHRwczovL2F3c3lzLmNvL21jcCJ9

# VS Code — vscode:mcp/install?<URL-encoded {"name":"awsys","type":"http","url":"https://awsys.co/mcp"}>
vscode:mcp/install?%7B%22name%22%3A%22awsys%22%2C%22type%22%3A%22http%22%2C%22url%22%3A%22https%3A%2F%2Fawsys.co%2Fmcp%22%7D

# VS Code, wrapped so it opens from any browser
https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522awsys%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fawsys.co%252Fmcp%2522%257D

Config files

Clients that read a JSON config file use one of these shapes (Cursor: ~/.cursor/mcp.json; VS Code: .vscode/mcp.json):

// Cursor — ~/.cursor/mcp.json
{ "mcpServers": { "awsys": { "url": "https://awsys.co/mcp" } } }

// VS Code — .vscode/mcp.json
{ "servers": { "awsys": { "type": "http", "url": "https://awsys.co/mcp" } } }

Step-by-step setup for ChatGPT, Claude, Cursor, VS Code, Grok, Gemini CLI, Perplexity and Le Chat is on the AI assistants page.

Quick Start with Claude

With the Claude Code CLI or any MCP client that supports custom headers, add the AWSYS.CO server to your configuration:

{
  "mcpServers": {
    "awsys": {
      "type": "http",
      "url": "https://awsys.co/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Once connected, you can ask things like:

  • “Shorten https://example.com/launch with the slug launch”
  • “Show me clicks for the last 7 days on my launch link”
  • “Create a folder called Marketing and move my last 3 links into it”
  • “Set up a webhook to notify https://my-server.com/hook on link clicks”

Tool annotations

Every tool in tools/list carries a title and MCP tool annotations. Clients use them to decide when to ask you for confirmation — ChatGPT and Claude, for example, confirm destructive actions before running them.

AnnotationMeaning
readOnlyHinttrue only when the tool just reads your account data. Any create, update, delete, queued job or outbound request is false.
destructiveHinttrue when the tool deletes, overwrites, cancels or sends something that can't be undone — being able to recreate the data doesn't make it false.
openWorldHinttrue when the tool reaches arbitrary third-party destinations or services: any destination URL (checked with Google Safe Browsing), webhook endpoints, DNS lookups or the Bitly API. false when it only touches your own AWSYS account.
idempotentHinttrue when repeating the call with the same arguments has no additional effect.

All 65 tools set readOnlyHint, destructiveHint and openWorldHint explicitly: 30 are read-only, 24 are destructive and 8 are open-world. tools/list never includes the internal plan gate; tools your plan doesn't include are simply not listed.

Example tools/list entry:

{
  "name": "delete_link",
  "title": "Delete Link",
  "description": "Permanently delete a short link. Redirects stop working immediately.",
  "inputSchema": {
    "type": "object",
    "properties": { "short_code": { "type": "string", "description": "The short code to delete" } },
    "required": ["short_code"]
  },
  "annotations": {
    "title": "Delete Link",
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

Structured results

When a tool returns a JSON object, the result carries it twice: as structuredContent, which clients can use directly, and as a JSON-formatted text block in content[0].text for clients that predate MCP 2025-06-18. Tool errors set isError: true.

Some tools add content blocks after the text block. get_qr_code, for example, also returns the QR code as an inline PNG image (type: "image") for clients that don't display external image URLs; that image is never repeated in structuredContent.

Available Tools (65)

Plan shows the lowest plan that lists the tool. Some tools also enforce limits inside the tool (for example, custom slugs need Starter or higher). Tools marked ChatGPT are part of the OpenAI client profile.

Links

ToolDescriptionPlanAnnotations
shorten_urlCreate a short link with full options (slug, expiry, password, geo rules, OG meta, routing)All plans
write open world ChatGPT
list_linksPaginated, sortable list of your linksAll plans
read-only ChatGPT
get_linkDetails for a single link by short codeAll plans
read-only ChatGPT
update_linkChange destination, expiry, click cap, password, routing, OG metadata or geo rulesAll plans
write destructive open world ChatGPT
delete_linkPermanently delete a link; it stops redirectingAll plans
write destructive ChatGPT
bulk_shortenCreate up to 50 links in one requestBuilder+
write open world ChatGPT
get_link_trust_scoreStored trust/safety scan result for a short codeAll plans
read-only ChatGPT

Analytics and Export

ToolDescriptionPlanAnnotations
get_link_statsClick analytics for one link: totals, top countries and referrersAll plans
read-only ChatGPT
get_recent_clicksRecent click events across all your linksAll plans
read-only ChatGPT
get_aggregate_statsAggregated analytics for one link: clicks by day, countries, devices, referrers, UTMBuilder+
read-only ChatGPT
get_usageLinks, clicks and tracked-click usage against your planAll plans
read-only ChatGPT
export_linksExport all your links as structured JSONPro+
read-only
export_link_statsExport raw click records for one linkPro+
read-only

QR Codes

ToolDescriptionPlanAnnotations
get_qr_codeQR code for a link: PNG image URL plus the image inline as MCP image content (inline copy up to 512 px), and printWarnings for link settings that can stop a printed code from working (expiry, click limit, password, URL-scan verdict, disabled, geo restriction)All plans
read-only ChatGPT
get_qr_settingsSaved QR customization for a linkAll plans
read-only ChatGPT
update_qr_settingsSave QR colors, logo and error correction for a linkAll plans
write destructive ChatGPT

Folders

ToolDescriptionPlanAnnotations
list_foldersList folders with link countsAll plans
read-only ChatGPT
create_folderCreate a folderAll plans
write ChatGPT
update_folderRename a folder or change its colorAll plans
write destructive ChatGPT
delete_folderDelete a folder (its links are unassigned, not deleted)All plans
write destructive ChatGPT
assign_link_to_folderMove a link into a folder, or out of its folderAll plans
write destructive ChatGPT

Tags, UTM Templates, Saved Views

ToolDescriptionPlanAnnotations
add_link_tagAdd a tag to a linkAll plans
write ChatGPT
remove_link_tagRemove a tag from a linkAll plans
write destructive ChatGPT
list_utm_templatesList saved UTM templatesAll plans
read-only ChatGPT
create_utm_templateCreate a UTM templateAll plans
write ChatGPT
delete_utm_templateDelete a UTM templateAll plans
write destructive ChatGPT
list_saved_viewsList saved link-list viewsAll plans
read-only ChatGPT
create_saved_viewCreate a named filter presetAll plans
write ChatGPT
update_saved_viewRename a saved view or change its filtersAll plans
write destructive ChatGPT
delete_saved_viewDelete a saved viewAll plans
write destructive ChatGPT

Custom Domains and Namespace

Starter accounts manage custom domains in the dashboard or through the REST API; the MCP domain tools below need Pro or higher.

ToolDescriptionPlanAnnotations
list_domainsList custom domains with verification and SSL statusPro+
read-only
check_domain_availabilityCheck whether a hostname can be added as a custom domainAll plans
read-only
add_domainRegister a custom domain and get its DNS recordsPro+
write destructive
verify_domainRun DNS verification for a pending domainPro+
write open world
activate_domainStart serving short links on a verified domainPro+
write destructive
update_domainSet default domain, custom 404 URL or other domain settingsPro+
write destructive
delete_domainRemove a custom domainPro+
write destructive
set_namespaceClaim a branded namespacePro+
write destructive
delete_namespaceRelease your branded namespacePro+
write destructive

Webhooks

ToolDescriptionPlanAnnotations
list_webhooksList webhook endpoints and delivery statsPro+
read-only
create_webhookSubscribe an endpoint to link eventsPro+
write open world
update_webhookChange URL, events, name or enabled statusPro+
write destructive open world
test_webhookSend a test event to an endpointPro+
write destructive open world
delete_webhookDelete a webhook endpointPro+
write destructive

Affiliate Programs

ToolDescriptionPlanAnnotations
create_affiliate_programCreate a CPC/CPA affiliate program as merchantBuilder+
write
list_affiliate_programsList programs you own as merchantBuilder+
read-only
get_affiliate_programDetails of one of your programsBuilder+
read-only
update_affiliate_programChange a program's settingsBuilder+
write destructive
list_affiliate_partnersList partners in your programsBuilder+
read-only
update_affiliate_partner_statusApprove or reject a partnerBuilder+
write destructive
discover_affiliate_programsBrowse public programs you can joinAll plans
read-only
join_affiliate_programApply to join a program as partnerAll plans
write
list_affiliate_partnershipsList programs you've joinedAll plans
read-only
get_affiliate_statsClick and conversion stats for a program or partnershipAll plans
read-only
get_affiliate_partnership_statsStats for one partnership you belong toAll plans
read-only
get_affiliate_limitsYour affiliate plan limits and usageAll plans
read-only
leave_affiliate_programLeave a program you joined (deletes the partnership)All plans
write destructive

Imports

ToolDescriptionPlanAnnotations
import_from_providerStart an import of your Bitly linksPro+
write open world
get_import_statusStatus of an import jobPro+
read-only
cancel_importCancel a running importPro+
write destructive

Account, AgentLink and Web2App

ToolDescriptionPlanAnnotations
get_profileAccount info, plan, namespace prefix and feature flagsAll plans
read-only ChatGPT
get_agentlink_statsAI-agent click analytics for one linkPro+
read-only
get_agentlink_account_statsAI-agent analytics across all your linksPro+
read-only
list_agentlink_linksLinks that received AI-agent trafficPro+
read-only
get_web2app_sessionRedeem a single-use Web2App routing session tokenPro+
write destructive

OpenAI client profile (ChatGPT and Codex)

OAuth clients identified as OpenAI get a curated set of 29 tools. A client is identified as OpenAI when its Client ID Metadata Document URL is on chatgpt.com or openai.com (ChatGPT uses https://chatgpt.com/oauth/client.json), or when it registered through Dynamic Client Registration with redirect URIs that all share one chatgpt.com or openai.com host (subdomains included). Every other OAuth client and every API-key connection gets the default profile: every tool its plan includes.

For OpenAI clients, tools/list returns only the curated set (still filtered by plan), and tools/call answers any other tool name as an unknown tool. The override_scan argument of shorten_url is hidden and stripped, so an assistant can never create a link to a URL that Google Safe Browsing flags as dangerous.

Curated tools:

  • Links: shorten_url, bulk_shorten, list_links, get_link, update_link, delete_link, get_link_trust_score
  • Stats: get_link_stats, get_recent_clicks, get_aggregate_stats
  • QR codes: get_qr_code, get_qr_settings, update_qr_settings
  • Folders: list_folders, create_folder, update_folder, delete_folder, assign_link_to_folder
  • Tags: add_link_tag, remove_link_tag
  • UTM templates: list_utm_templates, create_utm_template, delete_utm_template
  • Saved views: list_saved_views, create_saved_view, update_saved_view, delete_saved_view
  • Account: get_profile, get_usage

Webhooks, custom domains, namespaces, imports, AgentLink and affiliate tools are not offered to OpenAI clients: they reach third parties or need setup outside the chat.

Example MCP Request

MCP uses JSON-RPC 2.0. Here is a raw request that calls the shorten_url tool:

curl -X POST https://awsys.co/mcp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "shorten_url",
      "arguments": {
        "url": "https://example.com/campaign",
        "custom_slug": "launch26"
      }
    }
  }'

Response when the account's plan doesn't include custom slugs:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [{ "type": "text", "text": "{\n  \"error\": \"Custom slugs are available on the Starter plan and higher. Plan details: https://awsys.co/#pricing\"\n}" }],
    "structuredContent": {
      "error": "Custom slugs are available on the Starter plan and higher. Plan details: https://awsys.co/#pricing"
    },
    "isError": true
  }
}

In practice you don't call the MCP endpoint directly — AI clients handle the JSON-RPC layer once you configure the server URL and credentials.

Plan Access

Tool availability mirrors the REST API plan rules. The MCP server reads your current plan on every request — there is no caching. Features gated inside a tool return an error that names the plan that includes them, with a link to https://awsys.co/#pricing.