Rebrandly MCP Tool (Go)
This project implements a simple MCP server in Go that exposes a single tool (create_short_link) to generate short URLs using the Rebrandly API.
Requirements
Go 1.20 or higher
A Rebrandly account and an API Key
Related MCP server: mcp-pprof-anaylzer
Build Instructions
Clone this repository or save the
main.gofile.Build the binary using:
This will generate an executable named rebrandly-tool.
Usage with Claude Desktop
Claude Desktop supports custom MCP servers. To connect this tool:
Open your Claude Desktop configuration.
Add the following entry under
mcpServers:
π§ Replace
PATH/TO/rebrandly-toolwith the actual path to the binary, andYOUR_KEYwith your Rebrandly API Key.
Tool Available
create_short_link
This tool generates a short URL via Rebrandly.
Parameters
Name | Required | Description |
destination | β | The original long URL to shorten |
workspace | β | Optional workspace ID (for multi-workspace accounts) |
slashtag | β | Optional custom slug |
title | β | Optional title for the short link |
License
Licensed under MIT - see LICENSE file.