# L2s — MCP server on mcp.ai > Connect your L2s account and use 4 tools for URL shortener straight from your AI agent. Connect with your own API key. L2S is a professional URL shortener offering advanced analytics, QR code generation, and team collaboration features. By: mcp.ai · official Page: https://mcp.ai/l2s ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_l2s?ms=1787293620000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/l2s/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/l2s/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/l2s/skill.md Postman collection (v2.1): https://mcp.ai/l2s/postman.json ## Tools - l2s_get_url_details(id: string) — Tool to retrieve details of a shortened URL. Use when you need metadata about a specific shortened link. Use after obtaining a valid URL ID. - l2s_l2_s_get_user_settings() — Tool to retrieve current user's settings. Use after authentication to fetch email, notification, and appearance preferences. - l2s_l2_s_list_urls(page?: integer, page_size?: integer) — Tool to list all shortened URLs. Use after user authentication to retrieve the user's URLs with pagination details. - l2s_l2_s_shorten_url(url: string, tags?: string[], title?: string, utmTerm?: string, customKey?: string, utmMedium?: string, utmSource?: string, utmContent?: string, utmCampaign?: string) — Tool to shorten a given long URL. Use when you need a concise link representation. ## Example prompts - "What can I do in L2s?" - "Show me a summary of my L2s account" ## Links Docs: https://mcp.ai/docs/mcps/l2s Website: https://mcp.ai/mcps/l2s