Rebrandly MCP
Rebrandly MCP Tool creates short URLs using your Rebrandly API key with customizable options.
How to Install and Use Rebrandly MCP
If you want to create short links using Rebrandly through a custom MCP tool, the Rebrandly MCP is a great option. This guide will help you install and use it in a simple, clear way. Let’s break it down step-by-step.
What You Need Before Installing
Before installing the Rebrandly MCP tool, make sure you have a couple of things ready:
- You need Go 1.20 or higher installed on your computer. Go is the programming language used to build the tool.
- You must have a Rebrandly account and an API key from Rebrandly. The API key lets the tool access your Rebrandly account to make short links.
Once you have these, you are ready to start.
How to Download and Build Rebrandly MCP
Now, let's get the code and build the tool. You will get all the code from the GitHub repository or just download the main file.
- First, get the code. You can clone the repository or save the file
main.gofrom the Rebrandly MCP GitHub page. - Next, open your terminal or command prompt.
- Run this command to build the executable program:
go build -o rebrandly-tool main.go
This command turns the Go code into a program named rebrandly-tool that you can run.
How to Set Up Rebrandly MCP with Claude Desktop
If you want to use this tool with Claude Desktop, follow these simple steps to connect it:
- Open the Claude Desktop app and find your configuration file.
- In the configuration, look for the
mcpServerssection. - Add this entry inside
mcpServers:
{
"Rebrandly": {
"command": "PATH/TO/rebrandly-tool",
"args": [],
"env": {
"REBRANDLY_API_KEY": "YOUR_KEY"
}
}
}
Remember to replace "PATH/TO/rebrandly-tool" with the real path where your rebrandly-tool program is saved. Also, replace "YOUR_KEY" with your actual Rebrandly API key.
This setup tells Claude how to run the Rebrandly MCP tool and authenticate with your API key.
How to Use the Create Short Link Tool
The main feature in Rebrandly MCP is a tool called create_short_link. It makes short URLs from long ones using Rebrandly.
To use create_short_link, you give it some details:
destination(required): This is the long URL you want to shorten.workspace(optional): If you have multiple workspaces in Rebrandly, put the workspace ID here.slashtag(optional): You can set a custom short slug for your link.title(optional): Add a title to describe your short link.
These parameters let you customize your short URL.
By following these steps, you can easily install and use Rebrandly MCP to generate short URLs. It’s simple to build the tool with Go, connect it to Claude Desktop, and use the create_short_link tool to make your URLs shorter and easier to share.