rebrandly-mcp
0
Rebrandly MCP Tool is a Go-based implementation of a simple MCP server exposing a tool to create short URLs through the Rebrandly API. The tool integrates with Claude Desktop to facilitate the generation of short links easily.
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
Build Instructions
- Clone this repository or save the
main.go
file. - Build the binary using:
go build -o rebrandly-tool main.go
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
:
{
"mcpServers": {
"Rebrandly": {
"command": "PATH/TO/rebrandly-tool",
"args": [],
"env": {
"REBRANDLY_API_KEY": "YOUR_KEY"
}
}
}
}
🔧 Replace
PATH/TO/rebrandly-tool
with the actual path to the binary, andYOUR_KEY
with 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 |