MCP / AI Integration
Connect AI assistants to AWSYS.CO via the Model Context Protocol
The AWSYS.CO MCP server implements the Model Context Protocol (version 2024-11-05) over stateless Streamable HTTP. It exposes 54 tools that AI assistants such as Claude can call to create links, view analytics, manage folders, configure webhooks, and more — all through natural-language conversation.
Protocol Details
| Property | Value |
| Protocol | MCP 2024-11-05 (Streamable HTTP, stateless JSON-RPC 2.0) |
| Endpoint | POST https://awsys.co/mcp |
| Server name | awsys-shortener |
| Server version | 1.5.0+1 |
| Transport | Each POST is self-contained — no persistent connections or sessions required |
Authentication
The AWSYS MCP server accepts two authentication methods:
- OAuth 2.1 (recommended for Claude.ai connector) — Connect via the Claude.ai UI without copying an API key. Full PKCE flow, refresh tokens, and automatic re-auth. See 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. Tier access is evaluated live on every call — upgrading or downgrading takes effect immediately.
Quick Start with Claude
If you are using Claude via the Claude Code CLI or the Claude.ai web interface with MCP support, 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 Claude 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"
Available Tools (54)
Links
| Tool | Description |
shorten_url | Create a short link with full options (namespace, slug, expiry, geo, OG, routing) |
list_links | Paginated list of your links |
get_link | Details for a single link by short code |
update_link | Modify destination, expiry, click cap, routing, OG metadata, or geo rules |
delete_link | Permanently remove a link |
bulk_shorten | Create up to 50 links in one request (Builder+) |
get_recent_clicks | Recent click events across all your links |
Analytics
| Tool | Description |
get_link_stats | Click analytics for a link (24h / 7d / 30d) |
get_aggregate_stats | Aggregated analytics with day buckets, geo breakdown, device breakdown |
get_usage | Total links/clicks, tracked click usage, overage details |
QR Codes
| Tool | Description |
get_qr_code | QR code image URL for a link (with optional size/color params) |
get_qr_settings | Retrieve saved QR customization settings for a link |
update_qr_settings | Save QR color, logo, and error correction settings for a link |
Folders
| Tool | Description |
list_folders | List link folders |
create_folder | Create a new folder |
update_folder | Rename or change the color of a folder |
delete_folder | Delete a folder (links are unassigned, not deleted) |
assign_link_to_folder | Move a link into a folder |
Tags, UTM Templates, Saved Views
| Tool | Description |
add_link_tag | Add a tag to a link |
remove_link_tag | Remove a tag from a link |
list_utm_templates | List saved UTM parameter templates |
create_utm_template | Create a new UTM template |
delete_utm_template | Delete a UTM template |
list_saved_views | List saved link-list filter presets |
create_saved_view | Create a named filter preset |
update_saved_view | Rename or update filters on a saved view |
delete_saved_view | Delete a saved view |
Domains, Namespace, Trust Score, Export
| Tool | Description |
list_domains | List custom domains (Pro+) |
add_domain | Register a custom domain (Pro+) |
verify_domain | Trigger DNS verification (Pro+) |
update_domain | Update domain settings (Pro+) |
delete_domain | Remove a custom domain (Pro+) |
set_namespace | Claim a branded namespace (Pro+) |
delete_namespace | Release the current namespace (Pro+) |
get_link_trust_score | Trust/safety scan result for any short code (public) |
export_links | Export all links as structured JSON (Pro+) |
export_link_stats | Export click statistics for a link as JSON (Pro+) |
Webhooks
| Tool | Description |
list_webhooks | List webhook endpoints |
create_webhook | Subscribe to link events |
update_webhook | Update URL, events, name, or enabled status |
test_webhook | Send a test event delivery |
delete_webhook | Remove a webhook |
Affiliate Programs
| Tool | Description |
create_affiliate_program | Create a CPC/CPA affiliate program (Builder+) |
list_affiliate_programs | List your programs as merchant |
list_affiliate_partners | List partners in a program |
discover_affiliate_programs | Browse public programs to join |
join_affiliate_program | Join a program as a partner |
list_affiliate_partnerships | List programs you've joined |
get_affiliate_stats | Click/conversion stats for a program or partnership |
Account
| Tool | Description |
get_profile | Account info, tier, namespace prefix, overage status |
get_agentlink_stats | AgentLink AI-agent click analytics for a specific link |
get_agentlink_account_stats | AgentLink analytics aggregated across all your links |
list_agentlink_links | Links that have received AI agent traffic |
get_web2app_session | Consume a Web2App routing session token (Pro+) |
Example MCP Request
MCP uses JSON-RPC 2.0. Here is a raw request to call 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",
"slug": "launch26"
}
}
}'
In practice, you do not call MCP endpoints directly — AI clients handle the JSON-RPC layer automatically when you configure the server URL and credentials.
Tier Access
Tool availability mirrors the REST API tier rules. The MCP server reads your current tier from Firestore on every request — there is no caching. Tools that require a higher tier return an error with a clear upgrade message if your account does not qualify.